public class Triangulator
extends java.lang.Object
GeometryInfo
Constructor | Description |
---|---|
Triangulator() |
Deprecated.
This class is created automatically when needed in
GeometryInfo and never needs to be used directly. Putting data
into a GeometryInfo with primitive POLYGON_ARRAY automatically
causes the triangulator to be created and used.
|
Triangulator(int earOrder) |
Deprecated.
This class is created automatically when needed in
GeometryInfo and never needs to be used directly. Putting data
into a GeometryInfo with primitive POLYGON_ARRAY automatically
causes the triangulator to be created and used.
|
Modifier and Type | Method | Description |
---|---|---|
void |
triangulate(GeometryInfo gi) |
This routine converts the GeometryInfo object from primitive type
POLYGON_ARRAY to primitive type TRIANGLE_ARRAY using polygon
decomposition techniques.
|
public Triangulator()
public Triangulator(int earOrder)
public void triangulate(GeometryInfo gi)
Example of usage: Triangulator tr = new Triangulator(); tr.triangulate(ginfo); // ginfo contains the geometry. shape.setGeometry(ginfo.getGeometryArray()); // shape is a Shape3D.
gi
- Geometry to be triangulatedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.