forked from bartvdbraak/blender
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:
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);
|
cross = carve::geom::cross(vec1, vec2);
|
||||||
|
|
||||||
float production = carve::geom::dot(cross, vec3);
|
float production = carve::geom::dot(cross, vec3);
|
||||||
float magnitude = 1e-6 * cross.length();
|
float magnitude = 1e-5 * cross.length();
|
||||||
|
|
||||||
return fabs(production) < magnitude;
|
return fabs(production) < magnitude;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user