public static class TetMesh.Tet
extends java.lang.Object
implements java.io.Serializable
A tet is serializable, but all of its private fields are transient. Those fields are serialized only when the mesh is serialized. Public fields are not transient, and so are valid without the mesh.
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
A data object associated with this tet.
|
int |
index
An integer index associated with this tet.
|
Modifier and Type | Method and Description |
---|---|
double[] |
centerSphere()
Returns the circumcenter of this tet.
|
double |
centerSphere(double[] c)
Computes the circumcenter of this tet.
|
TetMesh.Node |
nodeA()
Returns the node A referenced by this tet.
|
TetMesh.Node |
nodeB()
Returns the node B referenced by this tet.
|
TetMesh.Node |
nodeC()
Returns the node C referenced by this tet.
|
TetMesh.Node |
nodeD()
Returns the node D referenced by this tet.
|
TetMesh.Node |
nodeNabor(TetMesh.Node node)
Returns the node opposite this tet in the tet nabor that is opposite
the specified node.
|
TetMesh.Node |
nodeNabor(TetMesh.Tet tetNabor)
Returns the node in the specified tet nabor that is opposite this tet.
|
TetMesh.Node |
nodeNearest(float x,
float y,
float z)
Returns the node referenced by this tet that is nearest to
the point with specified coordinates.
|
double |
quality()
Returns the quality of this tet.
|
boolean |
references(TetMesh.Node node)
Determines whether this tet references the specified node.
|
boolean |
references(TetMesh.Node na,
TetMesh.Node nb)
Determines whether this tet references the specified nodes.
|
boolean |
references(TetMesh.Node na,
TetMesh.Node nb,
TetMesh.Node nc)
Determines whether this tet references the specified nodes.
|
boolean |
references(TetMesh.Node na,
TetMesh.Node nb,
TetMesh.Node nc,
TetMesh.Node nd)
Determines whether this tet references the specified nodes.
|
TetMesh.Tet |
tetA()
Returns the tet nabor A (opposite node A) referenced by this tet.
|
TetMesh.Tet |
tetB()
Returns the tet nabor B (opposite node B) referenced by this tet.
|
TetMesh.Tet |
tetC()
Returns the tet nabor C (opposite node C) referenced by this tet.
|
TetMesh.Tet |
tetD()
Returns the tet nabor D (opposite node D) referenced by this tet.
|
TetMesh.Tet |
tetNabor(TetMesh.Node node)
Returns the tet nabor opposite the specified node.
|
public int index
public java.lang.Object data
public final TetMesh.Node nodeA()
public final TetMesh.Node nodeB()
public final TetMesh.Node nodeC()
public final TetMesh.Node nodeD()
public final TetMesh.Tet tetA()
public final TetMesh.Tet tetB()
public final TetMesh.Tet tetC()
public final TetMesh.Tet tetD()
public final TetMesh.Node nodeNearest(float x, float y, float z)
x
- the x coordinate.y
- the y coordinate.z
- the z coordinate.public final TetMesh.Tet tetNabor(TetMesh.Node node)
public final TetMesh.Node nodeNabor(TetMesh.Tet tetNabor)
public final TetMesh.Node nodeNabor(TetMesh.Node node)
public double centerSphere(double[] c)
c
- array of circumcenter coordinates {xc,yc,zc}.public double[] centerSphere()
public double quality()
public boolean references(TetMesh.Node node)
node
- the node.public boolean references(TetMesh.Node na, TetMesh.Node nb)
na
- a node.nb
- a node.public boolean references(TetMesh.Node na, TetMesh.Node nb, TetMesh.Node nc)
na
- a node.nb
- a node.nc
- a node.public boolean references(TetMesh.Node na, TetMesh.Node nb, TetMesh.Node nc, TetMesh.Node nd)
na
- a node.nb
- a node.nc
- a node.nd
- a node.