Readonly
builderGets the current material override or undefined if none.
Sets and apply a material override to the scene, set to undefined to remove override.
Add an instanced mesh to the Scene and recomputes fields as needed.
Is expected to have: userData.instances = number[] (indices of the g3d instances that went into creating the mesh) userData.boxes = THREE.Box3[] (bounding box of each instance)
Generated using TypeDoc
Represents a scene that contains multiple meshes. It tracks the global bounding box as meshes are added and maintains a mapping between g3d instance indices and meshes.