From: vsr Date: Thu, 12 Feb 2015 13:42:58 +0000 (+0300) Subject: 0025824: Infinite presentations should be excluded when computing gravity center... X-Git-Tag: V6_9_0_beta~96 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=40738f9ad74cf1eaa5217adf7ffa1a19454f872e;p=occt.git 0025824: Infinite presentations should be excluded when computing gravity center of the view scene --- diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index d261682333..fb7e4578e7 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -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; }