Modeling - Handle near-zero angles for coplanar faces in GetFaceOff function (#1312)

This commit is contained in:
Dmitrii Kulikov
2026-06-15 18:35:03 +01:00
committed by GitHub
parent 03856df0b9
commit 9f4899148c
@@ -1072,6 +1072,14 @@ bool BOPTools_AlgoTools::GetFaceOff(const TopoDS_Edge& th
{
aAngle = aTwoPI;
}
else if (!bIsComputed)
{
// Near-zero angle between different faces where the bi-normal direction could not be
// reliably computed (near-degenerate geometry, e.g. very thin face producing
// nearly-coincident intersection curves). Treat as maximum angle (2*PI) to prevent
// incorrect selection of this unreliable face over a proper closing face.
aAngle = aTwoPI;
}
}
//
if (std::abs(aAngle) < anAngleCriteria || std::abs(aAngle - aAngleMin) < anAngleCriteria)