public static class TetMesh.Face
extends java.lang.Object
A face is specified by three nodes A, B, and C. The order of these nodes is significant. They are in counter-clockwise (CCW) order, as viewed from a point right of the face.
Every face has a mate. A face and its mate reference the same three nodes, but in the opposite order, so they have opposite orientations. Therefore, a face does not equal its mate.
When constructing a face, a tet that references the three nodes A, B, and C may be specified. If non-null, this tet may be used to quickly determine the two tets left and right of the face that references its nodes. For a face on the hull of the mesh, either the left or right tet is null.
Constructor and Description |
---|
TetMesh.Face(TetMesh.Node a,
TetMesh.Node b,
TetMesh.Node c)
Constructs an oriented face that references the specified nodes.
|
TetMesh.Face(TetMesh.Node a,
TetMesh.Node b,
TetMesh.Node c,
TetMesh.Tet abcd)
Constructs an oriented face that references the specified nodes.
|
Modifier and Type | Method and Description |
---|---|
double[] |
centerCircle()
Returns the circumcenter of this face.
|
double |
centerCircle(double[] c)
Computes the circumcenter of this face.
|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
boolean |
isVisibleFromPoint(double x,
double y,
double z)
Determines whether this face is visible from the specified point.
|
TetMesh.Face |
mate()
Returns the mate of this face.
|
TetMesh.Node |
nodeA()
Returns the node A in this face.
|
TetMesh.Node |
nodeB()
Returns the node B in this face.
|
TetMesh.Node |
nodeC()
Returns the node C in this face.
|
TetMesh.Node |
nodeLeft()
Returns the other node (not in this face) in the tet left of this face.
|
TetMesh.Node |
nodeRight()
Returns the other node (not in this face) in the tet right of this face.
|
TetMesh.Tet |
tetLeft()
Returns the tet left of this face.
|
TetMesh.Tet |
tetRight()
Returns the tet right of this face.
|
public TetMesh.Face(TetMesh.Node a, TetMesh.Node b, TetMesh.Node c)
a
- a node of the face.b
- a node of the face.c
- a node of the face.public TetMesh.Face(TetMesh.Node a, TetMesh.Node b, TetMesh.Node c, TetMesh.Tet abcd)
a
- a node of the face.b
- a node of the face.c
- a node of the face.abcd
- a tet that references the specified nodes; null, if none.public final TetMesh.Node nodeA()
public final TetMesh.Node nodeB()
public final TetMesh.Node nodeC()
public TetMesh.Tet tetLeft()
public TetMesh.Tet tetRight()
public TetMesh.Node nodeLeft()
public TetMesh.Node nodeRight()
public TetMesh.Face mate()
public boolean isVisibleFromPoint(double x, double y, double z)
x
- the x coordinate of the point.y
- the y coordinate of the point.z
- the z coordinate of the point.public double centerCircle(double[] c)
c
- array of circumcenter coordinates {xc,yc,zc}.public double[] centerCircle()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object