com.sun.j3d.utils.geometry
Class Project
java.lang.Object
com.sun.j3d.utils.geometry.Project
class Project
- extends java.lang.Object
Method Summary |
(package private) static void |
determineNormal(Triangulator triRef,
int ind,
Vector3f normal)
This function computes the average of all normals defined by triples of
successive vertices of the polygon. |
(package private) static void |
projectFace(Triangulator triRef,
int loopMin,
int loopMax)
This function projects the vertices of the polygons referenced by
loops[i1,..,i2-1] to an approximating plane. |
(package private) static void |
projectPoints(Triangulator triRef,
int i1,
int i2,
Vector3f n3)
This function maps the vertices of the polygon referenced by `ind' to the
plane n3.x * x + n3.y * y + n3.z * z = 0. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Project
Project()
projectFace
static void projectFace(Triangulator triRef,
int loopMin,
int loopMax)
- This function projects the vertices of the polygons referenced by
loops[i1,..,i2-1] to an approximating plane.
determineNormal
static void determineNormal(Triangulator triRef,
int ind,
Vector3f normal)
- This function computes the average of all normals defined by triples of
successive vertices of the polygon. we'll see whether this is a good
heuristic for finding a suitable plane normal...
projectPoints
static void projectPoints(Triangulator triRef,
int i1,
int i2,
Vector3f n3)
- This function maps the vertices of the polygon referenced by `ind' to the
plane n3.x * x + n3.y * y + n3.z * z = 0. every mapped vertex (x,y,z)
is then expressed in terms of (x',y',z'), where z'=0. this is
achieved by transforming the original vertices into a coordinate system
whose z-axis coincides with n3, and whose two other coordinate axes n1
and n2 are orthonormal on n3. note that n3 is supposed to be of unit
length!
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.