Class Delaunay_2
java.lang.Object
Jcg.triangulations2D.Triangulation_2
Jcg.triangulations2D.Delaunay_2
Incremental 2D Delaunay Triangulation using Face/Vertex data structure (TriangulationDS_2).
- Author:
- Java-code by Luca Castelli-Aleardi and Steve Oudot
-
Nested Class Summary
Nested classes/interfaces inherited from class Jcg.triangulations2D.Triangulation_2
Triangulation_2.BoundingBox -
Field Summary
Fields inherited from class Jcg.triangulations2D.Triangulation_2
bbox, startingFace, tri -
Constructor Summary
ConstructorsConstructorDescriptionConstuctor: builds an empty Delaunay triangulation.Delaunay_2(Point_2 a, Point_2 b, Point_2 c) -
Method Summary
Modifier and TypeMethodDescriptionComputes and returns the list of constraint edges.Outputs the Voronoi vertex dual to face f.Inserts point p in the Delaunay triangulation and returns the newly created vertexInserts a constraint edge in the Delaunay triangulation.Methods inherited from class Jcg.triangulations2D.Triangulation_2
convexHullEdges, finiteEdges, finiteFaces, finiteVertices, isInfinite, isInfinite, isInfinite, isInfinite, isValid, locate, setBoundingBox, toString, updateBoundingBox
-
Constructor Details
-
Delaunay_2
public Delaunay_2()Constuctor: builds an empty Delaunay triangulation. -
Delaunay_2
-
-
Method Details
-
insert
Inserts point p in the Delaunay triangulation and returns the newly created vertex- Overrides:
insertin classTriangulation_2- Parameters:
p- the point to insert
-
insert
Inserts a constraint edge in the Delaunay triangulation. Warning: in the current implementation, constraint edges cannot intersect one another except at a common vertex, otherwise there is a risk of falling into an infinite loop...- Parameters:
p- ,q the vertices of the edge- Returns:
- the halfedge of origin p that points in the direction of q along the input constraint edge
-
constraintEdges
Computes and returns the list of constraint edges. Each edge is represented as an array of two points. -
dual
Outputs the Voronoi vertex dual to face f. By definition, this vertex coincides with the circumcenter of f. Throws a RuntimeException if f is infinite.
-