Booleans: epsilon for planar checks seems a bit too small for single precision math

This could solve issue #32748: Boolean Modifiers Making unneeded edges?
This commit is contained in:
Sergey Sharybin 2012-10-05 07:31:30 +00:00
parent cc26da4421
commit 862decfc82

@ -58,7 +58,7 @@ static bool isQuadPlanar(carve::geom3d::Vector &v1, carve::geom3d::Vector &v2,
cross = carve::geom::cross(vec1, vec2);
float production = carve::geom::dot(cross, vec3);
float magnitude = 1e-6 * cross.length();
float magnitude = 1e-5 * cross.length();
return fabs(production) < magnitude;
}