From 82686e1a88f313e7a084316faf3fa7945f0a34d0 Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Wed, 20 Mar 2024 13:11:42 +0100 Subject: [PATCH] Refactor to prepare for follow-on change --- crates/fj-core/src/operations/split/face.rs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/crates/fj-core/src/operations/split/face.rs b/crates/fj-core/src/operations/split/face.rs index 11a7bf513..7bc70aac0 100644 --- a/crates/fj-core/src/operations/split/face.rs +++ b/crates/fj-core/src/operations/split/face.rs @@ -101,13 +101,16 @@ impl SplitFace for Shell { .expect("Updated shell must contain updated face"); // Build the edge that's going to divide the new faces. - let dividing_half_edge_a_to_d = HalfEdge::line_segment( - [b.start_position(), d.start_position()], - None, - core, - ) - .update_start_vertex(|_, _| b.start_vertex().clone(), core) - .insert(core); + let dividing_half_edge_a_to_d = { + let half_edge = HalfEdge::line_segment( + [b.start_position(), d.start_position()], + None, + core, + ); + half_edge + .update_start_vertex(|_, _| b.start_vertex().clone(), core) + .insert(core) + }; let dividing_half_edge_c_to_b = HalfEdge::from_sibling( &dividing_half_edge_a_to_d, d.start_vertex().clone(),