#2688 fix non-planar face triangulation

This commit is contained in:
Thomas Krijnen
2023-01-15 14:42:14 +01:00
parent 4e8a962f60
commit 802e3a0ea1
+5 -1
View File
@@ -80,7 +80,11 @@ bool IfcGeom::util::approximate_plane_through_wire(const TopoDS_Wire& wire, gp_P
}
gp_Vec v(x, y, z);
if (v.SquareMagnitude() < eps_ * eps_) {
// @todo the epsilon passed to us here is the maximum allowed deviation of
// 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) {
Logger::Warning("Degenerate face boundary in normal estimation");
return false;
}