Refactor to consolidate redundant code

This commit is contained in:
Hanno Braun 2023-07-17 11:26:52 +02:00
parent 0e3c716179
commit 8607aa08d2

View File

@ -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(),
)