14#ifdef CDT_USE_AS_COMPILED_LIBRARY
48 std::priority_queue<tuple<float, TriInd, VerticesArr3> > >(
55 std::priority_queue<tuple<double, TriInd, VerticesArr3> > >(
77template CDT_EXPORT
float
79template CDT_EXPORT
double
82template CDT_EXPORT
float
84template CDT_EXPORT
double
92template CDT_EXPORT
float
99template CDT_EXPORT
bool
101template CDT_EXPORT
bool
105template CDT_EXPORT
bool
111template CDT_EXPORT
float
113template CDT_EXPORT
double
Utilities and helpers - implementation.
Public API - implementation.
Triangulation class - implementation.
Helper function to verify if triangulation has no inconsistencies.
Data structure representing a 2D constrained Delaunay triangulation.
Unrefined refineTriangles(VertInd maxVerticesToInsert, RefinementCriterion::Enum refinementCriterion=RefinementCriterion::SmallestAngle, T refinementThreshold=degToRad(T(20)), TriIndUSet *toEraseOrNull=NULL, T minEdgeLength=T(1e-6), RefinementOrder::Enum refinementOrder=RefinementOrder::FIFO)
Triangles refinement by splitting bad triangles.
void RemoveDuplicates(std::vector< TVertex, TAllocator > &vertices, const std::vector< std::size_t > &duplicates)
Remove duplicates in-place from vector of custom points.
DuplicatesInfo RemoveDuplicatesAndRemapEdges(std::vector< TVertex, TVertexAllocator > &vertices, TGetVertexCoordX getX, TGetVertexCoordY getY, TEdgeIter edgesFirst, TEdgeIter edgesLast, TGetEdgeVertexStart getStart, TGetEdgeVertexEnd getEnd, TMakeEdgeFromStartAndEnd makeEdge)
Find point duplicates, remove them from vector (in-place) and remap edges (in-place)
Namespace containing triangulation functionality.
CDT_EXPORT T degToRad(T degrees)
Convert an angle from degrees to radians.
bool verifyTopology(const CDT::Triangulation< T, TNearPointLocator > &cdt)
Verify that triangulation topology is consistent.
CDT_EXPORT T area(const V2d< T > &a, const V2d< T > &b, const V2d< T > &c)
Surface area of a triangle ABC.
CDT_EXPORT T distance(const V2d< T > &a, const V2d< T > &b)
Distance between two 2D points.
IndexSizeType VertInd
Vertex index.
CDT_EXPORT T orient2D(const V2d< T > &p, const V2d< T > &v1, const V2d< T > &v2)
Orient p against line v1-v2 2D: robust geometric predicate.
CDT_EXPORT T distanceSquared(const V2d< T > &a, const V2d< T > &b)
Squared distance between two 2D points.
unordered_set< TriInd > TriIndUSet
Hash table of triangles.
CDT_EXPORT V2d< T > circumcenter(V2d< T > a, V2d< T > b, V2d< T > c)
Position of ABC triangle circumcenter.
bool verifyWinding(const CDT::Triangulation< T, TNearPointLocator > &cdt)
Check that every triangle is wound counter-clockwise: degenerate and inverted triangles are topologic...
CDT_EXPORT T smallestAngle(const V2d< T > &a, const V2d< T > &b, const V2d< T > &c)
Smallest angle of triangle ABC in radians.
Information about removed duplicated vertices.
FIFO queue with top() like std::priority_queue
Counts of the refinements that Triangulation::refineTriangles was not able to perform.