Skip to content

scene.csg

1 functions / 1 types

Index

FunctionDescription
blockModelCombines two block-model scene entities without changing project data.
TypeDescription
ResultThe stored result and the transform needed to display it.

blockModel

blockModel(args: { config?: CsgBlockModelCsgConfig; csgOp: CsgBlockModelCsgOp; left: SceneNode; right: SceneNode; runOnServer?: boolean }, transactionId?: string): Promise<SceneCsgResult>

Combines 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: The stored result and the transform needed to display it.

Returns Promise<SceneCsgResult>.

config optional : CsgBlockModelCsgConfig

Geometry settings. Absent uses the default settings.

csgOp : CsgBlockModelCsgOp

Boolean operation to apply to the inputs.

left : SceneNode

Scene node ID.

right : SceneNode

Scene node ID.

runOnServer optional : boolean

Execute on the configured remote service. Required in the browser.

transactionId optional : string

Result

The stored result and the transform needed to display it.

model : RemoteHandle

Handle of the stored result.

transform : SceneTransform

World placement for a display centered on the result’s bounds.