Skip to content

clipping

2 functions / 3 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
ClipAllModelsAction: enable or disable a single clipping box that covers the combined extents of all volumetric models.
ClipBoxExtentsWorld-space pose and size of the global clipping box, returned by GetClipBoxExtents.
GetClipBoxExtentsRead the current global clipping box pose and size without changing scene or project data.

ClipAllModels

RPC

ClipAllModels(request: clipping.ClipAllModels) -> google.protobuf.Empty

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.

Service method: spatialengine.v1.clipping.Clipping.ClipAllModels.

Returns google.protobuf.Empty.

enabled : bool

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

GetClipBoxExtents

RPC

GetClipBoxExtents(request: clipping.GetClipBoxExtents) -> clipping.ClipBoxExtents

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.

Service method: spatialengine.v1.clipping.Clipping.GetClipBoxExtents.

Returns clipping.ClipBoxExtents.

ClipAllModels

Message

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.

enabled : bool

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

ClipBoxExtents

Message

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

present : bool

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.

center optional : math.Vec3

World-space center of the box.

half_extents optional : math.Vec3

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

rotation optional : math.Quat

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

GetClipBoxExtents

Message

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.