True if this SceneObject has been destroyed.
ReadonlyidUnique ID of this SceneObject.
SceneObjects are stored by ID in Scene.objects and SceneModel.objects.
Optional ReadonlylayerOptional layer ID for this SceneObject.
When the Scene is attached to a Viewer, this will identify an optional 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.
When the Scene is attached to a Viewer, if this property is defined, then you could find the ViewObject corresponding to this SceneObject in the ViewLayer with the same ID, like so:
const view = viewer.views["myViewId"];
const viewLayer = view.layers[this.layerId || "default"];
const viewObject = viewLayer.objects[this.id];
const sceneObject = viewObject.sceneObject;
ReadonlymeshesThe Meshes belonging to this SceneObject.
ReadonlymodelThe SceneModel that contains this SceneObject.
ReadonlyoriginalID of this SceneObject within the originating system.
Adds a SceneMesh to this SceneObject.
The SceneMesh must exist in the parent SceneModel and must not already be assigned to a SceneObject.
Fires SceneEvents.onSceneObjectMeshAdded event.
The ID of the SceneMesh to add.
SDKResult
Destroys this SceneObject.
Fires SceneEvents.onSceneObjectDestroyed event.
Removes a SceneMesh from this SceneObject.
The SceneMesh must exist in the parent SceneModel and must be assigned to this SceneObject.
Fires SceneEvents.onSceneObjectMeshRemoved event.
The ID of the SceneMesh to remove.
SDKResult
Gets this SceneObject as SceneObjectParams.
An object within a SceneModel.
See @xeokit/sdk/scene for usage.