Skip to content
Snippets Groups Projects
Commit a2e950fb authored by Timo Koch's avatar Timo Koch
Browse files

[test][1d2d][intersection] Add corner case that fails without bugfix in 95167ff6

parent 69b3ae62
No related branches found
No related tags found
1 merge request!2274Fix/intersecting entities
...@@ -76,6 +76,13 @@ void testIntersections(std::vector<bool>& returns) ...@@ -76,6 +76,13 @@ void testIntersections(std::vector<bool>& returns)
GlobalPosition p11 = a2; GlobalPosition p11 = a2;
p11[dimWorld-1] += (b2-a2).two_norm()*1.0e-6; p11[dimWorld-1] += (b2-a2).two_norm()*1.0e-6;
returns.push_back(testIntersection(a2, b2, p11)); returns.push_back(testIntersection(a2, b2, p11));
// test that triggers bug in 1d2d intersection query
// which has been fixed with !2274 (found a false positive here)
GlobalPosition p12(0.0); p12[0] = 0.001969*scaling; p12[1] = 0.0004995*scaling;
GlobalPosition c(0.0); c[1] = 0.0005*scaling;
GlobalPosition d = c; d[0] = 0.002*scaling;
returns.push_back(testIntersection(c, d, p12));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment