27 #if GEOM_PSEUDO3D==GEOM_TRUE
28 namespace GEOM_FADE25D {
29 #elif GEOM_PSEUDO3D==GEOM_FALSE
30 namespace GEOM_FADE2D {
32 #error GEOM_PSEUDO3D is not defined
67 std::vector<Point2>& vOrgPoints,
68 std::vector<Point2>& vOffsetPoints,
69 double maxCorrectionFactor=1.0
98 std::vector<Edge2>& vOutsidePolygon,
99 std::vector<std::vector<Edge2> >& vHolePolygons
121 void pointsToPolyline(std::vector<Point2>& vInPoints,
bool bClose,std::vector<Segment2>& vOutSegments);
136 #if GEOM_PSEUDO3D==GEOM_TRUE
158 #if GEOM_PSEUDO3D==GEOM_TRUE
196 void getDirectedEdges(
const std::vector<Triangle2*>& vT,std::vector<Edge2>& vDirectedEdgesOut);
217 std::vector<std::vector<Triangle2*> >& vvT
245 bool fillHole( std::vector<std::pair<Segment2,Vector2> > vPolygonSegments,
248 std::vector<Point2>& vCornersOut
254 #if GEOM_PSEUDO3D==GEOM_TRUE
275 std::vector<Segment2>& vPolygonSegments,
278 std::vector<Point2>& vCornersOut
300 std::vector<Edge2>& vPolygonEdges,
303 std::vector<Point2>& vCornersOut
339 std::vector<Edge2>& vEdgesIn,
340 std::vector<std::vector<Edge2> >& vvPolygonsOut,
341 std::vector<Edge2>& vRemainingOut
353 void getBorders(
const std::vector<Triangle2*>& vT,std::vector<Segment2>& vBorderSegmentsOut);
400 const char* getString(
const Orientation2 ori);
505 bool readXY(
const char* filename,std::vector<Point2>& vPointsOut);
507 #if GEOM_PSEUDO3D==GEOM_TRUE
515 bool readXYZ(
const char* filename,std::vector<Point2>& vPointsOut);
Point.
Definition: Point2.h:43
Vector.
Definition: Vector2.h:38
void getSortedBoundaryPolygons(std::vector< Triangle2 * > &vConnectedComponent, std::vector< Edge2 > &vOutsidePolygon, std::vector< std::vector< Edge2 > > &vHolePolygons)
Get sorted boundary polygons.
void offsetPolygonPoints(double offset, std::vector< Point2 > &vOrgPoints, std::vector< Point2 > &vOffsetPoints, double maxCorrectionFactor=1.0)
Create an offet polygon.
int getMajorVersionNumber()
Get the major version number.
const char * getFade2DVersion()
Get the Fade2D version string.
int getMinorVersionNumber()
Get the minor version number.
int getRevisionNumber()
Get the revision version number.
bool isRelease()
Check if a RELEASE or a DEBUG version is used.
bool readPointsBIN(const char *filename, std::vector< Point2 > &vPointsIn)
Read points from a binary file.
bool readXY(const char *filename, std::vector< Point2 > &vPointsOut)
Read (x y) points.
bool readXYZ(const char *filename, std::vector< Point2 > &vPointsOut)
Read (x y z) points.
bool writePointsBIN(const char *filename, std::vector< Point2 * > &vPointsIn)
Write points to a binary file.
bool readSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsOut)
Read segments from a binary file.
bool writeSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsIn)
Write segments to a binary file.
bool writePointsASCII(const char *filename, const std::vector< Point2 > &vPointsIn)
Write points to an ASCII file.