public abstract class CompactTriangleMesh
extends java.lang.Object
implements Jcg.mesh.arraybased.NavigationInterface, Jcg.mesh.arraybased.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
|
float[] |
getPoint(int v)
Return the geometric coordinates of vertex v
|
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'
|
abstract int |
leftBack(int e)
Return the 'LeftBack' edge, neighbor of 'e'
|
abstract int |
leftFront(int e)
Return the 'LeftFront' edge, neighbor of 'e'
|
int |
nextColor(int color)
Return c+1 (mod 3)
|
int |
prevColor(int color)
Return c-1 (mod 3)
|
abstract int |
rightBack(int e)
Return the 'RightBack' edge, neighbor of 'e'
|
abstract int |
rightFront(int e)
Return the 'RightFront' edge, neighbor of 'e'
|
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
public int v0
public int v1
public int v2
public int e10
public int e20
public int e21
public float[] coordF
public abstract int leftFront(int e)
leftFront
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int rightFront(int e)
rightFront
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int leftBack(int e)
leftBack
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int rightBack(int e)
rightBack
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int getSource(int e)
getSource
in interface Jcg.mesh.arraybased.TriangulationInterface
getSource
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int getTarget(int e)
getTarget
in interface Jcg.mesh.arraybased.TriangulationInterface
getTarget
in interface Jcg.mesh.arraybased.WingededgeInterface
e
- an edgepublic abstract int getEdge(int v)
getEdge
in interface Jcg.mesh.arraybased.TriangulationInterface
v
- the index of the vertexpublic abstract boolean isOutgoing(int e, int v)
isOutgoing
in interface Jcg.mesh.arraybased.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 Jcg.mesh.arraybased.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)