Connected component with boundary- and hole polygons. More...
#include <Zone2.h>
Public Member Functions | |
CompPolygon (const CompPolygon &other) | |
CompPolygon & | operator= (const CompPolygon &other) |
Public Attributes | |
std::vector< Triangle2 * > * | pvCC |
One connected component of triangles (connection is meant along edges, not just vertices) | |
std::vector< Edge2 > * | pvOuterPolygon |
Sorted outer polygon. | |
std::vector< std::vector< Edge2 > > * | pvvHolePolygons |
Sorted hole polygons. | |
This helper struct holds the triangles that form a connected component as well as the outer boundary polygon and inner hole polygons, if any. Edges are represented by a triangle and by an index. They are always counterclockwise oriented around their triangle. Thus the outer polygon is also counterclockwise oriented while the hole polygons are clockwise.