From d112ce67ab26b16ebed3223315196d0eb0224a28 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 4 Apr 2025 12:31:32 +0200 Subject: [PATCH] Make name of variable more explicit --- experiments/2025-03-18/src/operations/connect.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/experiments/2025-03-18/src/operations/connect.rs b/experiments/2025-03-18/src/operations/connect.rs index fed62f20a..fe95511c6 100644 --- a/experiments/2025-03-18/src/operations/connect.rs +++ b/experiments/2025-03-18/src/operations/connect.rs @@ -54,8 +54,8 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec> { bottom .half_edges_with_end_vertex() .zip(top.half_edges_with_end_vertex()) - .map(|((a, b), (d, c))| { - let is_internal = match [a.is_internal, d.is_internal] { + .map(|((bottom_a, b), (d, c))| { + let is_internal = match [bottom_a.is_internal, d.is_internal] { [true, true] => true, [false, false] => false, _ => { @@ -68,12 +68,12 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec> { let surface = Handle::new(Surface { geometry: Box::new(Plane::from_points( - [&a.start, b, c].map(|vertex| vertex.point), + [&bottom_a.start, b, c].map(|vertex| vertex.point), )), }); let face = Face::new( surface, - [&a.start, b, c, &d.start].map(|vertex| { + [&bottom_a.start, b, c, &d.start].map(|vertex| { Handle::new(HalfEdge { curve: Handle::new(Curve {}), start: vertex.clone(),