mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
0025824: Infinite presentations should be excluded when computing gravity center of the view scene
This commit is contained in:
parent
59f520585b
commit
40738f9ad7
@ -2129,7 +2129,7 @@ void V3d_View::Gravity (Standard_Real& theX,
|
||||
}
|
||||
|
||||
Bnd_Box aBox = aStruct->MinMaxValues();
|
||||
if (aBox.IsVoid())
|
||||
if (aBox.IsVoid() || aStruct->IsInfinite())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
@ -2170,7 +2170,7 @@ void V3d_View::Gravity (Standard_Real& theX,
|
||||
}
|
||||
|
||||
Bnd_Box aBox = aStruct->MinMaxValues();
|
||||
if (aBox.IsVoid())
|
||||
if (aBox.IsVoid() || aStruct->IsInfinite())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user