Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jan 11, 2023
1 parent 18477a1 commit 5d98422
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions crates/fj-kernel/src/builder/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,6 @@ impl CycleBuilder for PartialCycle {
.surface
.write()
.update_as_plane_from_points(points_global);
let mut edges =
self.update_as_polygon_from_points(points_surface.to_vec());

// None of the following should panic, as we just created a polygon from
// three points, so we should have exactly three edges.
let c = edges.pop().unwrap();
let b = edges.pop().unwrap();
let a = edges.pop().unwrap();
assert!(edges.pop().is_none());

[a, b, c]
self.update_as_polygon_from_points(points_surface)
}
}

0 comments on commit 5d98422

Please sign in to comment.