com.sun.j3d.loaders.lw3d
Class ShapeHolder
java.lang.Object
com.sun.j3d.loaders.lw3d.ParserObject
com.sun.j3d.loaders.lw3d.ShapeHolder
class ShapeHolder
- extends ParserObject
This class holds all of the vertex/facet/normal/surface-reference
data for a particular object. It has utilities to calculate facet normals,
but this is no longer in use since using the new GeomInfo utilities.
Method Summary |
(package private) void |
calcNormals()
This method calculates facet normals for the geometry. |
(package private) void |
createArrays(boolean reverseWinding)
Constructs geometry arrays given a winding rule (it turns out that
lw3d winding is opposite of j3d winding, so this is always set to
true in J3dLwoParser) |
(package private) void |
nullify()
Force gc on all array objects |
(package private) void |
printGeometryData(LwoSurface surface)
Print out (to stdout) the geometry data (coords, indices,
and facet sizes). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
facetSizesList
java.util.Vector facetSizesList
facetIndicesList
java.util.Vector facetIndicesList
facetIndicesArray
int[] facetIndicesArray
currentNumIndices
int currentNumIndices
numSurf
int numSurf
numVerts
int numVerts
facetIndices
int[] facetIndices
facetSizes
int[] facetSizes
normalIndices
int[] normalIndices
normalCoords
float[] normalCoords
coordsArray
float[] coordsArray
ShapeHolder
ShapeHolder()
ShapeHolder
ShapeHolder(int debugVals)
printGeometryData
void printGeometryData(LwoSurface surface)
- Print out (to stdout) the geometry data (coords, indices,
and facet sizes). This is a debugging utility.
createArrays
void createArrays(boolean reverseWinding)
- Constructs geometry arrays given a winding rule (it turns out that
lw3d winding is opposite of j3d winding, so this is always set to
true in J3dLwoParser)
nullify
void nullify()
- Force gc on all array objects
calcNormals
void calcNormals()
- This method calculates facet normals for the geometry. It is no
longer used, as we're now using the GeometryInfo utility to calculate
smooth normals
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.