public static class TetMesh.Edge
extends java.lang.Object
An edge is specified by two nodes A and B. The order of these nodes is significant. An edge is directed from A to B.
Every edge has a mate. An edge and its mate reference the same two nodes, but in the opposite order, so they have opposite directions. Therefore, an edge does not equal its mate.
When constructing an edge, a tet that references the two nodes A and B may be specified. If non-null, this tet may used to quickly get any face or tet nabors of the edge.
Constructor and Description |
---|
TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b)
Constructs a directed edge that references the specified nodes.
|
TetMesh.Edge(TetMesh.Node a,
TetMesh.Node b,
TetMesh.Tet abcd)
Constructs a directed edge that references the specified nodes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
int |
hashCode() |
TetMesh.Edge |
mate()
Returns the mate of this edge.
|
double[] |
midpoint()
Returns the midpoint of this face.
|
double |
midpoint(double[] c)
Computes the midpoint of this edge.
|
TetMesh.Node |
nodeA()
Returns the node A at which this edge begins.
|
TetMesh.Node |
nodeB()
Returns the node B at which this edge ends.
|
TetMesh.Tet |
tet()
Returns the tet that references the nodes in this edge.
|
public TetMesh.Edge(TetMesh.Node a, TetMesh.Node b)
a
- a node of the edge.b
- a node of the edge.public TetMesh.Edge(TetMesh.Node a, TetMesh.Node b, TetMesh.Tet abcd)
a
- a node of the edge.b
- a node of the edge.abcd
- a tet that references nodes A and B; null, if none.public TetMesh.Node nodeA()
public TetMesh.Node nodeB()
public TetMesh.Tet tet()
public TetMesh.Edge mate()
public double midpoint(double[] c)
c
- array of midpoint coordinates {xc,yc,zc}.public double[] midpoint()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object