From 4d8d57728bafc65b1e1e449d8448d36cbec77952 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 20 Mar 2024 13:59:36 +0100 Subject: [PATCH] Refactor to prepare for follow-on change --- crates/fj-core/src/operations/build/shell.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/fj-core/src/operations/build/shell.rs b/crates/fj-core/src/operations/build/shell.rs index 2a6b9b2ab..44cd8ae6b 100644 --- a/crates/fj-core/src/operations/build/shell.rs +++ b/crates/fj-core/src/operations/build/shell.rs @@ -91,13 +91,14 @@ pub trait BuildShell { .zip_ext([[a, b], [b, c], [c, a]]) .zip_ext(curves_and_boundaries) .map(|((vertex, positions), (curve, boundary))| { - HalfEdge::line_segment( + let half_edge = HalfEdge::line_segment( positions, Some(boundary.reverse().inner), core, - ) - .update_start_vertex(|_, _| vertex, core) - .update_curve(|_, _| curve, core) + ); + half_edge + .update_start_vertex(|_, _| vertex, core) + .update_curve(|_, _| curve, core) }) };