Ear-clipping triangulator.
More...
#include <ear_clip_triangulator.h>
Ear-clipping triangulator.
◆ EarClipTriangulator()
clan::EarClipTriangulator::EarClipTriangulator |
( |
| ) |
|
Constructs a triangulator.
◆ ~EarClipTriangulator()
virtual clan::EarClipTriangulator::~EarClipTriangulator |
( |
| ) |
|
|
virtual |
◆ add_vertex() [1/2]
void clan::EarClipTriangulator::add_vertex |
( |
const Pointf & | p | ) |
|
Add vertex.
- Parameters
-
References clan::p.
◆ add_vertex() [2/2]
void clan::EarClipTriangulator::add_vertex |
( |
float | x, |
|
|
float | y ) |
Add the next vertex of the polygon to the triangulator.
References clan::x, and clan::y.
◆ begin_hole()
void clan::EarClipTriangulator::begin_hole |
( |
| ) |
|
Mark beginning of a polygon hole.
◆ calculate_polygon_orientation()
Determine the orientation of the vertices in the triangulator.
◆ clear()
void clan::EarClipTriangulator::clear |
( |
| ) |
|
Remove all vertices from triangulator.
◆ end_hole()
void clan::EarClipTriangulator::end_hole |
( |
| ) |
|
Mark ending of a polygon hole.
◆ get_vertice_count()
int clan::EarClipTriangulator::get_vertice_count |
( |
| ) |
|
Returns the number of vertices in the triangulator.
◆ get_vertices()
std::vector< Pointf > clan::EarClipTriangulator::get_vertices |
( |
| ) |
|
Returns a list of the vertices added to the triangulator.
◆ set_orientation()
◆ triangulate()
The documentation for this class was generated from the following file: