diff --git a/crates/fj-core/src/operations/sweep/cycle.rs b/crates/fj-core/src/operations/sweep/cycle.rs index 7a9c4b91b..168d6074d 100644 --- a/crates/fj-core/src/operations/sweep/cycle.rs +++ b/crates/fj-core/src/operations/sweep/cycle.rs @@ -2,11 +2,11 @@ use fj_interop::Color; use fj_math::Vector; use crate::{ - geometry::SurfaceGeometry, operations::{ build::BuildCycle, join::JoinCycle, sweep::half_edge::SweepHalfEdge, }, - topology::{Cycle, Face}, + storage::Handle, + topology::{Cycle, Face, Surface}, Core, }; @@ -38,7 +38,7 @@ pub trait SweepCycle { /// operation is called in, and therefore falls outside of its scope. fn sweep_cycle( &self, - surface: &SurfaceGeometry, + surface: Handle, color: Option, path: impl Into>, cache: &mut SweepCache, @@ -49,7 +49,7 @@ pub trait SweepCycle { impl SweepCycle for Cycle { fn sweep_cycle( &self, - surface: &SurfaceGeometry, + surface: Handle, color: Option, path: impl Into>, cache: &mut SweepCache, @@ -66,7 +66,7 @@ impl SweepCycle for Cycle { let (side_face, top_edge) = bottom_half_edge.sweep_half_edge( bottom_half_edge_next.start_vertex().clone(), - surface, + &core.layers.geometry.of_surface(&surface), color, path, cache, diff --git a/crates/fj-core/src/operations/sweep/region.rs b/crates/fj-core/src/operations/sweep/region.rs index b8adb0b9d..05af614b7 100644 --- a/crates/fj-core/src/operations/sweep/region.rs +++ b/crates/fj-core/src/operations/sweep/region.rs @@ -103,7 +103,7 @@ fn sweep_cycle( core: &mut Core, ) -> Handle { let swept_cycle = bottom_cycle.reverse(core).sweep_cycle( - &core.layers.geometry.of_surface(&bottom_surface), + bottom_surface, color, path, cache,