Skip to content

Commit

Permalink
Remove redundant calls to insert/derive_from
Browse files Browse the repository at this point in the history
Those are already called by `update_exterior`.
  • Loading branch information
hannobraun committed Feb 22, 2024
1 parent 2a055df commit 0c70cb5
Showing 1 changed file with 28 additions and 34 deletions.
62 changes: 28 additions & 34 deletions crates/fj-core/src/operations/split/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,20 @@ impl SplitFace for Shell {
let split_face_a = updated_face_after_split_edges
.update_region(
|region, core| {
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)
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,
)
Expand All @@ -158,23 +155,20 @@ impl SplitFace for Shell {
let split_face_b = updated_face_after_split_edges
.update_region(
|region, core| {
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)
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,
)
Expand Down

0 comments on commit 0c70cb5

Please sign in to comment.