pub trait Shape {
type Brep;
// Required methods
fn compute_brep(
&self,
services: &mut Services,
debug_info: &mut DebugInfo,
) -> Self::Brep;
fn bounding_volume(&self) -> Aabb<3>;
}Expand description
Implemented for all operations from the fj crate
Required Associated Types§
Required Methods§
Sourcefn compute_brep(
&self,
services: &mut Services,
debug_info: &mut DebugInfo,
) -> Self::Brep
fn compute_brep( &self, services: &mut Services, debug_info: &mut DebugInfo, ) -> Self::Brep
Compute the boundary representation of the shape
Sourcefn bounding_volume(&self) -> Aabb<3>
fn bounding_volume(&self) -> Aabb<3>
Access the axis-aligned bounding box of a shape
If a shape is empty, its Aabb’s min and max points must be equal
(but are otherwise not specified).