diff --git a/crates/fj-core/src/operations/sweep/cycle.rs b/crates/fj-core/src/operations/sweep/cycle.rs index 4d00d294a..d4c50953d 100644 --- a/crates/fj-core/src/operations/sweep/cycle.rs +++ b/crates/fj-core/src/operations/sweep/cycle.rs @@ -38,7 +38,7 @@ pub trait SweepCycle { /// operation is called in, and therefore falls outside of its scope. fn sweep_cycle( &self, - surface: Handle, + bottom_surface: Handle, top_surface: Handle, color: Option, path: impl Into>, @@ -50,7 +50,7 @@ pub trait SweepCycle { impl SweepCycle for Cycle { fn sweep_cycle( &self, - surface: Handle, + bottom_surface: Handle, top_surface: Handle, color: Option, path: impl Into>, @@ -68,7 +68,7 @@ impl SweepCycle for Cycle { let (side_face, top_half_edge) = bottom_half_edge.sweep_half_edge( bottom_half_edge_next.start_vertex().clone(), - surface.clone(), + bottom_surface.clone(), color, path, cache, diff --git a/crates/fj-core/src/operations/sweep/face.rs b/crates/fj-core/src/operations/sweep/face.rs index f06be7cc2..dd0f7454f 100644 --- a/crates/fj-core/src/operations/sweep/face.rs +++ b/crates/fj-core/src/operations/sweep/face.rs @@ -57,7 +57,7 @@ impl SweepFace for Handle { core, ) .all_faces() - .map(|side_face| side_face.insert(core)); + .map(|face| face.insert(core)); let mut faces = Vec::new(); faces.push(bottom_face.clone()); diff --git a/crates/fj-core/src/operations/sweep/region.rs b/crates/fj-core/src/operations/sweep/region.rs index b3be68d8b..bbdc3fda3 100644 --- a/crates/fj-core/src/operations/sweep/region.rs +++ b/crates/fj-core/src/operations/sweep/region.rs @@ -31,7 +31,7 @@ pub trait SweepRegion { /// operation's scope. fn sweep_region( &self, - surface: Handle, + bottom_surface: Handle, color: Option, path: impl Into>, cache: &mut SweepCache, @@ -42,7 +42,7 @@ pub trait SweepRegion { impl SweepRegion for Region { fn sweep_region( &self, - surface: Handle, + bottom_surface: Handle, color: Option, path: impl Into>, cache: &mut SweepCache, @@ -52,11 +52,11 @@ impl SweepRegion for Region { let mut faces = Vec::new(); - let top_surface = surface.translate(path, core).insert(core); + let top_surface = bottom_surface.translate(path, core).insert(core); let top_exterior = sweep_cycle( self.exterior(), - surface.clone(), + bottom_surface.clone(), top_surface.clone(), color, &mut faces, @@ -71,7 +71,7 @@ impl SweepRegion for Region { .map(|bottom_cycle| { sweep_cycle( bottom_cycle, - surface.clone(), + bottom_surface.clone(), top_surface.clone(), color, &mut faces,