scene.csg
1 functions / 1 types
Index
| Function | Description |
|---|---|
| block_model | Combines two block-model scene entities without changing project data. |
| Type | Description |
|---|---|
| Result | The stored result and the transform needed to display it. |
block_model
def block_model(
*,
left: types.scene.Node,
right: types.scene.Node,
csg_op: types.csg.BlockModelCsgOp,
run_on_server: bool | None = None,
config: types.csg.BlockModelCsgConfig | None = None,
_transaction_id: str | None = None
) -> types.scene.csg.ResultCombines two block-model scene entities without changing project data.
Returns a stored model and its world transform. The inputs remain unchanged. Both entities must have unit scale and the same world rotation.
Returns Result.
left : Node
Scene node ID.
right : Node
Scene node ID.
csg_op : BlockModelCsgOp
Boolean operation to apply to the inputs.
run_on_server optional : bool | None
Execute on the configured remote service. Required in the browser. Defaults to None.
config optional : BlockModelCsgConfig | None
Geometry settings. Absent uses the default settings. Defaults to None.
_transaction_id optional : str | None
Transaction to join. Omit to submit without an explicit transaction. Defaults to None.
Result
Result(*, model: types.RemoteHandle, transform: types.scene.Transform)The stored result and the transform needed to display it.
model : RemoteHandle
Handle of the stored result.
transform : Transform
World placement for a display centered on the result’s bounds.