Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
p2t::CDT Class Reference

Public Member Functions

 CDT (const std::vector< Point * > &polyline)
 Constructor - add polyline with non repeating points.
 
 ~CDT ()
 Destructor - clean up memory.
 
void AddHole (const std::vector< Point * > &polyline)
 Add a hole.
 
void AddPoint (Point *point)
 Add a steiner point.
 
void Triangulate ()
 Triangulate - do this AFTER you've added the polyline, holes, and Steiner points.
 
std::vector< Triangle * > GetTriangles ()
 Get CDT triangles.
 
std::list< Triangle * > GetMap ()
 Get triangle map.
 

Constructor & Destructor Documentation

◆ CDT()

p2t::CDT::CDT ( const std::vector< Point * > &  polyline)

Constructor - add polyline with non repeating points.

Parameters
polyline

Member Function Documentation

◆ AddHole()

void p2t::CDT::AddHole ( const std::vector< Point * > &  polyline)

Add a hole.

Parameters
polyline

◆ AddPoint()

void p2t::CDT::AddPoint ( Point point)

Add a steiner point.

Parameters
point

The documentation for this class was generated from the following files: