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 78d4173 commit d48cf69
Showing 1 changed file with 20 additions and 23 deletions.
43 changes: 20 additions & 23 deletions crates/fj-core/src/validate/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,29 +391,26 @@ 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_path(|path| path.reverse())
.update_boundary(|boundary| {
boundary.reverse()
})
.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_path(|path| path.reverse())
.update_boundary(|boundary| {
boundary.reverse()
})
.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 d48cf69

Please sign in to comment.