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.
Constructor Attributes | Constructor Name and Description |
---|---|
threedee.RenderModel(model)
Constructs a new render model.
|
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