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

0025824: Infinite presentations should be excluded when computing gravity center of the view scene

This commit is contained in:
vsr 2015-02-12 16:42:58 +03:00 committed by bugmaster
parent 59f520585b
commit 40738f9ad7

View File

@ -2129,7 +2129,7 @@ void V3d_View::Gravity (Standard_Real& theX,
} }
Bnd_Box aBox = aStruct->MinMaxValues(); Bnd_Box aBox = aStruct->MinMaxValues();
if (aBox.IsVoid()) if (aBox.IsVoid() || aStruct->IsInfinite())
{ {
continue; continue;
} }
@ -2170,7 +2170,7 @@ void V3d_View::Gravity (Standard_Real& theX,
} }
Bnd_Box aBox = aStruct->MinMaxValues(); Bnd_Box aBox = aStruct->MinMaxValues();
if (aBox.IsVoid()) if (aBox.IsVoid() || aStruct->IsInfinite())
{ {
continue; continue;
} }