Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 16, 2023
1 parent b4f21fb commit b04638e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions crates/fj-kernel/src/algorithms/sweep/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl Sweep for Handle<Face> {
self.clone().reverse(objects)
}
};
faces.push(bottom_face);
faces.push(bottom_face.clone());

let top_face = {
let mut face = self.clone().translate(path, objects);
Expand All @@ -61,12 +61,8 @@ impl Sweep for Handle<Face> {
faces.push(top_face);

// Generate side faces
for cycle in self.all_cycles().cloned() {
let cycle = if is_negative_sweep {
cycle.reverse(objects)
} else {
cycle
};
for cycle in bottom_face.all_cycles().cloned() {
let cycle = cycle.reverse(objects);

for half_edge in cycle.half_edges().cloned() {
let face = (half_edge, self.color())
Expand Down

0 comments on commit b04638e

Please sign in to comment.