Model

class cee.Model()

Common interface for all models.

Index

Constructors

Properties

Methods

Constructors

cee.Model.constructor()
Model(): Model

Returns: Model

Properties

cee.Model.name

readonly

name: string

Name of the model.

Mainly used for debugging.

Methods

cee.Model.getBoundingBox()
getBoundingBox(options: ModelBoundingBoxOptions): BoundingBox

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.

Parameters

Returns: BoundingBox

cee.Model.getDefaultCameraConfig()
getDefaultCameraConfig(): CameraConfig

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.

Returns: CameraConfig