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
57 void simplifyPolygon(
const std::vector<Point2>& vIn,
double errBound,std::vector<Point2>& vOut);
87 const std::vector<Point2>& vOrgPoints,
88 std::vector<Point2>& vOffsetPoints,
89 double maxCorrectionFactor=1.0
102 void untwistPolygon(std::vector<Segment2>& vPolygon,std::vector<std::vector<Segment2> >& vvPolygon);
201 std::vector<Edge2>& vOutsidePolygon,
202 std::vector<std::vector<Edge2> >& vHolePolygons
221 void pointsToPolyline(std::vector<Point2>& vInPoints,
bool bClose,std::vector<Segment2>& vOutSegments);
240 #if GEOM_PSEUDO3D==GEOM_TRUE
265 #if GEOM_PSEUDO3D==GEOM_TRUE
302 void getDirectedEdges(
const std::vector<Triangle2*>& vT,std::vector<Edge2>& vDirectedEdgesOut);
327 std::vector<std::vector<Triangle2*> >& vvT
355 bool fillHole(
const std::vector<std::pair<Segment2,Vector2> >& vPolygonSegments,
358 std::vector<Point2>& vCornersOut
364 #if GEOM_PSEUDO3D==GEOM_TRUE
384 bool fillHole(
const std::vector<Point2>& vMeshCorners,
385 const std::vector<Segment2>& vPolygonSegments,
388 std::vector<Point2>& vCornersOut
410 const std::vector<Edge2>& vPolygonEdges,
413 std::vector<Point2>& vCornersOut
442 const std::vector<Edge2>& vEdgesIn,
443 std::vector<std::vector<Edge2> >& vvPolygonsOut,
444 std::vector<Edge2>& vRemainingOut
456 void getBorders(
const std::vector<Triangle2*>& vT,std::vector<Segment2>& vBorderSegmentsOut);
541 const char* getString(
const Orientation2 ori);
692 bool readXY(
const char* filename,std::vector<Point2>& vPointsOut);
694 #if GEOM_PSEUDO3D==GEOM_TRUE
706 bool readXYZ(
const char* filename,std::vector<Point2>& vPointsOut);
734 bool readPointsPLY(
const char* filename,
bool bUniquePoints,std::vector<Point2>& vPoints,std::vector<VtxColor>* pVertexColors=NULL);
756 bool readPointsPLY(std::istream& is,
bool bUniquePoints,std::vector<Point2>& vPoints,std::vector<VtxColor>* pVertexColors=NULL);
783 bool writePointsPLY(
const char* filename,std::vector<Point2*>& vPoints,
bool bASCII);
865 bool readPointsBIN(
const char* filename, std::vector<Point2>& vPoints,
bool bWithHeader=
true);
CINC2
Enum for the position of a point relative to a circle.
Definition: Point2.h:34
Represents a 2.5D point.
Definition: Point2.h:76
Represents a triangle in a triangulation.
Definition: Triangle2.h:59
Vector.
Definition: Vector2.h:47
CLASS_DECLSPEC const char * getFade2DVersion()
Get the ID string.
CLASS_DECLSPEC bool isRelease()
Check if a release of debug version is used.
CLASS_DECLSPEC int getMinorVersionNumber()
Get the minor version number.
CLASS_DECLSPEC int getRevisionNumber()
Get the revision version number.
CLASS_DECLSPEC int getMajorVersionNumber()
Get the major version number.
CLASS_DECLSPEC bool readXYZ(const char *filename, std::vector< Point2 > &vPointsOut)
Read (x y z) points from an ASCII file.
CLASS_DECLSPEC bool readSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsOut)
Read segments from a binary file.
CLASS_DECLSPEC bool writePointsPLY(const char *filename, std::vector< Point2 * > &vPoints, bool bASCII)
Write points to a *.PLY file.
CLASS_DECLSPEC bool readPointsPLY(std::istream &is, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL)
Read points from a *.PLY file.
CLASS_DECLSPEC bool readXY(const char *filename, std::vector< Point2 > &vPointsOut)
Read (x y) points from an ASCII file.
CLASS_DECLSPEC bool writePointsASCII(const char *filename, const std::vector< Point2 > &vPointsIn)
Write points to an ASCII file.
CLASS_DECLSPEC bool readPointsBIN(const char *filename, std::vector< Point2 > &vPoints, bool bWithHeader=true)
Read points from a binary file.
CLASS_DECLSPEC bool writePointsBIN(const char *filename, std::vector< Point2 * > &vPoints)
Write points to a binary file.
CLASS_DECLSPEC bool writeSegmentsBIN(const char *filename, std::vector< Segment2 > &vSegmentsIn)
Write segments to a binary file.