# Objective - Due to coherency, it was previously not possible to implement `Bounded3d` for `Extrusion<MyCustomPrimitive>`. This PR fixes that. ## Solution - Added a new trait `BoundedExtrusion: Primitive2d + Bounded2d` which provides functions for bounding boxes and spheres of extrusions of 2D primitives. - Changed all implementations of `Bounded3d for Extrusion<T>` to `BoundedExtrusion for T` - Implemented `Bounded3d for Extrusion<T: BoundedExtrusion>` - Removed the `extrusion_bounding_box` and `extrusion_bounding_sphere` functions and used them as default implementations in `BoundedExtrusion` ## Testing - This PR does not change any implementations --------- Co-authored-by: Lynn Büttgenbach <62256001+solis-lumine-vorago@users.noreply.github.com> Co-authored-by: Matty <weatherleymatthew@gmail.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| README.md | ||