Skip to content

Commit

Permalink
Merge pull request #2199 from hannobraun/sweep
Browse files Browse the repository at this point in the history
Make minor cleanups in sweep code
  • Loading branch information
hannobraun authored Feb 9, 2024
2 parents c8d9a22 + 95c2a68 commit fcdbda6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/fj-core/src/operations/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,15 @@ impl SweepFace for Handle<Face> {

let path = path.into();

let mut faces = Vec::new();

let bottom_face = self.clone();
faces.push(bottom_face.clone());

let bottom_face = self;
let other_faces = bottom_face
.region()
.sweep_region(bottom_face.surface(), path, cache, core)
.all_faces()
.map(|side_face| side_face.insert(&mut core.services));

let mut faces = Vec::new();
faces.push(bottom_face.clone());
faces.extend(other_faces);

Shell::new(faces)
Expand Down

0 comments on commit fcdbda6

Please sign in to comment.