diff --git a/crates/fj-core/src/operations/sweep/region.rs b/crates/fj-core/src/operations/sweep/region.rs index 0e65445b7..b8adb0b9d 100644 --- a/crates/fj-core/src/operations/sweep/region.rs +++ b/crates/fj-core/src/operations/sweep/region.rs @@ -2,7 +2,6 @@ use fj_interop::Color; use fj_math::Vector; use crate::{ - geometry::SurfaceGeometry, operations::{ insert::Insert, reverse::Reverse, transform::TransformObject, }, @@ -55,7 +54,7 @@ impl SweepRegion for Region { let top_exterior = sweep_cycle( self.exterior(), - &core.layers.geometry.of_surface(&surface), + surface.clone(), color, &mut faces, path, @@ -69,7 +68,7 @@ impl SweepRegion for Region { .map(|bottom_cycle| { sweep_cycle( bottom_cycle, - &core.layers.geometry.of_surface(&surface), + surface.clone(), color, &mut faces, path, @@ -96,7 +95,7 @@ impl SweepRegion for Region { fn sweep_cycle( bottom_cycle: &Cycle, - bottom_surface: &SurfaceGeometry, + bottom_surface: Handle, color: Option, faces: &mut Vec, path: Vector<3>, @@ -104,7 +103,7 @@ fn sweep_cycle( core: &mut Core, ) -> Handle { let swept_cycle = bottom_cycle.reverse(core).sweep_cycle( - bottom_surface, + &core.layers.geometry.of_surface(&bottom_surface), color, path, cache,