libslic3r
Library for generating gcode from 3d models
|
#include <Polyline.hpp>
Public Member Functions | |
operator Polylines () const | |
operator Line () const | |
Point | last_point () const |
Point | leftmost_point () const |
virtual Lines | lines () const |
void | clip_end (double distance) |
void | clip_start (double distance) |
void | extend_end (double distance) |
void | extend_start (double distance) |
Points | equally_spaced_points (double distance) const |
void | simplify (double tolerance) |
template<class T > | |
void | simplify_by_visibility (const T &area) |
void | split_at (const Point &point, Polyline *p1, Polyline *p2) const |
bool | is_straight () const |
std::string | wkt () const |
Polygons | grow (double delta, double scale=CLIPPER_OFFSET_SCALE, ClipperLib::JoinType joinType=ClipperLib::jtSquare, double miterLimit=3.0) const |
Public Member Functions inherited from Slic3r::MultiPoint | |
operator Points () const | |
void | scale (double factor) |
void | translate (double x, double y) |
void | translate (const Point &vector) |
void | rotate (double angle) |
void | rotate (double angle, const Point ¢er) |
void | reverse () |
Point | first_point () const |
double | length () const |
bool | is_valid () const |
int | find_point (const Point &point) const |
bool | has_boundary_point (const Point &point) const |
BoundingBox | bounding_box () const |
bool | has_duplicate_points () const |
bool | remove_duplicate_points () |
void | append (const Point &point) |
void | append (const Points &points) |
void | append (const Points::const_iterator &begin, const Points::const_iterator &end) |
bool | intersection (const Line &line, Point *intersection) const |
std::string | dump_perl () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Slic3r::MultiPoint | |
static Points | _douglas_peucker (const Points &points, const double tolerance) |
Public Attributes inherited from Slic3r::MultiPoint | |
Points | points |
Protected Member Functions inherited from Slic3r::MultiPoint | |
MultiPoint () | |
MultiPoint (const Points &_points) | |
~MultiPoint ()=default | |
void Slic3r::Polyline::clip_end | ( | double | distance | ) |
void Slic3r::Polyline::clip_start | ( | double | distance | ) |
Points Slic3r::Polyline::equally_spaced_points | ( | double | distance | ) | const |
void Slic3r::Polyline::extend_end | ( | double | distance | ) |
void Slic3r::Polyline::extend_start | ( | double | distance | ) |
Polygons Slic3r::Polyline::grow | ( | double | delta, |
double | scale = CLIPPER_OFFSET_SCALE , |
||
ClipperLib::JoinType | joinType = ClipperLib::jtSquare , |
||
double | miterLimit = 3.0 |
||
) | const |
bool Slic3r::Polyline::is_straight | ( | ) | const |
|
virtual |
Implements Slic3r::MultiPoint.
Point Slic3r::Polyline::leftmost_point | ( | ) | const |
|
virtual |
Implements Slic3r::MultiPoint.
Slic3r::Polyline::operator Line | ( | ) | const |
Slic3r::Polyline::operator Polylines | ( | ) | const |
void Slic3r::Polyline::simplify | ( | double | tolerance | ) |
template void Slic3r::Polyline::simplify_by_visibility< ExPolygonCollection > | ( | const T & | area | ) |
std::string Slic3r::Polyline::wkt | ( | ) | const |