Skip to main content

SubShapeId

Type Alias SubShapeId 

Source
pub type SubShapeId = u32;
Expand description

The index of a sub-shape within a shape that has several.

Identifies a part of a Compound, a triangle of a TriMesh, a segment of a Polyline, a cell of a HeightField, or a voxel of a Voxels shape.

Query results carry the sub-shape they came from, so a hit against a composite shape says which part answered. A shape with no sub-shapes, like a Ball or a Cuboid, always reports 0.