Skip to main content

Module sub_object

Module sub_object 

Source
Expand description

Typed sub-object reference and sub-object selection set. Typed sub-object reference and sub-object selection set.

[SubObjectRef] is the single canonical way to identify a face, vertex, edge, or point-cloud point relative to its parent object. It is carried inside PickHit::sub_object and used as the key type in [SubSelection].

[SubSelection] is the sub-object counterpart to crate::interaction::selection::Selection. Typically an app holds both: Selection for which objects are selected, SubSelection for which faces or points within those objects are selected.

Structs§

CellSelectionInfo
Geometry info needed to highlight a SubObjectRef::Cell selection.
PolylineSelectionInfo
Geometry info needed to highlight SubObjectRef::Point, SubObjectRef::Segment, and SubObjectRef::Strip selections on a polyline item.
SubSelection
A set of selected sub-objects (faces, vertices, edges, or points) across one or more parent objects.
SubSelectionRef
A renderer-owned snapshot of a SubSelection taken at frame submission time.
VolumeSelectionInfo
Geometry info needed to decode a SubObjectRef::Voxel flat index into world-space AABB corners for highlight rendering.

Enums§

SubObjectRef
A typed reference to a sub-object within a parent scene object.