public class CompactTriangleMesh_5n extends CompactTriangleMesh
Constructor and Description |
---|
CompactTriangleMesh_5n(int n) |
Modifier and Type | Method and Description |
---|---|
int |
getEdge(int v)
Return an edge incident to vertex v
|
int |
getLeftBack(int e)
Return the 'LeftBack' edge, neighbor of 'e'
|
int |
getLeftFront(int e)
Return the 'LeftFront' edge, neighbor of 'e'
|
float[] |
getNormalFloat(int v)
Return the normal to a vertex in the mesh (simple float precision)
Slow version, turning in cw direction
|
int |
getRightBack(int e)
Return the 'RightBack' edge, neighbor of 'e'
|
int |
getRightFront(int e)
Return the 'RightFront' edge, neighbor of 'e'
|
int |
getSource(int e)
Return the vertex source of 'e'
|
int |
getTarget(int e)
Return the vertex target of 'e'
|
boolean |
isOutgoing(int e,
int v)
Check whether edge e is outgoing from vertex v
|
java.lang.String |
name()
Return the name of the data structure
|
void |
setLeft(int e,
int eLeft) |
void |
setLeftBit0(int e) |
void |
setLeftBit1(int e) |
void |
setRight(int e,
int eRight) |
void |
setRightBit0(int e) |
void |
setRightBit1(int e) |
int |
sizeOfEdges() |
int |
sizeOfVertices()
Return the number of vertices in the triangulation
|
java.lang.String |
toString()
Return a String which represents the reference table encoding the data structure
|
int |
vertexDegree(int v)
Return the degree of a given vertex
|
int |
vertexDegreeMedium(int v)
Return the degree of a given vertex (cw direction)
|
int |
vertexDegreeNormal(int v)
Return the degree of a given vertex (ccw direction)
|
getPoint, getX, getY, getZ, nextColor, prevColor, setPoint, vectorToString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
computeFaceNormal, crossProduct
public void setLeft(int e, int eLeft)
public void setRight(int e, int eRight)
public void setLeftBit0(int e)
public void setLeftBit1(int e)
public void setRightBit0(int e)
public void setRightBit1(int e)
public int sizeOfVertices()
TriangulationInterface
public int sizeOfEdges()
public int getLeftFront(int e)
CompactTriangleMesh
getLeftFront
in interface WingededgeInterface
getLeftFront
in class CompactTriangleMesh
e
- an edgepublic int getRightFront(int e)
CompactTriangleMesh
getRightFront
in interface WingededgeInterface
getRightFront
in class CompactTriangleMesh
e
- an edgepublic int getLeftBack(int e)
CompactTriangleMesh
getLeftBack
in interface WingededgeInterface
getLeftBack
in class CompactTriangleMesh
e
- an edgepublic int getRightBack(int e)
CompactTriangleMesh
getRightBack
in interface WingededgeInterface
getRightBack
in class CompactTriangleMesh
e
- an edgepublic int getSource(int e)
CompactTriangleMesh
getSource
in interface TriangulationInterface
getSource
in class CompactTriangleMesh
e
- an edgepublic int getTarget(int e)
CompactTriangleMesh
getTarget
in interface TriangulationInterface
getTarget
in class CompactTriangleMesh
e
- an edgepublic int getEdge(int v)
CompactTriangleMesh
getEdge
in interface TriangulationInterface
getEdge
in class CompactTriangleMesh
v
- the index of the vertexpublic boolean isOutgoing(int e, int v)
isOutgoing
in interface WingededgeInterface
isOutgoing
in class CompactTriangleMesh
e
- an edgev
- the index of a vertexpublic int vertexDegreeNormal(int v)
public int vertexDegreeMedium(int v)
public int vertexDegree(int v)
public float[] getNormalFloat(int v)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String name()