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 corner check to AddClose for void bounding boxes
This commit is contained in:
parent
76df27830b
commit
a54fad2fb3
@ -221,6 +221,11 @@ void BRepBndLib::AddClose(const TopoDS_Shape& S, Bnd_Box& B)
|
|||||||
for (ex.Init(S,TopAbs_VERTEX,TopAbs_EDGE); ex.More(); ex.Next()) {
|
for (ex.Init(S,TopAbs_VERTEX,TopAbs_EDGE); ex.More(); ex.Next()) {
|
||||||
B.Add(BRep_Tool::Pnt(TopoDS::Vertex(ex.Current())));
|
B.Add(BRep_Tool::Pnt(TopoDS::Vertex(ex.Current())));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!B.IsVoid() && B.CornerMax().IsEqual(B.CornerMin(), Precision::Confusion()))
|
||||||
|
{
|
||||||
|
B.SetVoid();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user