public interface CornerTableInterface
extends Jcg.mesh.arraybased.NavigationInterface
Modifier and Type | Method and Description |
---|---|
boolean |
adjacent(int v,
int w)
Check whether two vertices 'v' and 'w' are adjacent.
|
boolean |
b(int c)
Check whether 'c' is a border corner
|
boolean |
checkValidity()
Check the combinatorial validity of the data structure
|
int |
getCorner(int v)
Return a corner incident to vertex 'v'
|
int |
getCornerInFace(int f,
int index)
Return the i-th corner in a face 'f'
|
java.lang.String |
getMemoryCost()
Get the total memory cost for storing the combinatorial structure (no geometry)
|
float[] |
getNormalFloat(int v)
Return the normal to a vertex in the mesh (simple float precision)
|
float[] |
getPoint(int v)
Return the geometric coordinates of vertex v (simple float precision)
|
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
|
int |
l(int c)
"Tip on left": return the corner opposite to n(c) in the triangle at the left
|
int[] |
listing(int v)
Return an array storing all neighbors of vertex 'v'.
|
int |
n(int c)
Return the next corner in the triangle containing 'c'
|
java.lang.String |
name()
Return the name of the data structure
|
int |
o(int c)
Return the opposite corner of a corner 'c'
|
int |
p(int c)
Return the previous corner of a corner 'c'
|
void |
print()
Print face incidences
|
int |
r(int c)
"Tip on right": return the corner opposite to n(c) in the triangle at the right
|
void |
setCorner(int v,
int c)
Set an incident corner for 'v'
|
void |
setOpposite(int c,
int o)
Set the opposite corner of a given corner 'c'
|
void |
setPoint(int v,
float x,
float y,
float z)
Set the geometric coordinates of vertex v
|
void |
setVertex(int c,
int vertex)
Set the incidence between a corner and a vertex
|
int |
sizeOfFaces() |
int |
sizeOfVertices() |
int |
sl(int c)
"Swing on left": return the previous corner around the vertex 'v' incident to 'c'
|
int |
sr(int c)
"Swing on right": return the corner following 'c' around its incident vertex
|
int |
t(int c)
Return the triangle containing corner 'c'
|
java.lang.String |
toString()
Return a String describing the data structure references
|
int |
v(int c)
Return the vertex incident to a corner 'c'
|
static java.lang.String |
vectorToString(float[] u) |
int |
vertexDegree(int v)
Compute the degree of a vertex: it traverse all corners incident to 'v'.
|
void setVertex(int c, int vertex)
c
- cornervertex
- vertex index to the corner 'c'void setOpposite(int c, int o)
c
- cornero
- opposite cornervoid setCorner(int v, int c)
v
- a vertexc
- a corner incident to 'v'void setPoint(int v, float x, float y, float z)
v
- the index of the vertexint t(int c)
int v(int c)
int o(int c)
boolean b(int c)
int n(int c)
int p(int c)
int l(int c)
int r(int c)
int sr(int c)
int sl(int c)
int getCorner(int v)
v
- a vertexint getCornerInFace(int f, int index)
f
- a faceindex
- an index in [0, 1, 2]float[] getPoint(int v)
v
- the index of the vertexfloat getX(int v)
float getY(int v)
float getZ(int v)
int sizeOfVertices()
sizeOfVertices
in interface Jcg.mesh.arraybased.NavigationInterface
int sizeOfFaces()
int vertexDegree(int v)
vertexDegree
in interface Jcg.mesh.arraybased.NavigationInterface
v
- vertex (an index between [0..n-1])int[] listing(int v)
listing
in interface Jcg.mesh.arraybased.NavigationInterface
v
- index of a vertexfloat[] getNormalFloat(int v)
getNormalFloat
in interface Jcg.mesh.arraybased.NavigationInterface
boolean adjacent(int v, int w)
adjacent
in interface Jcg.mesh.arraybased.NavigationInterface
java.lang.String toString()
toString
in class java.lang.Object
boolean checkValidity()
java.lang.String name()
name
in interface Jcg.mesh.arraybased.NavigationInterface
void print()
java.lang.String getMemoryCost()
static java.lang.String vectorToString(float[] u)