public class Stripifier extends 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 and Description |
---|---|
static int |
COLLECT_STATS
Indicates to the stripifier to collect statistics on the data
|
Constructor and Description |
---|
Stripifier()
Creates the Stripifier object.
|
Stripifier(int flags)
Creates the Stripifier object.
|
Modifier and Type | Method and 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()
IllegalStateException
- if the Stripfier has not
been constructed
with the COLLECT_STATS flagCopyright © 2016–2022 SciJava. All rights reserved.