public class TriangulationDSCell_3<X extends Point_3>
extends java.lang.Object
implements java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
int |
tag |
Constructor and Description |
---|
TriangulationDSCell_3()
creates an empty cell, whose vertices and neighbors need to be specified later.
|
TriangulationDSCell_3(TriangulationDSVertex_3<X> v0,
TriangulationDSVertex_3<X> v1,
TriangulationDSVertex_3<X> v2,
TriangulationDSVertex_3<X> v3,
TriangulationDSCell_3<X> c0,
TriangulationDSCell_3<X> c1,
TriangulationDSCell_3<X> c2,
TriangulationDSCell_3<X> c3)
creates a cell with vertices v0 through v3 and with neighbors c0 through c4.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object o)
compares the cell to another cell using a lexicographical order on their sorted vertices
(treated as 3D points).
|
boolean |
hasGeometricNeighbor(TriangulationDSCell_3<X> c)
checks whether c is geometrically a neighbor of the cell, that is, whether the two tetrahedra
share a common 2-face.
|
boolean |
hasNeighbor(TriangulationDSCell_3<X> c)
checks whether c is a neighbor of the cell.
|
boolean |
hasVertex(TriangulationDSVertex_3<X> v)
checks whether v is a vertex of the cell.
|
boolean |
hasVertex(X x)
checks whether x is a the point associated with a vertex of the cell.
|
int |
index(TriangulationDSCell_3<X> c)
returns the index of the neighboring cell c, and throws an Error if c is no neighbor of the cell.
|
int |
index(TriangulationDSVertex_3<X> v)
returns the index of vertex v in the cell, and throws an Error if v is no vertex of the cell.
|
int |
index(X x)
returns the index of the vertex of the cell associated with x, and throws an Error if x is
associated with no vertex of the cell.
|
TriangulationDSCell_3<X> |
neighbor(int i)
returns a pointer to the i-th neighbor of the cell (0<=i<4), which is by definition the one opposite
to the i-th vertex of the cell.
|
void |
setNeighbor(int i,
TriangulationDSCell_3<X> c)
sets the i-th neighbor of the cell to be c (0<=i<4).
|
void |
setVertex(int i,
TriangulationDSVertex_3<X> v)
sets the i-th vertex of the cell to be v (0<=i<4).
|
java.lang.String |
toString()
generates a string listing the corrdinates of the vertices of the cell.
|
TriangulationDSVertex_3<X> |
vertex(int i)
returns a pointer to the i-th vertex of the cell (0<=i<4).
|
Point_3[] |
verticesPoints()
returns an array containing the geometric points associated with the vertices of the cell
|
public TriangulationDSCell_3()
public TriangulationDSCell_3(TriangulationDSVertex_3<X> v0, TriangulationDSVertex_3<X> v1, TriangulationDSVertex_3<X> v2, TriangulationDSVertex_3<X> v3, TriangulationDSCell_3<X> c0, TriangulationDSCell_3<X> c1, TriangulationDSCell_3<X> c2, TriangulationDSCell_3<X> c3)
public TriangulationDSVertex_3<X> vertex(int i)
public Point_3[] verticesPoints()
public TriangulationDSCell_3<X> neighbor(int i)
public void setVertex(int i, TriangulationDSVertex_3<X> v)
public void setNeighbor(int i, TriangulationDSCell_3<X> c)
public int index(TriangulationDSVertex_3<X> v)
public int index(TriangulationDSCell_3<X> c)
public boolean hasVertex(TriangulationDSVertex_3<X> v)
public boolean hasVertex(X x)
public int index(X x)
public boolean hasNeighbor(TriangulationDSCell_3<X> c)
public boolean hasGeometricNeighbor(TriangulationDSCell_3<X> c)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable