Update variable names

The previous ones no long fit the current code.
This commit is contained in:
Hanno Braun 2022-10-14 15:06:44 +02:00
parent b39c3ba097
commit b0ac9a9d70

View File

@ -166,8 +166,8 @@ impl PartialCycle {
let half_edges = {
let (half_edges, _) = self.half_edges.into_iter().fold(
(Vec::new(), None),
|(mut half_edges, previous_vertex), next| {
let next = next
|(mut half_edges, previous_vertex), half_edge| {
let half_edge = half_edge
.update_partial(|half_edge| {
let [from, _] = half_edge.vertices.clone();
let from = from.map(|vertex| {
@ -182,8 +182,8 @@ impl PartialCycle {
})
.into_full(objects);
let front = next.front().surface_form().clone();
half_edges.push(next);
let front = half_edge.front().surface_form().clone();
half_edges.push(half_edge);
(half_edges, Some(front))
},