com.sun.j3d.loaders.lw3d
Class ShapeHolder

java.lang.Object
  extended by com.sun.j3d.loaders.lw3d.ParserObject
      extended by 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.


Field Summary
(package private)  float[] coordsArray
           
(package private)  int currentNumIndices
           
(package private)  int[] facetIndices
           
(package private)  int[] facetIndicesArray
           
(package private)  java.util.Vector facetIndicesList
           
(package private)  int[] facetSizes
           
(package private)  java.util.Vector facetSizesList
           
(package private)  float[] normalCoords
           
(package private)  int[] normalIndices
           
(package private)  int numSurf
           
(package private)  int numVerts
           
 
Fields inherited from class com.sun.j3d.loaders.lw3d.ParserObject
debugPrinter, EXCEPTION, LINE_TRACE, MISC, NONE, TIME, TRACE, VALUES, WARNING
 
Constructor Summary
ShapeHolder()
           
ShapeHolder(int debugVals)
           
 
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 com.sun.j3d.loaders.lw3d.ParserObject
debugOutput, debugOutputLn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ShapeHolder

ShapeHolder()

ShapeHolder

ShapeHolder(int debugVals)
Method Detail

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.