public static class TriSurf.Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
A data object associated with this node.
|
int |
index
An integer index associated with this node.
|
Constructor and Description |
---|
TriSurf.Node(float x,
float y,
float z)
Constructs a node with specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
int |
countFaces()
Returns the number of faces that reference this node.
|
TriSurf.Edge |
edgeAfter()
Returns the edge after this node on the surface boundary.
|
TriSurf.Edge |
edgeBefore()
Returns the edge before this node on the surface boundary.
|
TriSurf.FaceIterator |
getFaces()
Gets an iterator for all faces that reference this node.
|
boolean |
isInSurface()
Determines whether this node is in the surface.
|
boolean |
isOnBoundary()
Determines whether this node is on the surface boundary.
|
float[] |
normalVector()
Returns the area-weighted average normal vector for this node.
|
void |
normalVector(float[] vn)
Computes the area-weighted average normal vector for this node.
|
java.lang.String |
toString() |
float |
x()
Returns the x coordinate of this node.
|
float |
y()
Returns the y coordinate of this node.
|
float |
z()
Returns the z coordinate of this node.
|
public int index
public java.lang.Object data
public TriSurf.Node(float x, float y, float z)
x
- the x coordinate.y
- the y coordinate.z
- the z coordinate.public final float x()
public final float y()
public final float z()
public boolean isInSurface()
public boolean isOnBoundary()
public TriSurf.Edge edgeBefore()
public TriSurf.Edge edgeAfter()
public float[] normalVector()
public void normalVector(float[] vn)
vn
- array to contain the {X,Y,Z} components of the normal vector.public int countFaces()
public TriSurf.FaceIterator getFaces()
public java.lang.String toString()
toString
in class java.lang.Object