Fade2D Documentation pages v2.16.7
Delaunay Features
freeFunctions.h File Reference
#include "Point2.h"
#include "Segment2.h"
#include "Edge2.h"
#include <vector>

Go to the source code of this file.

Functions

CLASS_DECLSPEC void GEOM_FADE2D::edgesToPolygons (const std::vector< Edge2 > &vEdgesIn, std::vector< std::vector< Edge2 > > &vvPolygonsOut, std::vector< Edge2 > &vRemainingOut)
 Organize a set of edges into polygons. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::fillHole (const std::vector< std::pair< Segment2, Vector2 > > &vPolygonSegments, bool bWithRefine, bool bVerbose, std::vector< Point2 > &vCornersOut)
 Fill a hole in a 3D mesh with triangles (deprecated) More...
 
CLASS_DECLSPEC double GEOM_FADE2D::getArea2D (const Point2 *p0, const Point2 *p1, const Point2 *p2)
 Get 2D area of a triangle. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::getBorders (const std::vector< Triangle2 * > &vT, std::vector< Segment2 > &vBorderSegmentsOut)
 Get the border segments of a set of triangles. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::getConnectedComponents (const std::vector< Triangle2 * > &vT, std::vector< std::vector< Triangle2 * > > &vvT)
 Get connected components. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::getDirectedEdges (const std::vector< Triangle2 * > &vT, std::vector< Edge2 > &vDirectedEdgesOut)
 Get directed edges. More...
 
CLASS_DECLSPEC const char * GEOM_FADE2D::getFade2DVersion ()
 Get the ID string. More...
 
CLASS_DECLSPEC int GEOM_FADE2D::getGlobalNumCPU ()
 Get the number of cpu cores to be used. More...
 
CLASS_DECLSPEC int GEOM_FADE2D::getMajorVersionNumber ()
 Get the major version number. More...
 
CLASS_DECLSPEC int GEOM_FADE2D::getMinorVersionNumber ()
 Get the minor version number. More...
 
CLASS_DECLSPEC Orientation2 GEOM_FADE2D::getOrientation2 (const Point2 *p0, const Point2 *p1, const Point2 *p2)
 Get the orientation of three points. More...
 
CLASS_DECLSPEC Orientation2 GEOM_FADE2D::getOrientation2_mt (const Point2 *p0, const Point2 *p1, const Point2 *p2)
 Get the orientation of three points (MT) More...
 
CLASS_DECLSPEC int GEOM_FADE2D::getRevisionNumber ()
 Get the revision version number. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::getSortedBoundaryPolygons (std::vector< Triangle2 * > &vConnectedComponent, std::vector< Edge2 > &vOutsidePolygon, std::vector< std::vector< Edge2 > > &vHolePolygons)
 Get sorted boundary polygons. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::getUndirectedEdges (const std::vector< Triangle2 * > &vT, std::vector< Edge2 > &vUndirectedEdgesOut)
 Get undirected edges. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::isRelease ()
 Check if a release of debug version is used. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::isSimplePolygon (std::vector< Segment2 > &vSegments)
 Check if a polygon is simple. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::offsetPolygonPoints (double offset, const std::vector< Point2 > &vOrgPoints, std::vector< Point2 > &vOffsetPoints, double maxCorrectionFactor=1.0)
 Get offset points (deprecated) More...
 
CLASS_DECLSPEC void GEOM_FADE2D::pointsToPolyline (std::vector< Point2 > &vInPoints, bool bClose, std::vector< Segment2 > &vOutSegments)
 Create segments from a set of points. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::readPointsBIN (const char *filename, std::vector< Point2 > &vPoints, bool bWithHeader=true)
 Read points from a binary file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::readPointsPLY (const char *filename, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL)
 Read points from a *.PLY file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::readPointsPLY (std::istream &is, bool bUniquePoints, std::vector< Point2 > &vPoints, std::vector< VtxColor > *pVertexColors=NULL)
 Read points from a *.PLY file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::readSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsOut)
 Read segments from a binary file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::readXY (const char *filename, std::vector< Point2 > &vPointsOut)
 Read (x y) points from an ASCII file. More...
 
CLASS_DECLSPEC int GEOM_FADE2D::setGlobalNumCPU (int numCPU)
 Set the global number of threads to be used. More...
 
CLASS_DECLSPEC void GEOM_FADE2D::simplifyPolygon (const std::vector< Point2 > &vIn, double errBound, std::vector< Point2 > &vOut)
 Simplify a polygon. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::sortRing (std::vector< Segment2 > &vRing)
 Sort a vector of segments. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::sortRingCCW (std::vector< Segment2 > &vRing)
 Order and orient a vector of segments (CCW) More...
 
CLASS_DECLSPEC void GEOM_FADE2D::untwistPolygon (std::vector< Segment2 > &vPolygon, std::vector< std::vector< Segment2 > > &vvPolygon)
 Repair a selfintersecting polygon (deprecated) More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 * > &vPointsIn)
 Write points to an ASCII file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsASCII (const char *filename, const std::vector< Point2 > &vPointsIn)
 Write points to an ASCII file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 * > &vPoints)
 Write points to a binary file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsBIN (const char *filename, std::vector< Point2 > &vPoints)
 Write points to a binary file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsPLY (const char *filename, std::vector< Point2 * > &vPoints, bool bASCII)
 Write points to a *.PLY file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writePointsPLY (std::ostream &os, std::vector< Point2 * > &vPoints, bool bASCII)
 Write points to a *.PLY file. More...
 
CLASS_DECLSPEC bool GEOM_FADE2D::writeSegmentsBIN (const char *filename, std::vector< Segment2 > &vSegmentsIn)
 Write segments to a binary file. More...