public static class TriSurf.Face
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
A data object associated with this face.
|
int |
index
An integer index associated with this face.
|
Modifier and Type | Method and Description |
---|---|
float |
area()
Returns the area of this face.
|
double[] |
centerCircle()
Returns the circumcenter of this face.
|
double |
centerCircle(double[] cc)
Computes the circumcenter of this face.
|
TriSurf.Face |
faceA()
Returns the face nabor A (opposite node A) referenced by this face.
|
TriSurf.Face |
faceB()
Returns the face nabor B (opposite node B) referenced by this face.
|
TriSurf.Face |
faceC()
Returns the face nabor C (opposite node C) referenced by this face.
|
TriSurf.Face |
faceNabor(TriSurf.Node node)
Gets the face nabor opposite the specified node.
|
TriSurf.Face |
mate()
Returns the mate of this face.
|
TriSurf.Node |
nodeA()
Returns the node A referenced by this face.
|
TriSurf.Node |
nodeB()
Returns the node B referenced by this face.
|
TriSurf.Node |
nodeC()
Returns the node C referenced by this face.
|
TriSurf.Node |
nodeNabor(TriSurf.Face faceNabor)
Gets the node in the specified face nabor that is opposite this face.
|
TriSurf.Node |
nodeNearest(float x,
float y,
float z)
Returns the node referenced by this face that is nearest to
the point with specified coordinates.
|
float[] |
normalVector()
Returns the normal vector for this face.
|
float |
normalVector(float[] vn)
Computes the normal vector and returns the area for this face.
|
boolean |
references(TriSurf.Node node)
Determines whether this face references the specified node.
|
boolean |
references(TriSurf.Node node1,
TriSurf.Node node2)
Determines whether this face references the specified nodes.
|
boolean |
references(TriSurf.Node node1,
TriSurf.Node node2,
TriSurf.Node node3)
Determines whether this face references the specified nodes.
|
public int index
public java.lang.Object data
public final TriSurf.Node nodeA()
public final TriSurf.Node nodeB()
public final TriSurf.Node nodeC()
public final TriSurf.Face faceA()
public final TriSurf.Face faceB()
public final TriSurf.Face faceC()
public TriSurf.Face mate()
public final TriSurf.Node nodeNearest(float x, float y, float z)
x
- the x coordinate.y
- the y coordinate.z
- the z coordinate.public final TriSurf.Face faceNabor(TriSurf.Node node)
public final TriSurf.Node nodeNabor(TriSurf.Face faceNabor)
public double centerCircle(double[] cc)
cc
- array of circumcenter coordinates {xc,yc,zc}.public double[] centerCircle()
public float area()
public float[] normalVector()
public float normalVector(float[] vn)
vn
- array to contain the {X,Y,Z} components of the normal vector.public boolean references(TriSurf.Node node)
node
- the node.public boolean references(TriSurf.Node node1, TriSurf.Node node2)
node1
- a node.node2
- a node.public boolean references(TriSurf.Node node1, TriSurf.Node node2, TriSurf.Node node3)
node1
- a node.node2
- a node.node3
- a node.