Model

class cee.Model()

Common interface for all models.

Constructors

Properties


Constructors

Model.constructor()
Return type:

Model

Properties

Model.name
Type:

string

Name of the model.

Mainly used for debugging.

Methods

getBoundingBox

Model.getBoundingBox([options])
Arguments:

Returns the current BoundingBox (in world coordinates) of the model.

When called without any parameters this method will return the current bounding box of the model, including only visible parts/objects. For models that support it, the full bounding box can may queried by specifying the optional ModelBoundingBoxOptions and setting ModelBoundingBoxOptions.includeHiddenParts to true.

Return type:

BoundingBox

getDefaultCameraConfig

Model.getDefaultCameraConfig()

Can return an optional default camera configuration for this model.

If a model returns a default camera config, any views displaying the model may utilize the information to do first-time setup of their camera. The camera config will not have any effect on views where the camera has already been set by the user. If multiple models are shown in the same view, the first model with a default camera config will take precedence.

Return type:

CameraConfig