1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-16 10:08:36 +03:00

0033727: Modeling Algorithms - Add corner check in AddClose function to detect void bounding box

Added gap to void bounding box calculation
Formating
This commit is contained in:
FtpSantos 2024-05-28 14:55:56 +01:00 committed by oan
parent a54fad2fb3
commit 89372b4a70

View File

@ -222,7 +222,7 @@ void BRepBndLib::AddClose(const TopoDS_Shape& S, Bnd_Box& B)
B.Add(BRep_Tool::Pnt(TopoDS::Vertex(ex.Current())));
}
if (!B.IsVoid() && B.CornerMax().IsEqual(B.CornerMin(), Precision::Confusion()))
if (!B.IsVoid() && B.CornerMax().IsEqual (B.CornerMin(), Precision::Confusion() + 2*B.GetGap()))
{
B.SetVoid();
}