]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
We cannot return infinitive bound in case if the SALOME_Actor is infinitive, because...
authorapo <apo@opencascade.com>
Fri, 14 Oct 2005 12:15:21 +0000 (12:15 +0000)
committerapo <apo@opencascade.com>
Fri, 14 Oct 2005 12:15:21 +0000 (12:15 +0000)
The regression was found during fix of Bug GVIEW10273
 "Clipping planes" functionality works incorrectly.

src/SVTK/SALOME_Actor.cxx

index 1693425587e602652cdcc8a5fe1ad8c8a420b21b..f94dd6f4f00e4f40cd294d914548eab5d5efd7dd 100644 (file)
@@ -409,7 +409,7 @@ SALOME_Actor
 
 //----------------------------------------------------------------------------
 void
- SALOME_Actor
+SALOME_Actor
 ::Render(vtkRenderer *ren, vtkMapper* m)
 {
   if(myIsResolveCoincidentTopology){
@@ -603,10 +603,6 @@ SALOME_Actor
 ::SetInfinitive(bool theIsInfinite)
 { 
   myIsInfinite = theIsInfinite;
-  if(myIsInfinite){
-    Bounds[0] = Bounds[2] = Bounds[4] = VTK_LARGE_FLOAT;
-    Bounds[1] = Bounds[3] = Bounds[5] = -VTK_LARGE_FLOAT;
-  }
 }
 
 
@@ -622,20 +618,15 @@ float*
 SALOME_Actor
 ::GetBounds()
 {
-  if(myIsInfinite)
-    return Bounds;
-  else
-    return Superclass::GetBounds();
+  return Superclass::GetBounds();
 }
 
 
 void
 SALOME_Actor
-::GetBounds(float bounds[6])
+::GetBounds(float theBounds[6])
 {
-  this->GetBounds();
-  for (int i=0; i<6; i++)
-    bounds[i] = this->Bounds[i];
+  Superclass::GetBounds(theBounds);
 }