Skip to content

Commit

Permalink
Replace use of SurfaceVertex::position
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 28, 2023
1 parent 942aeea commit 9d18768
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/fj-kernel/src/objects/full/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ impl Cycle {
let mut sum = Scalar::ZERO;

for [a, b] in self.half_edges.as_slice().array_windows_ext() {
let [a, b] =
[a, b].map(|half_edge| half_edge.start_vertex().position());
let [a, b] = [a, b].map(|half_edge| half_edge.start_position());

sum += (b.u - a.u) * (b.v + a.v);
}
Expand Down

0 comments on commit 9d18768

Please sign in to comment.