From: FtpSantos Date: Wed, 29 May 2024 09:38:21 +0000 (+0100) Subject: 0033727: Modeling Algorithms - Add corner check in AddClose function to detect void... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=73d353ce651f08660dfb04beb81abf2bb34c60bb;p=occt.git 0033727: Modeling Algorithms - Add corner check in AddClose function to detect void bounding box Correct spacing in B.GetGap --- diff --git a/src/BRepBndLib/BRepBndLib.cxx b/src/BRepBndLib/BRepBndLib.cxx index 56465e5f94..22d8cb7dbb 100644 --- a/src/BRepBndLib/BRepBndLib.cxx +++ b/src/BRepBndLib/BRepBndLib.cxx @@ -224,7 +224,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() + 2*B.GetGap())) + if (!B.IsVoid() && B.CornerMax().IsEqual (B.CornerMin(), Precision::Confusion() + 2 * B.GetGap())) { B.SetVoid(); }