public class Stripifier
extends java.lang.Object
Normal Generation should be performed on the GeometryInfo object before Stripification, for best results. Example:
GeometryInfo gi = new GeometryInfo(TRIANGLE_ARRAY); gi.setCoordinates(coordinateData); NormalGenerator ng = new NormalGenerator(); ng.generateNormals(gi); Stripifier st = new Stripifier() st.stripify(gi); Shape3D part = new Shape3D(); part.setAppearance(appearance); part.setGeometry(gi.getGeometryArray());
| Modifier and Type | Field | Description |
|---|---|---|
static int |
COLLECT_STATS |
Indicates to the stripifier to collect statistics on the data
|
| Constructor | Description |
|---|---|
Stripifier() |
Creates the Stripifier object.
|
Stripifier(int flags) |
Creates the Stripifier object.
|
| Modifier and Type | Method | Description |
|---|---|---|
StripifierStats |
getStripifierStats() |
Returns the stripifier stats object.
|
void |
stripify(GeometryInfo gi) |
Converts the geometry contained in the GeometryInfo object into an
array of triangle strips.
|
public static final int COLLECT_STATS
public Stripifier()
public Stripifier(int flags)
flags - Flagspublic void stripify(GeometryInfo gi)
public StripifierStats getStripifierStats()
java.lang.IllegalStateException - if the Stripfier has not
been constructed
with the COLLECT_STATS flagCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.