Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Sep 26, 2023
1 parent d48cf69 commit 979c1b4
Showing 1 changed file with 19 additions and 22 deletions.
41 changes: 19 additions & 22 deletions crates/fj-core/src/validate/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,28 +432,25 @@ mod tests {
[[0., 0., 0.], [0., 1., 0.], [1., 0., 0.], [0., 0., 1.]],
&mut services,
);
let invalid = valid.shell.update_face(&valid.abc.face, |_| {
valid
.abc
.face
.update_region(|region| {
region
.update_exterior(|cycle| {
cycle
.update_edge(
cycle.edges().nth_circular(0),
|edge| {
edge.update_curve(|_| {
Curve::new().insert(&mut services)
})
.insert(&mut services)
},
)
.insert(&mut services)
})
.insert(&mut services)
})
.insert(&mut services)
let invalid = valid.shell.update_face(&valid.abc.face, |face| {
face.update_region(|region| {
region
.update_exterior(|cycle| {
cycle
.update_edge(
cycle.edges().nth_circular(0),
|edge| {
edge.update_curve(|_| {
Curve::new().insert(&mut services)
})
.insert(&mut services)
},
)
.insert(&mut services)
})
.insert(&mut services)
})
.insert(&mut services)
});

valid.shell.validate_and_return_first_error()?;
Expand Down

0 comments on commit 979c1b4

Please sign in to comment.