This commit is contained in:
Hanno Braun 2022-11-08 12:32:58 +01:00
parent 88a0266c6d
commit a902e2522e
1 changed files with 6 additions and 6 deletions

View File

@ -55,12 +55,12 @@ impl CycleBuilder for PartialCycle {
.surface()
.expect("Need surface to extend cycle with poly-chain");
let position_prev = vertex_prev
.position()
.expect("Need surface position to extend cycle");
let position_next = vertex_next
.position()
.expect("Need surface position to extend cycle");
let [position_prev, position_next] =
[&vertex_prev, &vertex_next].map(|vertex| {
vertex
.position()
.expect("Need surface position to extend cycle")
});
let from = vertex_prev;
let to = vertex_next;