mirror of https://github.com/hannobraun/Fornjot
Refactor
This commit is contained in:
parent
88a0266c6d
commit
a902e2522e
|
@ -55,12 +55,12 @@ impl CycleBuilder for PartialCycle {
|
||||||
.surface()
|
.surface()
|
||||||
.expect("Need surface to extend cycle with poly-chain");
|
.expect("Need surface to extend cycle with poly-chain");
|
||||||
|
|
||||||
let position_prev = vertex_prev
|
let [position_prev, position_next] =
|
||||||
.position()
|
[&vertex_prev, &vertex_next].map(|vertex| {
|
||||||
.expect("Need surface position to extend cycle");
|
vertex
|
||||||
let position_next = vertex_next
|
.position()
|
||||||
.position()
|
.expect("Need surface position to extend cycle")
|
||||||
.expect("Need surface position to extend cycle");
|
});
|
||||||
|
|
||||||
let from = vertex_prev;
|
let from = vertex_prev;
|
||||||
let to = vertex_next;
|
let to = vertex_next;
|
||||||
|
|
Loading…
Reference in New Issue