28 #if GEOM_PSEUDO3D==GEOM_TRUE
29 namespace GEOM_FADE25D {
30 #elif GEOM_PSEUDO3D==GEOM_FALSE
31 namespace GEOM_FADE2D {
33 #error GEOM_PSEUDO3D is not defined
35 class PolygonClipperImpl;
60 bool CLASS_DECLSPEC
clipPolygon(
Zone2* pBaseZoneIn,std::vector<Segment2>& vPolygonInput,
bool bWithDrape,std::vector<Segment2>& vPolygonSegmentsOut);
204 PolygonClipperImpl* pImpl;
bool CLASS_DECLSPEC clipPolygon(Zone2 *pBaseZoneIn, std::vector< Segment2 > &vPolygonInput, bool bWithDrape, std::vector< Segment2 > &vPolygonSegmentsOut)
Limits an input polygon to a specified zone.
Color for visualization.
Definition: Color.h:65
The PolygonClipper class handles polygon repair operations.
Definition: PolygonClipper.h:77
PolygonTree * getPolygonTree()
Returnes the PolygonTree structure.
void getOuterSegments_CCW(std::vector< Segment2 > &vOuterSegments_CCW) const
Retrieves the outermost segments of the polygon in counter-clockwise direction.
void show(Visualizer2 *pVis, const Color &matColor=Color(CYELLOW, 0, true), const Color airColor=Color(CWHITE, 0, false)) const
Visualizes the polygon regions as a .PDF or PostScript file.
void show(const std::string &name, const Color &matColor=Color(CYELLOW, 0, true), const Color airColor=Color(CWHITE, 0, false)) const
Visualizes the polygon regions as a .PDF or PostScript file.
~PolygonClipper()
Destructor for the PolygonClipper class.
PolygonClipper(const std::vector< Segment2 > &vSegments, double collapseDist)
Constructs a PolygonClipper object.
void getSegments_regionOriented(std::vector< Segment2 > &vSegments_regionOriented) const
Retrieves the inner and outer polygon segments oriented by region.
Represents the possibly nested layers of a polygon as a hierarchical structure.
Definition: PolygonTree.h:53
A PDF and Postscript Writer for 2D Visualization.
Definition: Visualizer2.h:60
Represents a defined area within a triangulation.
Definition: Zone2.h:99