diff options
Diffstat (limited to 'src/libslic3r/ExPolygon.hpp')
-rw-r--r-- | src/libslic3r/ExPolygon.hpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/libslic3r/ExPolygon.hpp b/src/libslic3r/ExPolygon.hpp index 454856839..c5d15a5fe 100644 --- a/src/libslic3r/ExPolygon.hpp +++ b/src/libslic3r/ExPolygon.hpp @@ -6,6 +6,9 @@ #include "Polyline.hpp" #include <vector> +// polygon class of the polypartition library +class TPPLPoly; + namespace Slic3r { class ExPolygon; @@ -56,13 +59,14 @@ public: void remove_point_too_near(const coord_t tolerance); void medial_axis(const ExPolygon &bounds, double max_width, double min_width, ThickPolylines* polylines, double height) const; void medial_axis(double max_width, double min_width, Polylines* polylines) const; - void get_trapezoids(Polygons* polygons) const; - void get_trapezoids(Polygons* polygons, double angle) const; +// void get_trapezoids(Polygons* polygons) const; +// void get_trapezoids(Polygons* polygons, double angle) const; void get_trapezoids2(Polygons* polygons) const; void get_trapezoids2(Polygons* polygons, double angle) const; void get_trapezoids3_half(Polygons* polygons, float spacing) const; void triangulate(Polygons* polygons) const; - void triangulate_pp(Polygons* polygons) const; + // Triangulate into triples of points. + void triangulate_pp(Points *triangles) const; void triangulate_p2t(Polygons* polygons) const; Lines lines() const; }; @@ -299,6 +303,10 @@ extern std::vector<BoundingBox> get_extents_vector(const ExPolygons &polygons); extern bool remove_sticks(ExPolygon &poly); +extern std::list<TPPLPoly> expoly_to_polypartition_input(const ExPolygons &expp); +extern std::list<TPPLPoly> expoly_to_polypartition_input(const ExPolygon &ex); +extern std::vector<Point> polypartition_output_to_triangles(const std::list<TPPLPoly> &output); + } // namespace Slic3r // start Boost |