public abstract class CompactTriangleMesh extends java.lang.Object implements NavigationInterface, WingededgeInterface
Modifier and Type | Field and Description |
---|---|
float[] |
coordF |
int |
e10 |
int |
e20 |
int |
e21 |
int |
v0 |
int |
v1 |
int |
v2 |
Constructor and Description |
---|
CompactTriangleMesh() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getEdge(int v)
Return an edge incident to vertex v
|
abstract int |
getLeftBack(int e)
Return the 'LeftBack' edge, neighbor of 'e'
|
abstract int |
getLeftFront(int e)
Return the 'LeftFront' edge, neighbor of 'e'
|
float[] |
getPoint(int v)
Return the geometric coordinates of vertex v
|
abstract int |
getRightBack(int e)
Return the 'RightBack' edge, neighbor of 'e'
|
abstract int |
getRightFront(int e)
Return the 'RightFront' edge, neighbor of 'e'
|
abstract int |
getSource(int e)
Return the vertex source of 'e'
|
abstract int |
getTarget(int e)
Return the vertex target of 'e'
|
float |
getX(int v)
Return the x-coordinate of vertex v
|
float |
getY(int v)
Return the y-coordinate of vertex v
|
float |
getZ(int v)
Return the z-coordinate of vertex v
|
abstract boolean |
isOutgoing(int e,
int v)
Check whether the edge 'e' is outgoing from vertex 'v'
|
int |
nextColor(int color)
Return c+1 (mod 3)
|
int |
prevColor(int color)
Return c-1 (mod 3)
|
void |
setPoint(int v,
float x,
float y,
float z)
Set the geometric coordinates of vertex v
|
java.lang.String |
vectorToString(float[] u) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
computeFaceNormal, crossProduct, getNormalFloat, name, vertexDegree
sizeOfEdges
sizeOfVertices
public int v0
public int v1
public int v2
public int e10
public int e20
public int e21
public float[] coordF
public abstract int getLeftFront(int e)
getLeftFront
in interface WingededgeInterface
e
- an edgepublic abstract int getRightFront(int e)
getRightFront
in interface WingededgeInterface
e
- an edgepublic abstract int getLeftBack(int e)
getLeftBack
in interface WingededgeInterface
e
- an edgepublic abstract int getRightBack(int e)
getRightBack
in interface WingededgeInterface
e
- an edgepublic abstract int getSource(int e)
getSource
in interface TriangulationInterface
e
- an edgepublic abstract int getTarget(int e)
getTarget
in interface TriangulationInterface
e
- an edgepublic abstract int getEdge(int v)
getEdge
in interface TriangulationInterface
v
- the index of the vertexpublic abstract boolean isOutgoing(int e, int v)
isOutgoing
in interface WingededgeInterface
e
- an edgev
- the index of a vertexpublic int nextColor(int color)
public int prevColor(int color)
public float[] getPoint(int v)
getPoint
in interface TriangulationInterface
v
- the index of the vertexpublic void setPoint(int v, float x, float y, float z)
v
- the index of the vertexpublic float getX(int v)
public float getY(int v)
public float getZ(int v)
public java.lang.String vectorToString(float[] u)