Skip to content

csg.unsafe

1 functions / 0 types

Index

FunctionDescription
blockModelCombines two stored block models with CSG and returns a new model handle.

blockModel

blockModel(args: { csgOp: CsgBlockModelCsgOp; left: RemoteHandle; relativeRotation: MathQuat; relativeTranslation: MathVec3; right: RemoteHandle; runOnServer?: boolean }, transactionId?: string): Promise<RemoteHandle>

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.

Returns: An opaque reference to stored blob data.

Returns Promise<RemoteHandle>.

csgOp : CsgBlockModelCsgOp

The CSG operation to apply.

left : RemoteHandle

The “base” model the operation is applied relative to.

relativeRotation : MathQuat

Rotation of right expressed in left’s frame.

relativeTranslation : MathVec3

Translation of right expressed in left’s frame.

right : RemoteHandle

The model combined with left.

runOnServer optional : boolean

Execute the operation on the remote CSG service instead of in-process.

transactionId optional : string