pub trait Shape<S: Ring>: Aabb<S> { }Expand description
A trait for bounded and unbounded shapes.
A ‘Shape’ implements the following traits:
- ‘Aabb’ – a shape can compute the axis-aligned bounding volume that encloses it
- ‘Bsphere’ – TODO: a shape can compute its bounding sphere
Both of these traits carry the constraint that a shape implements the ‘Stereometric’ trait which allows a shape to compute its volume (non-zero, possibly infinite).