OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
Circle.cpp File Reference
#include "Circle.hpp"
#include "libslic3r/Point.hpp"
#include "libslic3r/libslic3r.h"
#include <cstddef>
#include <iterator>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <limits>
#include <numeric>
#include <random>
#include <boost/log/trivial.hpp>
#include <vector>
Include dependency graph for Circle.cpp:

Go to the source code of this file.

Namespaces

namespace  Slic3r
 |/ Copyright (c) Prusa Research 2020 - 2023 Enrico Turri @enricoturri1966 |/ |/ PrusaSlicer is released under the terms of the AGPLv3 or higher |/
namespace  Slic3r::Geometry

Functions

Point Slic3r::Geometry::circle_center_taubin_newton (const Points::const_iterator &input_start, const Points::const_iterator &input_end, size_t cycles=20)
 Find the center of the circle corresponding to the vector of Points as an arc.
Vec2d Slic3r::Geometry::circle_center_taubin_newton (const Vec2ds::const_iterator &input_begin, const Vec2ds::const_iterator &input_end, size_t cycles)
 Adapted from work in "Circular and Linear Regression: Fitting circles and lines by least squares", pg 126 Returns a point corresponding to the center of a circle for which all of the points from input_begin to input_end lie on.
Circled Slic3r::Geometry::circle_taubin_newton (const Vec2ds &input, size_t cycles)
Circled Slic3r::Geometry::circle_ransac (const Vec2ds &input, size_t iterations, double *min_error)