public class WingededgeNavigation extends java.lang.Object implements NavigationInterface
Modifier and Type | Field and Description |
---|---|
private WingededgeInterface |
ds |
Constructor and Description |
---|
WingededgeNavigation(WingededgeInterface ds) |
Modifier and Type | Method and Description |
---|---|
static float[] |
crossProduct(float[] a,
float[] b) |
float[] |
getNormalFloat(int v)
Return the normal to a vertex in the mesh (simple float precision)
Neighbors are traversed turning in cw direction
|
int |
vertexDegree(int v)
Return the degree of a given vertex
|
private WingededgeInterface ds
public WingededgeNavigation(WingededgeInterface ds)
public int vertexDegree(int v)
vertexDegree
in interface NavigationInterface
public float[] getNormalFloat(int v)
getNormalFloat
in interface NavigationInterface
public static float[] crossProduct(float[] a, float[] b)