libslic3r
Library for generating gcode from 3d models
|
Classes | |
class | ArrangeItem |
class | ArrangeItemIndex |
class | MedialAxis |
Functions | |
static bool | sort_points (Point a, Point b) |
Polygon | convex_hull (Points points) |
Polygon | convex_hull (const Polygons &polygons) |
void | chained_path (const Points &points, std::vector< Points::size_type > &retval, Point start_near) |
void | chained_path (const Points &points, std::vector< Points::size_type > &retval) |
template<class T > | |
void | chained_path_items (Points &points, T &items, T &retval) |
template void | chained_path_items (Points &points, ClipperLib::PolyNodes &items, ClipperLib::PolyNodes &retval) |
bool | directions_parallel (double angle1, double angle2, double max_diff) |
template<class T > | |
bool | contains (const std::vector< T > &vector, const Point &point) |
template bool | contains (const Polygons &vector, const Point &point) |
template bool | contains (const ExPolygons &vector, const Point &point) |
template<class T > | |
double | area (const std::vector< T > &vector) |
template double | area (const Polygons &vector) |
double | rad2deg (double angle) |
double | rad2deg_dir (double angle) |
double | deg2rad (double angle) |
double | linint (double value, double oldmin, double oldmax, double newmin, double newmax) |
Point | circle_taubin_newton (const Points &input, size_t cycles=20) |
Find the center of the circle corresponding to the vector of Points as an arc. More... | |
Point | circle_taubin_newton (const Points::const_iterator &input_begin, const Points::const_iterator &input_end, size_t cycles) |
Pointf | circle_taubin_newton (const Pointfs &input, size_t cycles=20) |
Find the center of the circle corresponding to the vector of Pointfs as an arc. More... | |
Pointf | circle_taubin_newton (const Pointfs::const_iterator &input_begin, const Pointfs::const_iterator &input_end, size_t cycles) |
bool | arrange (size_t total_parts, const Pointf &part_size, coordf_t dist, const BoundingBoxf *bb, Pointfs &positions) |
Variables | |
constexpr double | epsilon { 1e-4 } |
Epsilon value. More... | |
constexpr coord_t | scaled_epsilon { static_cast<coord_t>(epsilon / SCALING_FACTOR) } |
double Slic3r::Geometry::area | ( | const std::vector< T > & | vector | ) |
template double Slic3r::Geometry::area | ( | const Polygons & | vector | ) |
bool Slic3r::Geometry::arrange | ( | size_t | total_parts, |
const Pointf & | part_size, | ||
coordf_t | dist, | ||
const BoundingBoxf * | bb, | ||
Pointfs & | positions | ||
) |
void Slic3r::Geometry::chained_path | ( | const Points & | points, |
std::vector< Points::size_type > & | retval, | ||
Point | start_near | ||
) |
void Slic3r::Geometry::chained_path | ( | const Points & | points, |
std::vector< Points::size_type > & | retval | ||
) |
void Slic3r::Geometry::chained_path_items | ( | Points & | points, |
T & | items, | ||
T & | retval | ||
) |
template void Slic3r::Geometry::chained_path_items | ( | Points & | points, |
ClipperLib::PolyNodes & | items, | ||
ClipperLib::PolyNodes & | retval | ||
) |
Find the center of the circle corresponding to the vector of Points as an arc.
Point Slic3r::Geometry::circle_taubin_newton | ( | const Points::const_iterator & | input_begin, |
const Points::const_iterator & | input_end, | ||
size_t | cycles | ||
) |
Find the center of the circle corresponding to the vector of Pointfs as an arc.
Pointf Slic3r::Geometry::circle_taubin_newton | ( | const Pointfs::const_iterator & | input_begin, |
const Pointfs::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.
bool Slic3r::Geometry::contains | ( | const std::vector< T > & | vector, |
const Point & | point | ||
) |
template bool Slic3r::Geometry::contains | ( | const ExPolygons & | vector, |
const Point & | point | ||
) |
double Slic3r::Geometry::deg2rad | ( | double | angle | ) |
bool Slic3r::Geometry::directions_parallel | ( | double | angle1, |
double | angle2, | ||
double | max_diff | ||
) |
double Slic3r::Geometry::linint | ( | double | value, |
double | oldmin, | ||
double | oldmax, | ||
double | newmin, | ||
double | newmax | ||
) |
double Slic3r::Geometry::rad2deg | ( | double | angle | ) |
double Slic3r::Geometry::rad2deg_dir | ( | double | angle | ) |
constexpr double Slic3r::Geometry::epsilon { 1e-4 } |
Epsilon value.
constexpr coord_t Slic3r::Geometry::scaled_epsilon { static_cast<coord_t>(epsilon / SCALING_FACTOR) } |