mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-30 11:55:57 +00:00
Shorten panic messages
This commit is contained in:
parent
d5efbd1802
commit
c2a28e0644
@ -48,17 +48,17 @@ impl PartialCycle {
|
||||
.half_edges
|
||||
.last()
|
||||
.map(|half_edge| {
|
||||
let [_, last] = half_edge.vertices().expect(
|
||||
"Need half-edge vertices to extend cycle with poly-chain",
|
||||
);
|
||||
let last = last.surface_form().expect(
|
||||
"Need surface vertex to extend cycle with poly-chain",
|
||||
);
|
||||
let [_, last] = half_edge
|
||||
.vertices()
|
||||
.expect("Need half-edge vertices to extend cycle");
|
||||
let last = last
|
||||
.surface_form()
|
||||
.expect("Need surface vertex to extend cycle");
|
||||
|
||||
let vertex = last.clone();
|
||||
let position = last.position().expect(
|
||||
"Need surface position to extend cycle with poly-chain",
|
||||
);
|
||||
let position = last
|
||||
.position()
|
||||
.expect("Need surface position to extend cycle");
|
||||
|
||||
(position, Some(vertex))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user