Class Index | File Index

Classes


Class threedee.RenderModel

A render model is a wrapper around a model which is used internally for rendering the model. It is responsible for transforming the vertices of the model (and caching them) and it also wraps the polygons of the model with RenderPolygon objects.
Defined in: RenderModel.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Constructs a new render model.
Method Summary
Method Attributes Method Name and Description
 
Returns the number of polygons.
 
getPolygon(index)
Returns the polygon with the specified index.
 
transform(transform)
Transforms this node model.
Class Detail
threedee.RenderModel(model)
Constructs a new render model.
Parameters:
{!threedee.Model} model
The original model
Method Detail
{number} countPolygons()
Returns the number of polygons.
Returns:
{number} The number of polygons

{!threedee.RenderPolygon} getPolygon(index)
Returns the polygon with the specified index.
Parameters:
{number} index
The polygon index
Returns:
{!threedee.RenderPolygon} The polygon

transform(transform)
Transforms this node model.
Parameters:
{!threedee.Matrix} transform
The transformation matrix

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jan 03 2012 16:18:57 GMT+0100 (CET)