diff --git a/src/ifcgeom_schema_agnostic/wire_utils.cpp b/src/ifcgeom_schema_agnostic/wire_utils.cpp index ab12ea76f2..b2a2eb50b0 100644 --- a/src/ifcgeom_schema_agnostic/wire_utils.cpp +++ b/src/ifcgeom_schema_agnostic/wire_utils.cpp @@ -84,7 +84,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; }