Fade2D Documentation pages v2.16.8
Delaunay Features
GEOM_FADE2D::CompPolygon Struct Reference

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...
 
CompPolygonoperator= (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.
 

Detailed Description

Polygon with a hole: The outer boundary is counterclockwise oriented, the hole's boundary clockwise.

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.

Note
Good to know: An Edge2 is represented by a Triangle2 and an opposite index, and it is directed, with the orientation always being counterclockwise (CCW) around the Triangle2. As a consequence, outer polygon edges are oriented counterclockwise (CCW), while edges representing hole polygons (if present) are clockwise (CW).

Constructor & Destructor Documentation

◆ CompPolygon() [1/2]

GEOM_FADE2D::CompPolygon::CompPolygon ( )

Default constructor

◆ CompPolygon() [2/2]

GEOM_FADE2D::CompPolygon::CompPolygon ( const CompPolygon other)

Creates a copy of another CompPolygon object.

Parameters
otherThe CompPolygon object to copy.

◆ ~CompPolygon()

GEOM_FADE2D::CompPolygon::~CompPolygon ( )

Destructor.

Member Function Documentation

◆ operator=()

CompPolygon& GEOM_FADE2D::CompPolygon::operator= ( const CompPolygon other)

Assigns the contents of another CompPolygon object to this one.

Parameters
otherThe CompPolygon object to assign.
Returns
Reference to this CompPolygon object.

Member Data Documentation

◆ pvCC

std::vector<Triangle2*>* GEOM_FADE2D::CompPolygon::pvCC

A vector of pointers to Triangle2 objects that form the connected component.

◆ pvOuterPolygon

std::vector<Edge2>* GEOM_FADE2D::CompPolygon::pvOuterPolygon

A vector of Edge2 objects representing the outer boundary of the connected component.


The documentation for this struct was generated from the following file: