#include <ear_clip_triangulator.h>
Public Member Functions | |
Construction | |
| CL_EarClipTriangulator () | |
| Constructs a triangulator. | |
| virtual | ~CL_EarClipTriangulator () |
Attributes | |
| std::vector< CL_Pointf > | get_vertices () |
| Returns a list of the vertices added to the triangulator. | |
| int | get_vertice_count () |
| Returns the number of vertices in the triangulator. | |
| CL_PolygonOrientation | calculate_polygon_orientation () |
| Determine the orientation of the vertices in the triangulator. | |
Operations | |
| void | add_vertex (float x, float y) |
| Add the next vertex of the polygon to the triangulator. | |
| void | add_vertex (const CL_Pointf &p) |
| Add vertex. | |
| void | clear () |
| Remove all vertices from triangulator. | |
| void | set_orientation (CL_PolygonOrientation orientation) |
| Set polygon orientation. | |
| CL_EarClipResult | triangulate () |
| Perform triangulation. | |
| void | begin_hole () |
| Mark beginning of a polygon hole. | |
| void | end_hole () |
| Mark ending of a polygon hole. | |
|
|
Constructs a triangulator.
|
|
|
|
|
|
Add vertex.
|
|
||||||||||||
|
Add the next vertex of the polygon to the triangulator.
|
|
|
Mark beginning of a polygon hole.
|
|
|
Determine the orientation of the vertices in the triangulator.
|
|
|
Remove all vertices from triangulator.
|
|
|
Mark ending of a polygon hole.
|
|
|
Returns the number of vertices in the triangulator.
|
|
|
Returns a list of the vertices added to the triangulator.
|
|
|
Set polygon orientation.
|
|
|
Perform triangulation.
|
1.4.6