mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Visualization - AIS_Shape bounding box re-computation is not working properly #422
Fixed issue with bounding box cleaning algorithm that was causing the bounding box to be only increased. Now the bounding box is increased and decreased to fit the shape.
This commit is contained in:
@@ -735,6 +735,8 @@ const Bnd_Box& AIS_Shape::BoundingBox()
|
||||
|
||||
if (myCompBB)
|
||||
{
|
||||
// Clear the bounding box to re-compute it.
|
||||
myBB.SetVoid();
|
||||
BRepBndLib::Add(myshape, myBB, false);
|
||||
myCompBB = Standard_False;
|
||||
}
|
||||
|
Reference in New Issue
Block a user