An object in a SceneModel.

See @xeokit/sdk/scene for usage.

Properties

id: string

Unique ID of this SceneObject.

SceneObjects are stored by ID in Scene.objects and SceneModel.objects.

layerId?: string

Optional layer ID for this SceneObject.

When the Scene is attached to a view!Viewer | View, this will identify an optional view!ViewLayer | ViewLayer to assign the object to. ViewLayers allow users to group and segregate object based on their roles or aspects in a scene, simplifying interaction and focusing operations on specific object groups.

meshes: SceneMesh[]

The Meshes belonging to this SceneObject.

model: SceneModel

The SceneModel that contains this SceneObject.

originalSystemId: string

ID of this SceneObject within the originating system.

rendererObject: RendererObject

Internal interface through which a ViewObject can load property updates into a Renderer for this SceneObject.

This is defined when the owner SceneModel has been added to a Viewer.

Accessors

Methods