org.xith3d.scenegraph.primitives
Class GeometryConstruct

java.lang.Object
  extended by org.xith3d.scenegraph.primitives.GeometryConstruct

public class GeometryConstruct
extends java.lang.Object

This is nothing more than a container for Geometry construction data.


Constructor Summary
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord2f[] texCoords2f)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord2f[] texCoords2f, org.openmali.vecmath2.Colorf[] colors)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord2f[] texCoords2f, org.openmali.vecmath2.Colorf[] colors, int[] indices, int[] stripLengths)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord2f[] texCoords2f, int[] indices, int[] stripLengths)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord3f[] texCoords3f)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord3f[] texCoords3f, org.openmali.vecmath2.Colorf[] colors)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord3f[] texCoords3f, org.openmali.vecmath2.Colorf[] colors, int[] indices, int[] stripLengths)
           
GeometryConstruct(GeometryType geometryTypeHint, org.openmali.vecmath2.Tuple3f[] coords, org.openmali.vecmath2.Vector3f[] normals, org.openmali.vecmath2.TexCoord3f[] texCoords3f, int[] indices, int[] stripLengths)
           
 
Method Summary
 int calculateFeatures()
          Calculates the GeometryArray features.
 void check()
           
 org.openmali.vecmath2.Colorf[] getColors()
           
 org.openmali.vecmath2.Tuple3f[] getCoordinates()
           
 GeometryType getGeometryTypeHint()
           
 int[] getIndices()
           
 org.openmali.vecmath2.Vector3f[] getNormals()
           
 int[] getStripLengths()
           
 org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates2f()
           
 org.openmali.vecmath2.TexCoord3f[] getTextureCoordinates3f()
           
 int numColors()
           
 int numIndices()
           
 int numNormals()
           
 int numTextureCoordinates2f()
           
 int numTextureCoordinates3f()
           
 int numVertices()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord2f[] texCoords2f,
                         org.openmali.vecmath2.Colorf[] colors,
                         int[] indices,
                         int[] stripLengths)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord3f[] texCoords3f,
                         org.openmali.vecmath2.Colorf[] colors,
                         int[] indices,
                         int[] stripLengths)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord2f[] texCoords2f,
                         org.openmali.vecmath2.Colorf[] colors)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord3f[] texCoords3f,
                         org.openmali.vecmath2.Colorf[] colors)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord2f[] texCoords2f,
                         int[] indices,
                         int[] stripLengths)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord3f[] texCoords3f,
                         int[] indices,
                         int[] stripLengths)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord2f[] texCoords2f)

GeometryConstruct

public GeometryConstruct(GeometryType geometryTypeHint,
                         org.openmali.vecmath2.Tuple3f[] coords,
                         org.openmali.vecmath2.Vector3f[] normals,
                         org.openmali.vecmath2.TexCoord3f[] texCoords3f)
Method Detail

getGeometryTypeHint

public GeometryType getGeometryTypeHint()

getCoordinates

public org.openmali.vecmath2.Tuple3f[] getCoordinates()

numVertices

public int numVertices()

getNormals

public org.openmali.vecmath2.Vector3f[] getNormals()

numNormals

public int numNormals()

getTextureCoordinates2f

public org.openmali.vecmath2.TexCoord2f[] getTextureCoordinates2f()

numTextureCoordinates2f

public int numTextureCoordinates2f()

getTextureCoordinates3f

public org.openmali.vecmath2.TexCoord3f[] getTextureCoordinates3f()

numTextureCoordinates3f

public int numTextureCoordinates3f()

getColors

public org.openmali.vecmath2.Colorf[] getColors()

numColors

public int numColors()

getIndices

public int[] getIndices()

numIndices

public int numIndices()

getStripLengths

public int[] getStripLengths()

calculateFeatures

public int calculateFeatures()
Calculates the GeometryArray features.

Returns:
the GeometryArray features

check

public void check()