Model
-
class
cee.Model() Common interface for all models.
Constructors
Properties
-
cee.Model.name readonly
name: stringName of the model.
Mainly used for debugging.
Methods
-
cee.Model.getBoundingBox() - getBoundingBox(options:
ModelBoundingBoxOptions):BoundingBoxReturns 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
ModelBoundingBoxOptionsand settingModelBoundingBoxOptions.includeHiddenPartsto true.Parameters
options:ModelBoundingBoxOptionsReturns:
BoundingBox
-
cee.Model.getDefaultCameraConfig() - getDefaultCameraConfig():
CameraConfigCan 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