Skip to content

clipping

2 functions / 1 types

Index

FunctionDescription
clipAllModelsAction: enable or disable a single clipping box that covers the combined extents of all volumetric models.
getClipBoxExtentsRead the current global clipping box pose and size without changing scene or project data.
TypeDescription
ClipBoxExtentsWorld-space pose and size of the global clipping box, returned by GetClipBoxExtents.

clipAllModels

clipAllModels(args: { enabled: boolean }, transactionId?: string): Promise<void>

Action: enable or disable a single clipping box that covers the combined extents of all volumetric models.

Registered as clipping.clip_all_models. This is a runtime effect (not versioned): it shows or hides one clipping box, it does not change project data or participate in undo. Enabling records intent; the box is created during the next scene update only when volumetric models have bounds. An empty scene can have clipping enabled without a box. Use the extents query’s present value before reading its optional bounds.

Returns Promise<void>.

enabled : boolean

true shows a single clipping box over all models; false removes it.

transactionId optional : string

getClipBoxExtents

getClipBoxExtents(transactionId?: string): Promise<ClippingClipBoxExtents>

Read the current global clipping box pose and size without changing scene or project data.

A successful enable call does not guarantee that a box exists. Check present before accessing the optional bounds. It is false before box creation or when no volumetric models have bounds.

Returns: World-space pose and size of the global clipping box, returned by GetClipBoxExtents.

Returns Promise<ClippingClipBoxExtents>.

transactionId optional : string

ClipBoxExtents

World-space pose and size of the global clipping box, returned by GetClipBoxExtents.

center optional : MathVec3

World-space center of the box.

halfExtents optional : MathVec3

Half-extents along the box’s own (oriented) axes, in world units.

present : boolean

Whether a global clipping box currently exists. This can be false even after enabling clipping, before the scene update or when no volumetric models have bounds. When false, the remaining fields are all absent.

rotation optional : MathQuat

Box orientation mapping the box’s local axes to world axes.