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
48 void simplifyPolygon(
const std::vector<Point2>& vIn,
double errBound,std::vector<Point2>& vOut);
85 const std::vector<Point2>& vOrgPoints,
86 std::vector<Point2>& vOffsetPoints,
87 double maxCorrectionFactor=1.0
97 void untwistPolygon(std::vector<Segment2>& vPolygon,std::vector<std::vector<Segment2> >& vvPolygon);
154 std::vector<Edge2>& vOutsidePolygon,
155 std::vector<std::vector<Edge2> >& vHolePolygons
177 void pointsToPolyline(std::vector<Point2>& vInPoints,
bool bClose,std::vector<Segment2>& vOutSegments);
192 #if GEOM_PSEUDO3D==GEOM_TRUE
214 #if GEOM_PSEUDO3D==GEOM_TRUE
252 void getDirectedEdges(
const std::vector<Triangle2*>& vT,std::vector<Edge2>& vDirectedEdgesOut);
273 std::vector<std::vector<Triangle2*> >& vvT
301 bool fillHole(
const std::vector<std::pair<Segment2,Vector2> >& vPolygonSegments,
304 std::vector<Point2>& vCornersOut
310 #if GEOM_PSEUDO3D==GEOM_TRUE
330 bool fillHole(
const std::vector<Point2>& vMeshCorners,
331 const std::vector<Segment2>& vPolygonSegments,
334 std::vector<Point2>& vCornersOut
356 const std::vector<Edge2>& vPolygonEdges,
359 std::vector<Point2>& vCornersOut
395 const std::vector<Edge2>& vEdgesIn,
396 std::vector<std::vector<Edge2> >& vvPolygonsOut,
397 std::vector<Edge2>& vRemainingOut
409 void getBorders(
const std::vector<Triangle2*>& vT,std::vector<Segment2>& vBorderSegmentsOut);
456 const char* getString(
const Orientation2 ori);
561 bool readXY(
const char* filename,std::vector<Point2>& vPointsOut);
563 #if GEOM_PSEUDO3D==GEOM_TRUE
571 bool readXYZ(
const char* filename,std::vector<Point2>& vPointsOut);
592 bool readPointsPLY(
const char* filename,
bool bUniquePoints,std::vector<Point2>& vPoints,std::vector<VtxColor>* pVertexColors=NULL);
608 bool readPointsPLY(std::istream& is,
bool bUniquePoints,std::vector<Point2>& vPoints,std::vector<VtxColor>* pVertexColors=NULL);
632 bool writePointsPLY(
const char* filename,std::vector<Point2*>& vPoints,
bool bASCII);
698 bool readPointsBIN(
const char* filename, std::vector<Point2>& vPointsIn,
bool bWithHeader=
true);
Point.
Definition: Point2.h:53
Vector.
Definition: Vector2.h:42
void untwistPolygon(std::vector< Segment2 > &vPolygon, std::vector< std::vector< Segment2 > > &vvPolygon)
Repair a selfintersecting polygon.
void getSortedBoundaryPolygons(std::vector< Triangle2 * > &vConnectedComponent, std::vector< Edge2 > &vOutsidePolygon, std::vector< std::vector< Edge2 > > &vHolePolygons)
Get sorted boundary polygons.
void offsetPolygonPoints(double offset, const std::vector< Point2 > &vOrgPoints, std::vector< Point2 > &vOffsetPoints, double maxCorrectionFactor=1.0)
Create an offet polygon.
int setGlobalNumCPU(int numCPU)
Set the global number of threads to be used.
int getGlobalNumCPU()
Get the global number of threads to be used.
void simplifyPolygon(const std::vector< Point2 > &vIn, double errBound, std::vector< Point2 > &vOut)
Simplify a polygon.
bool isRelease()
Check if a RELEASE or a DEBUG version is used.
int getMajorVersionNumber()
Get the major version number.
const char * getFade2DVersion()
Get the Fade2D version string.
int getRevisionNumber()
Get the revision version number.
int getMinorVersionNumber()
Get the minor version number.
bool writePointsPLY(const char *filename, std::vector< Point2 * > &vPoints, bool bASCII)
Write points to a *.PLY file.
bool writePointsASCII(const char *filename, const std::vector< Point2 > &vPointsIn)
Write points to an ASCII file.
bool writeSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsIn)
Write segments to a binary file.
bool readXY(const char *filename, std::vector< Point2 > &vPointsOut)
Read (x y) points.
bool writePointsBIN(const char *filename, std::vector< Point2 * > &vPoints)
Write points to a binary file.
bool readPointsBIN(const char *filename, std::vector< Point2 > &vPointsIn, bool bWithHeader=true)
Read points from a binary file.
bool readPointsPLY(std::istream &is, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL)
Read points from a *.PLY file.
bool readSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsOut)
Read segments from a binary file.