From: apo Date: Fri, 14 Oct 2005 12:15:21 +0000 (+0000) Subject: We cannot return infinitive bound in case if the SALOME_Actor is infinitive, because... X-Git-Tag: TG-D5-38-2003_D2005-29-12~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d1650c9471872adeb77d131183291792fc828fa9;p=modules%2Fgui.git We cannot return infinitive bound in case if the SALOME_Actor is infinitive, because vtkRenderer just miss actors with such bounds (do not render them at all). The regression was found during fix of Bug GVIEW10273 "Clipping planes" functionality works incorrectly. --- diff --git a/src/SVTK/SALOME_Actor.cxx b/src/SVTK/SALOME_Actor.cxx index 169342558..f94dd6f4f 100644 --- a/src/SVTK/SALOME_Actor.cxx +++ b/src/SVTK/SALOME_Actor.cxx @@ -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); }