com.sun.j3d.utils.geometry
Class Orientation

java.lang.Object
  extended by com.sun.j3d.utils.geometry.Orientation

 class Orientation
extends java.lang.Object


Constructor Summary
Orientation()
           
 
Method Summary
(package private) static void adjustOrientation(Triangulator triRef, int i1, int i2)
          determine the outer polygon and the orientation of the polygons; the default orientation is CCW for the outer-most polygon, and CW for the inner polygons.
(package private) static void determineOrientation(Triangulator triRef, int ind)
          Determine the orientation of the polygon.
(package private) static double polygonArea(Triangulator triRef, int ind)
          This function computes twice the signed area of a simple closed polygon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orientation

Orientation()
Method Detail

adjustOrientation

static void adjustOrientation(Triangulator triRef,
                              int i1,
                              int i2)
determine the outer polygon and the orientation of the polygons; the default orientation is CCW for the outer-most polygon, and CW for the inner polygons. the polygonal loops are referenced by loops[i1,..,i2-1].


polygonArea

static double polygonArea(Triangulator triRef,
                          int ind)
This function computes twice the signed area of a simple closed polygon.


determineOrientation

static void determineOrientation(Triangulator triRef,
                                 int ind)
Determine the orientation of the polygon. The default orientation is CCW.



Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.