Connected component of triangles with boundary and hole polygons. More...
#include <CompPolygon.h>
Public Member Functions | |
CompPolygon () | |
Default constructor. More... | |
CompPolygon (const CompPolygon &other) | |
Copy constructor. More... | |
~CompPolygon () | |
Destructor. More... | |
CompPolygon & | operator= (const CompPolygon &other) |
Assignment operator. More... | |
Public Attributes | |
std::vector< Triangle2 * > * | pvCC |
Connected component of triangles. More... | |
std::vector< Edge2 > * | pvOuterPolygon |
Ordered outer polygon edges. More... | |
std::vector< std::vector< Edge2 > > * | pvvHolePolygons |
Ordered hole polygons. A vector of vectors of Edge2 objects representing holes within the connected component. Each hole is represented by a separate vector of Edge2 's. | |
The CompPolygon
structure holds a collection of triangles that form a connected component. Two triangles are considered connected if they share an edge. The structure also stores ordered polygons representing the boundary (outer polygon) and any holes within the connected component.
GEOM_FADE2D::CompPolygon::CompPolygon | ( | ) |
Default constructor
GEOM_FADE2D::CompPolygon::CompPolygon | ( | const CompPolygon & | other | ) |
Creates a copy of another CompPolygon
object.
other | The CompPolygon object to copy. |
GEOM_FADE2D::CompPolygon::~CompPolygon | ( | ) |
Destructor.
CompPolygon& GEOM_FADE2D::CompPolygon::operator= | ( | const CompPolygon & | other | ) |
Assigns the contents of another CompPolygon
object to this one.
other | The CompPolygon object to assign. |
CompPolygon
object. std::vector<Triangle2*>* GEOM_FADE2D::CompPolygon::pvCC |
A vector of pointers to Triangle2 objects that form the connected component.
std::vector<Edge2>* GEOM_FADE2D::CompPolygon::pvOuterPolygon |
A vector of Edge2
objects representing the outer boundary of the connected component.