Class Index | File Index

Classes


Class c3dl.PrimitiveSet

c3dl.PrimitiveSet represents a set of primitives within a geometric class. It derives from how .DAE files are structured and is roughly equal to a 'primitive collation element'.

All primitive sets in a geometric object share the same coordinate system, so when they are rendered, the matrix stack does not need to be updated or queried. Each primitive set can have its own material and texture if it was defined in the .DAE file.

In the callback function of an effect, the geometry will need to be queried for all its primitive sets. This set will need to be iterated and each must be rendered. Since each set can have its own material and texture, the context must be sent commands to have the proper states set.


Defined in: primitiveset.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Get the material of this primitive set.
 
Get the single dimensional array of normals of this primitive set.
 
Get the single dimensional array of texture coordinates of this primitive set.
 
Get the path of the texture for this primitive set.
 
 
 
 
Get the single dimensional array of vertices of this primitive set.
Class Detail
c3dl.PrimitiveSet()
Method Detail
{c3dl.Material} getMaterial()
Get the material of this primitive set.
Returns:
{c3dl.Material} Material of this primitive set.

{Array} getNormals()
Get the single dimensional array of normals of this primitive set. The array of normals is in the order nx, ny, nz, nx, ny, nz,...
Returns:
{Array} Normals are in the order nx, ny, nz, nx, ny, nz,...

{Array} getTexCoords()
Get the single dimensional array of texture coordinates of this primitive set. The array of texture coords is in the order u, v, u, v,...
Returns:
{Array} Textures coordinates are in the order u, v, u, v,...

{String} getTexture()
Get the path of the texture for this primitive set.
Returns:
{String} path of the texture.

getVBONormals()

getVBOTexCoords()

getVBOVertices()

{Array} getVertices()
Get the single dimensional array of vertices of this primitive set. The array of vertices is in the order x,y,z,x,y,z,...
Returns:
{Array} Vertices are in the order x,y,z,x,y,z,...

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 19 2010 16:57:36 GMT-0500 (EST)