From 2d680e84208bf57f1bac765974afd7974b8ed6dc Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Fri, 4 Apr 2025 13:04:04 +0200 Subject: [PATCH] Group related code --- experiments/2025-03-18/src/operations/connect.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/experiments/2025-03-18/src/operations/connect.rs b/experiments/2025-03-18/src/operations/connect.rs index 97b7677c3..ea6f97975 100644 --- a/experiments/2025-03-18/src/operations/connect.rs +++ b/experiments/2025-03-18/src/operations/connect.rs @@ -76,13 +76,6 @@ fn build_single_connecting_face( } }; - // Order the vertices in a way that makes sense when building the half-edges - // of the connecting face. - let a = &bottom.half_edge.start; - let b = bottom.end_vertex; - let c = top.end_vertex; - let d = &top.half_edge.start; - let surface = Handle::new(Surface { geometry: Box::new(Plane::from_points( [ @@ -93,6 +86,14 @@ fn build_single_connecting_face( .map(|vertex| vertex.point), )), }); + + // Order the vertices in a way that makes sense when building the half-edges + // of the connecting face. + let a = &bottom.half_edge.start; + let b = bottom.end_vertex; + let c = top.end_vertex; + let d = &top.half_edge.start; + let half_edges = [a, b, c, d].map(|vertex| { Handle::new(HalfEdge { curve: Handle::new(Curve {}),