From cd8bc823c27329e08b43c2d5efdda84502fefaab Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 14 Jun 2023 11:46:34 +0200 Subject: [PATCH] #3305 Less pessimistic tolerance comparison in newells method --- src/ifcgeom/kernels/opencascade/wire_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/kernels/opencascade/wire_utils.cpp b/src/ifcgeom/kernels/opencascade/wire_utils.cpp index e4a1ed8dc9..797713239d 100644 --- a/src/ifcgeom/kernels/opencascade/wire_utils.cpp +++ b/src/ifcgeom/kernels/opencascade/wire_utils.cpp @@ -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; }