Class TriangulationDSVertex_2<X extends Point_>
java.lang.Object
Jcg.triangulations2D.TriangulationDSVertex_2<X>
- All Implemented Interfaces:
Comparable<TriangulationDSVertex_2<X>>
public class TriangulationDSVertex_2<X extends Point_>
extends Object
implements Comparable<TriangulationDSVertex_2<X>>
The class represents a vertex of a 2D triangulation. Each vertex stores a pointer to one of
its incident faces.
- Author:
- Luca Castelli Aleardi and Steve Oudot (Ecole Polytechnique, 2012-24)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty vertex, with no associated geometric point.TriangulationDSVertex_2(TriangulationDSFace_2<X> c, X point) creates a vertex with an associated geometric point and an associated cell.TriangulationDSVertex_2(X point) creates a vertex with an associated geometric point. -
Method Summary
Modifier and TypeMethodDescriptionintgetFace()returns the cell associated with the vertex.returns an half-edge handle 'h' incident to the vertex 'v' (the target of 'h' is 'v')getPoint()returns the geometric point associated with the vertex.voidsets the face associated with the vertex.voidsets the geometric point associated with the vertex.toString()returns a string listing the coordinates of the geometric point associated with the vertex.
-
Field Details
-
face
TriangulationDSFace_2<X extends Point_> faceFace incident to the vertex -
point
-
tag
public int tag -
index
public int indexIndex of a vertex: useful for storing additional data associated with vertices
-
-
Constructor Details
-
TriangulationDSVertex_2
public TriangulationDSVertex_2()Creates an empty vertex, with no associated geometric point. -
TriangulationDSVertex_2
creates a vertex with an associated geometric point.- Parameters:
point- geometric coordinates (2D) of the vertex
-
TriangulationDSVertex_2
creates a vertex with an associated geometric point and an associated cell.
-
-
Method Details
-
setFace
sets the face associated with the vertex. -
setPoint
sets the geometric point associated with the vertex. -
getPoint
returns the geometric point associated with the vertex. -
getFace
returns the cell associated with the vertex. -
getHalfedge
returns an half-edge handle 'h' incident to the vertex 'v' (the target of 'h' is 'v') -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<X extends Point_>
-