diff --git a/crates/fj-core/src/operations/split/face.rs b/crates/fj-core/src/operations/split/face.rs index c7fe6be55..e455b7de4 100644 --- a/crates/fj-core/src/operations/split/face.rs +++ b/crates/fj-core/src/operations/split/face.rs @@ -8,7 +8,6 @@ use crate::{ build::{BuildCycle, BuildHalfEdge}, derive::DeriveFrom, insert::Insert, - presentation::SetColor, split::SplitEdge, update::{ UpdateCycle, UpdateFace, UpdateHalfEdge, UpdateRegion, UpdateShell, @@ -128,32 +127,20 @@ impl SplitFace for Shell { let split_face_a = updated_face_after_split_edges .update_region( |region, core| { - let mut region = region - .update_exterior( - |_, core| { - Cycle::empty() - .add_half_edges( - half_edges_b_to_c_inclusive, - core, - ) - .add_half_edges( - [dividing_half_edge_c_to_b], - core, - ) - }, - core, - ) - .insert(core) - .derive_from(region, core); - - if let Some(color) = face.region().color() { - region = region - .set_color(color, core) - .insert(core) - .derive_from(®ion, core); - } - - region + region.update_exterior( + |_, core| { + Cycle::empty() + .add_half_edges( + half_edges_b_to_c_inclusive, + core, + ) + .add_half_edges( + [dividing_half_edge_c_to_b], + core, + ) + }, + core, + ) }, core, ) @@ -168,32 +155,20 @@ impl SplitFace for Shell { let split_face_b = updated_face_after_split_edges .update_region( |region, core| { - let mut region = region - .update_exterior( - |_, core| { - Cycle::empty() - .add_half_edges( - half_edges_d_to_a_inclusive, - core, - ) - .add_half_edges( - [dividing_half_edge_a_to_d], - core, - ) - }, - core, - ) - .insert(core) - .derive_from(region, core); - - if let Some(color) = face.region().color() { - region = region - .set_color(color, core) - .insert(core) - .derive_from(®ion, core); - } - - region + region.update_exterior( + |_, core| { + Cycle::empty() + .add_half_edges( + half_edges_d_to_a_inclusive, + core, + ) + .add_half_edges( + [dividing_half_edge_a_to_d], + core, + ) + }, + core, + ) }, core, )