use fj_math::Scalar;
use crate::{
objects::{Shell, Solid},
stores::Stores,
};
pub struct SolidBuilder<'a> {
pub stores: &'a Stores,
}
impl<'a> SolidBuilder<'a> {
pub fn build_cube_from_edge_length(
self,
edge_length: impl Into<Scalar>,
) -> Solid {
let shell = Shell::builder(self.stores)
.build_cube_from_edge_length(edge_length);
Solid::new().with_shells([shell])
}
}