From 654d837c24a62746fb84ac42f36c0980b67f62e1 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 4 Apr 2025 12:46:49 +0200 Subject: [PATCH] Simplify --- experiments/2025-03-18/src/operations/connect.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/experiments/2025-03-18/src/operations/connect.rs b/experiments/2025-03-18/src/operations/connect.rs index f67e03b5b..0bfa6289a 100644 --- a/experiments/2025-03-18/src/operations/connect.rs +++ b/experiments/2025-03-18/src/operations/connect.rs @@ -59,17 +59,14 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec> { .zip(top.half_edges_with_end_vertex()) .map( |( - HalfEdgeWithEndVertex { - half_edge: bottom_half_edge, - end_vertex: bottom_half_edge_end, - }, + bottom, HalfEdgeWithEndVertex { half_edge: top_half_edge, end_vertex: top_half_edge_end, }, )| { let is_internal = match [ - bottom_half_edge.is_internal, + bottom.half_edge.is_internal, top_half_edge.is_internal, ] { [true, true] => true, @@ -82,8 +79,8 @@ fn build_connecting_faces(bottom: &Face, top: &Face) -> Vec> { } }; - let a = &bottom_half_edge.start; - let b = bottom_half_edge_end; + let a = &bottom.half_edge.start; + let b = bottom.end_vertex; let c = top_half_edge_end; let d = &top_half_edge.start;