32 #include "../Math/point.h"
44 class EarClipTriangulator_Impl;
95 std::shared_ptr<EarClipTriangulator_Impl> impl;
PolygonOrientation
Polygon orientations.
Definition: ear_clip_triangulator.h:47
float x2
Definition: ear_clip_triangulator.h:41
2D (x,y) point structure - Float
Definition: point.h:68
void begin_hole()
Mark beginning of a polygon hole.
EarClipTriangulator()
Constructs a triangulator.
float y1
Definition: ear_clip_triangulator.h:41
float y2
Definition: ear_clip_triangulator.h:41
void clear()
Remove all vertices from triangulator.
Triangle returned by triangulator.
Definition: ear_clip_triangulator.h:38
Definition: ear_clip_triangulator.h:50
void end_hole()
Mark ending of a polygon hole.
void set_orientation(PolygonOrientation orientation)
Set polygon orientation.
PolygonOrientation calculate_polygon_orientation()
Determine the orientation of the vertices in the triangulator.
float y3
Definition: ear_clip_triangulator.h:41
float x3
Definition: ear_clip_triangulator.h:41
Definition: ear_clip_triangulator.h:49
std::vector< Pointf > vertices()
Returns a list of the vertices added to the triangulator.
float x1
Definition: ear_clip_triangulator.h:41
int vertice_count()
Returns the number of vertices in the triangulator.
std::vector< EarClipTriangle > triangulate()
Perform triangulation.
virtual ~EarClipTriangulator()
Ear-clipping triangulator.
Definition: ear_clip_triangulator.h:54
void add_vertex(float x, float y)
Add the next vertex of the polygon to the triangulator.
Definition: Application/application.h:35