Class Triangulation_2
java.lang.Object
Jcg.triangulations2D.Triangulation_2
- Direct Known Subclasses:
Delaunay_2
Incremental Triangulation using Face/Vertex data structure (TriangulationDS_2).
- Author:
- Java-code by Luca Castelli-Aleardi and Steve Oudot
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Triangulation_2.BoundingBoxprotected TriangulationDSFace_2<Point_2> -
Constructor Summary
ConstructorsConstructorDescriptionConstuctor: builds an empty triangulation.Triangulation_2(Point_2 a, Point_2 b, Point_2 c) Constuctor: builds a triangulation consisting of a triangle. -
Method Summary
Modifier and TypeMethodDescriptionComputes and returns the collection of all edges on the convex hull (collects only one HalfedgeHandle per geometric edge).Computes and returns the collection of all finite edges in the triangulation (that is, all edges connecting vertices in the interior of the bounding box).Computes and returns the collection of all finite faces of the triangulation (that is, faces lying in the interior of the bounding box).Computes and returns the collection of all finite vertices of the triangulation (that is, vertices lying in the interior of the bounding box).Inserts point p in the triangulation and returns the newly created vertexbooleanReturns true if Point p is infinite, i.e.booleanReturns true if Edge e is infinite, i.e.booleanReturns true if Face f is infinite, i.e.booleanReturns true if Vertex v is infinite, i.e.booleanisValid()checks the combinatorial validity of the triangulation.Locates point p in the triangulation and returns a triangle containing p.protected voidsetBoundingBox(double minx, double miny, double maxx, double maxy) update the dimension of the bounding boxtoString()protected void
-
Field Details
-
tri
-
startingFace
-
bbox
-
-
Constructor Details
-
Triangulation_2
public Triangulation_2()Constuctor: builds an empty triangulation. -
Triangulation_2
-
-
Method Details
-
setBoundingBox
protected void setBoundingBox(double minx, double miny, double maxx, double maxy) update the dimension of the bounding box- Parameters:
minx- ,miny,maxx,maxy summits of the rectangle
-
updateBoundingBox
-
locate
Locates point p in the triangulation and returns a triangle containing p.- Parameters:
p- the point to locate- Returns:
- one of the triangles containing p
-
insert
Inserts point p in the triangulation and returns the newly created vertex- Parameters:
p- the point to insert
-
isInfinite
Returns true if Point p is infinite, i.e. if it is a vertex of the bounding box -
isInfinite
Returns true if Vertex v is infinite, i.e. if it is a vertex of the bounding box -
isInfinite
Returns true if Face f is infinite, i.e. if it is connected to a vertex of the bounding box. -
isInfinite
Returns true if Edge e is infinite, i.e. if it is connected to a vertex of the bounding box. -
finiteVertices
Computes and returns the collection of all finite vertices of the triangulation (that is, vertices lying in the interior of the bounding box). -
finiteFaces
Computes and returns the collection of all finite faces of the triangulation (that is, faces lying in the interior of the bounding box). -
finiteEdges
Computes and returns the collection of all finite edges in the triangulation (that is, all edges connecting vertices in the interior of the bounding box). -
convexHullEdges
Computes and returns the collection of all edges on the convex hull (collects only one HalfedgeHandle per geometric edge). -
isValid
public boolean isValid()checks the combinatorial validity of the triangulation. -
toString
-