Facemorph
Class TessGen3D

java.lang.Object
  extended by Facemorph.TessGen3D

public class TessGen3D
extends java.lang.Object

Attempt at 3D tessleation (probably not working)


Field Summary
static int NULL
          Define NULL for C to Java port
 
Constructor Summary
TessGen3D()
          Creates a new instance of TessGen
 
Method Summary
 DelaunayTriangle[] delaunay(Vector3[] points, int n, float left, float right, float top, float bottom, float back, float front)
          Perform 3D Delaunay triangulation
 void initialise(int n)
          Initialisation method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NULL

public static final int NULL
Define NULL for C to Java port

See Also:
Constant Field Values
Constructor Detail

TessGen3D

public TessGen3D()
Creates a new instance of TessGen

Method Detail

initialise

public void initialise(int n)
Initialisation method

Parameters:
n -

delaunay

public DelaunayTriangle[] delaunay(Vector3[] points,
                                   int n,
                                   float left,
                                   float right,
                                   float top,
                                   float bottom,
                                   float back,
                                   float front)
Perform 3D Delaunay triangulation

Parameters:
points - the list of points to triangulate
n - the number of points
left - the leftmost x
right - the rightmost x
top - the topmost y
bottom - the bottommost y
back - the farthest z
front - the nearest z
Returns:
returns the triangulated points