public static class TriMesh.Tri
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
data
A data object associated with this tri.
|
int |
index
An integer index associated with this tri.
|
Modifier and Type | Method and Description |
---|---|
double[] |
centerCircle()
Returns the circumcenter of this tri.
|
double |
centerCircle(double[] c)
Computes the circumcenter of this tri.
|
TriMesh.Node |
nodeA()
Returns the node A referenced by this tri.
|
TriMesh.Node |
nodeB()
Returns the node B referenced by this tri.
|
TriMesh.Node |
nodeC()
Returns the node C referenced by this tri.
|
TriMesh.Node |
nodeNabor(TriMesh.Tri triNabor)
Gets the node in the specified tri nabor that is opposite this tri.
|
TriMesh.Node |
nodeNearest(float x,
float y)
Returns the node referenced by this tri that is nearest to
the point with specified coordinates.
|
double |
quality()
Returns the quality of this tri.
|
boolean |
references(TriMesh.Node node)
Determines whether this tri references the specified node.
|
boolean |
references(TriMesh.Node na,
TriMesh.Node nb)
Determines whether this tri references the specified nodes.
|
boolean |
references(TriMesh.Node na,
TriMesh.Node nb,
TriMesh.Node nc)
Determines whether this tri references the specified nodes.
|
TriMesh.Tri |
triA()
Returns the tri nabor A (opposite node A) referenced by this tri.
|
TriMesh.Tri |
triB()
Returns the tri nabor B (opposite node B) referenced by this tri.
|
TriMesh.Tri |
triC()
Returns the tri nabor C (opposite node C) referenced by this tri.
|
TriMesh.Tri |
triNabor(TriMesh.Node node)
Gets the tri nabor opposite the specified node.
|
public int index
public java.lang.Object data
public final TriMesh.Node nodeA()
public final TriMesh.Node nodeB()
public final TriMesh.Node nodeC()
public final TriMesh.Tri triA()
public final TriMesh.Tri triB()
public final TriMesh.Tri triC()
public final TriMesh.Node nodeNearest(float x, float y)
x
- the x coordinate.y
- the y coordinate.public final TriMesh.Tri triNabor(TriMesh.Node node)
public final TriMesh.Node nodeNabor(TriMesh.Tri triNabor)
public double centerCircle(double[] c)
c
- array of circumcenter coordinates {xc,yc}.public double[] centerCircle()
public double quality()
public boolean references(TriMesh.Node node)
node
- the node.public boolean references(TriMesh.Node na, TriMesh.Node nb)
na
- a node.nb
- a node.public boolean references(TriMesh.Node na, TriMesh.Node nb, TriMesh.Node nc)
na
- a node.nb
- a node.nc
- a node.