public class CompactTriangleMesh_4n extends CompactTriangleMesh
Constructor and Description |
---|
CompactTriangleMesh_4n(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)
Perform getLeftFront operator: return the index of edge vw, neighbor of edge e=uv
|
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)
Perform getRightBack operator: return the index of edge uz, neighbor of edge e=uv
|
int |
getRightFront(int e)
Perform getRightFront operator: return the index of edge vz, neighbor of edge e=uv
|
int |
getSource(int e)
Return a vertex incident to edge e (e is oriented outgoing from u)
|
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)
Store the index of left neighbor of edge e
|
void |
setLeftBit0(int e)
Store the first service bit of an edge: it corresponds to ...
|
void |
setLeftBit1(int e)
Store the second service bit of an edge: it corresponds to ...
|
void |
setRight(int e,
int eRight)
Store the index of right neighbor of edge e
|
void |
setRightBit0(int e)
Store the third service bit of an edge: it corresponds to ...
|
void |
setRightBit1(int e)
Store the forth service bit of an edge: it corresponds to ...
|
int |
sizeOfEdges()
Return the number of edges
|
int |
sizeOfVertices()
Return the number of vertices
|
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()
public int sizeOfEdges()
public int getLeftFront(int e)
getLeftFront
in interface WingededgeInterface
getLeftFront
in class CompactTriangleMesh
e
- an edgepublic int getRightFront(int e)
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)
getRightBack
in interface WingededgeInterface
getRightBack
in class CompactTriangleMesh
e
- an edgepublic int getSource(int e)
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)
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()