Scene
The scene is the engine’s current in-memory state. It contains nodes arranged in a hierarchy. Components give each node its name, transform, visibility, geometry, and interaction settings. Viewports display the scene and send pointer input to the engine.
Nodes and components
A node is identified by an ID. A node can have at most one component of each type. A mesh and a point cloud can share a node because they are different component types.
Scene types are defined in scene. Actions under scene read, set, and remove components by node.
Removing a component preserves the node and its other components.
Project synchronization
A project holds versioned spatial data. Synchronization copies project data into the scene so the engine can display it.
Project synchronization writes into the scene. A scene edit does not change the project. The next
project synchronization can overwrite that edit. Use project.wait_for_scene_sync before a
scene read that depends on a project operation.
Use project.object.from_scene and to_scene to find the corresponding node. A scene node
created independently has no project node.
Component operations and cloning
Component modules use get, set, and remove: scene.mesh.get(node=node),
scene.mesh.set(node=node, mesh=mesh), and scene.mesh.remove(node=node). The same names apply to
each component under scene and project.object. Statement types keep descriptive names such as
GetMesh and SetShape so type imports remain unambiguous.
scene.clone(node=node) returns a new scene node and copies its descendants by default.
Pass deep=False to copy only the node’s components. Both forms retain the source’s parent and
local transform. The clone has independent component values and shares render assets, including
loaded model data. It has no project association. Interaction settings are copied; an active
pointer drag is not.
The renderer shares matching shape geometry and materials automatically. Compatible polylines and wireframe shapes share line buffers grouped by spatial proximity. Each node keeps its own visibility, transform, and picking identity. Polyline rendering centers its vertex buffer internally. Component reads still return the supplied local vertices, and rendering does not change the node’s transform.
Transform helpers are direct operations: scene.transform.translate, translate_x, translate_y,
translate_z, rotate_x, rotate_y, and rotate_z. TypeScript spells the axis-specific names
translateX, translateY, translateZ, rotateX, rotateY, and rotateZ.
Hits
scene.interaction.hovers returns ordered hits. Each hit contains a scene node, a hit position, and
an enum that identifies the geometry component. Block model and point cloud hits also include an
element. A click adds the mouse button.
Use scene.block_model.inspect_leaf(node=node, leaf=hit.info.value.leaf) or the corresponding
point cloud query to inspect an element. The query checks the component on that node. Values that
are still loading appear in missing_attributes.
For stored model handles and an import example, see Projects.