Holomatix

Log In / Register


Purchase
Model class

Description

The Model class lets you manipulate models - instances of geometry and their materials. For a model to be drawn it must be set to be the model property of a scene object. The model will be drawn at the position of the scene object to which it belongs.

Method summary for the Model class

Method

Description

Model.attachGeometry() Specifies a piece of geometry to be used by this model.
Model.getMaterial() Returns the material instance that is assigned to a particular surface of the model.
Model.setMaterial() Sets a surface of this model to use a certain material.

 

 

 

 

Constructor for the Model class

Usage

new Model();

Returns

A reference to a Model object

Description

A model will not appear on the stage until it has been assigned to the model property of a scene object. The model is an empty container until some geometry has been attached to it using the Model.attachGeometry() method.

Example

The following creates a model and stores it as the model property of the scene object 'archway':

archway.model = new Model();
 
< Prev   Next >


© Copyright 2000-2011 Holomatix Ltd. All rights reserved.