fj_core/operations/transform/solid.rs
1use fj_math::Transform;
2
3use crate::{objects::Solid, Core};
4
5use super::{TransformCache, TransformObject};
6
7impl TransformObject for Solid {
8 fn transform_with_cache(
9 &self,
10 transform: &Transform,
11 core: &mut Core,
12 cache: &mut TransformCache,
13 ) -> Self {
14 let shells =
15 self.shells().iter().cloned().map(|shell| {
16 shell.transform_with_cache(transform, core, cache)
17 });
18
19 Self::new(shells)
20 }
21}