#3305 Less pessimistic tolerance comparison in newells method

This commit is contained in:
Thomas Krijnen
2023-06-14 11:46:34 +02:00
parent 1efe5761c0
commit cd8bc823c2
@@ -85,7 +85,7 @@ bool IfcGeom::util::approximate_plane_through_wire(const TopoDS_Wire& wire, gp_P
// the given points to the constructed plane. When doing triangulation and
// obtaining a 2d points for the Delaunay, infinity is passed here, so this
// can't for assessing degenerativeness.
if (v.SquareMagnitude() < 1.e-7) {
if (v.Magnitude() < 1.e-7) {
Logger::Warning("Degenerate face boundary in normal estimation");
return false;
}