csg.unsafe
1 functions / 1 types
Index
| Function | Description |
|---|---|
| BlockModel | Combines two stored block models with CSG and returns a new model handle. |
| Type | Description |
|---|---|
| BlockModel | Combines two stored block models with CSG and returns a new model handle. |
BlockModel
RPC
BlockModel(request: csg.unsafe.BlockModel) -> RemoteHandleCombines two stored block models with CSG and returns a new model handle.
This low-level task uses model handles and the supplied relative pose. It does not create a project node, attach a representation, change input visibility, or inherit an appearance. Use the returned handle as representation data when displaying the result.
In-process execution is native-only. Browser WASM execution requires run_on_server = true.
The remote CSG service is configured by activating an authenticated remote project; setting a
server URL alone does not configure it. Both input handles must exist in that project’s model
store, and the service must support the configured CSG geometry settings.
Service method: spatialengine.v1.csg.unsafe.CsgUnsafe.BlockModel.
Returns RemoteHandle.
left : RemoteHandle
The “base” model the operation is applied relative to.
relative_translation : math.Vec3
Translation of right expressed in left’s frame.
relative_rotation : math.Quat
Rotation of right expressed in left’s frame.
right : RemoteHandle
The model combined with left.
csg_op : csg.BlockModelCsgOp
The CSG operation to apply.
run_on_server optional : bool
Execute the operation on the remote CSG service instead of in-process.
In-process CSG compute is native-only, so in the browser (where the engine runs as wasm) offloading to the service is the only supported mode. Absent reads as in-process.
BlockModel
Message
Combines two stored block models with CSG and returns a new model handle.
This low-level task uses model handles and the supplied relative pose. It does not create a project node, attach a representation, change input visibility, or inherit an appearance. Use the returned handle as representation data when displaying the result.
In-process execution is native-only. Browser WASM execution requires run_on_server = true.
The remote CSG service is configured by activating an authenticated remote project; setting a
server URL alone does not configure it. Both input handles must exist in that project’s model
store, and the service must support the configured CSG geometry settings.
left : RemoteHandle
The “base” model the operation is applied relative to.
relative_translation : math.Vec3
Translation of right expressed in left’s frame.
relative_rotation : math.Quat
Rotation of right expressed in left’s frame.
right : RemoteHandle
The model combined with left.
csg_op : csg.BlockModelCsgOp
The CSG operation to apply.
run_on_server optional : bool
Execute the operation on the remote CSG service instead of in-process.
In-process CSG compute is native-only, so in the browser (where the engine runs as wasm) offloading to the service is the only supported mode. Absent reads as in-process.