mirror of
https://github.com/hannobraun/Fornjot
synced 2025-09-06 01:16:42 +00:00
Refactor to consolidate redundant code
This commit is contained in:
parent
0e3c716179
commit
8607aa08d2
@ -11,14 +11,9 @@ impl Reverse for Cycle {
|
||||
let mut edges = self
|
||||
.half_edge_pairs()
|
||||
.map(|(current, next)| {
|
||||
let boundary = {
|
||||
let [a, b] = current.boundary().inner;
|
||||
[b, a]
|
||||
};
|
||||
|
||||
HalfEdge::new(
|
||||
current.path(),
|
||||
boundary,
|
||||
current.boundary().reverse(),
|
||||
next.start_vertex().clone(),
|
||||
current.global_form().clone(),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user