pub trait Shape<S>: Aabb<S> {
// Required method
fn to_primitive(
&self,
position: Point3<S>,
) -> Box<dyn Primitive<S, Point3<S>>>;
}Available on crate feature
math-utils only.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