Skip to content

Commit

Permalink
don't test just at the intersection
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 15, 2023
1 parent 4dbb005 commit 5c81207
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tests/triangulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,27 @@ fn is_in_mesh_4_obstackes() {
]);
triangulation.add_obstacle(vec![
vec2(2.5, 2.5),
vec2(2.5, 5.0),
vec2(5.0, 5.0),
vec2(5.0, 2.5),
vec2(2.5, 4.5),
vec2(4.5, 4.5),
vec2(4.5, 2.5),
]);
triangulation.add_obstacle(vec![
vec2(2.5, 5.01),
vec2(2.5, 4.5),
vec2(2.5, 7.5),
vec2(5.01, 7.5),
vec2(5.01, 5.01),
vec2(4.5, 7.5),
vec2(4.5, 4.5),
]);
triangulation.add_obstacle(vec![
vec2(5.01, 2.5),
vec2(5.01, 5.0),
vec2(7.5, 5.0),
vec2(4.5, 2.5),
vec2(4.5, 4.5),
vec2(7.5, 4.5),
vec2(7.5, 2.5),
]);
triangulation.add_obstacle(vec![
vec2(5.01, 5.01),
vec2(5.01, 7.5),
vec2(4.5, 4.5),
vec2(4.5, 7.5),
vec2(7.5, 7.5),
vec2(7.5, 5.01),
vec2(7.5, 4.5),
]);
let mesh: Mesh = triangulation.into();
for i in 0..10 {
Expand Down

0 comments on commit 5c81207

Please sign in to comment.