Horizon
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. More...
 
 ~CDT ()
 Destructor - clean up memory.
 
void AddHole (const std::vector< Point * > &polyline)
 Add a hole. More...
 
void AddPoint (Point *point)
 Add a steiner point. More...
 
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.
 
 CDT (const std::vector< Point * > &polyline)
 Constructor - add polyline with non repeating points. More...
 
 ~CDT ()
 Destructor - clean up memory.
 
void AddHole (const std::vector< Point * > &polyline)
 Add a hole. More...
 
void AddPoint (Point *point)
 Add a steiner point. More...
 
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() [1/2]

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

Constructor - add polyline with non repeating points.

Parameters
polyline

◆ CDT() [2/2]

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

Constructor - add polyline with non repeating points.

Parameters
polyline

Member Function Documentation

◆ AddHole() [1/2]

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

Add a hole.

Parameters
polyline

◆ AddHole() [2/2]

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

Add a hole.

Parameters
polyline

◆ AddPoint() [1/2]

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

Add a steiner point.

Parameters
point

◆ AddPoint() [2/2]

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

Add a steiner point.

Parameters
point

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