mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-24 23:57:22 +08:00
Modeling - Handle near-zero angles for coplanar faces in GetFaceOff function (#1312)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user