]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
ruv: new condition to not pass bounds. V_5_1_3
authornds <nds@opencascade.com>
Mon, 1 Feb 2010 10:33:10 +0000 (10:33 +0000)
committernds <nds@opencascade.com>
Mon, 1 Feb 2010 10:33:10 +0000 (10:33 +0000)
The bounds are not initialized if they are equal to {1, -1, 1, -1, 1, -1}.

src/VTKViewer/VTKViewer_Utilities.cxx

index 90838fd38a6434e0f95cfaf8408dc11836e2c881..64507124f371808bf819439641e4ff96c0791134 100755 (executable)
@@ -160,7 +160,8 @@ ComputeVisiblePropBounds(vtkRenderer* theRenderer,
       if ( aBounds != NULL &&
           aBounds[0] > -MAX_DISTANCE && aBounds[1] < MAX_DISTANCE &&
           aBounds[2] > -MAX_DISTANCE && aBounds[3] < MAX_DISTANCE &&
-          aBounds[4] > -MAX_DISTANCE && aBounds[5] < MAX_DISTANCE )
+          aBounds[4] > -MAX_DISTANCE && aBounds[5] < MAX_DISTANCE &&
+           vtkMath::AreBoundsInitialized( aBounds ) )
       {
        aCount++;