Commit 6a293c5f authored by Dennis Gläser's avatar Dennis Gläser Committed by Timo Koch
Browse files

[geom][bugfix][2d-2d-in-3d] correct epsilon scaling

parent ab328b05
......@@ -882,9 +882,10 @@ public:
const auto a1Norm2 = a1.two_norm2();
const auto b1Norm2 = b1.two_norm2();
const auto maxNorm2 = max(a1Norm2, b1Norm2);
const auto maxNorm = sqrt(maxNorm2);
const auto eps2 = maxNorm2*eps_;
const auto eps = sqrt(maxNorm2)*eps_;
const auto eps3 = eps*eps2;
const auto eps = maxNorm*eps_;
const auto eps3 = maxNorm*eps2;
// early exit if polygons are not parallel
using std::abs;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment