public static class TetMesh.Node
extends java.lang.Object
implements java.io.Serializable
A node 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 node.
|
int |
index
An integer index associated with this node.
|
Constructor and Description |
---|
TetMesh.Node(float x,
float y,
float z)
Constructs a node with the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
TetMesh.Tet |
tet()
Returns a tet that references this node.
|
java.lang.String |
toString() |
float |
x()
Returns the x coordinate of this node.
|
double |
xp()
Returns the x coordinate of this node as a perturbed double.
|
float |
y()
Returns the y coordinate of this node.
|
double |
yp()
Returns the y coordinate of this node as a perturbed double.
|
float |
z()
Returns the z coordinate of this node.
|
double |
zp()
Returns the z coordinate of this node as a perturbed double.
|
public int index
public java.lang.Object data
public TetMesh.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 final double xp()
public final double yp()
public final double zp()
public final TetMesh.Tet tet()
public java.lang.String toString()
toString
in class java.lang.Object