]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron...
authorrnv <rnv@opencascade.com>
Tue, 17 Feb 2009 13:42:34 +0000 (13:42 +0000)
committerrnv <rnv@opencascade.com>
Tue, 17 Feb 2009 13:42:34 +0000 (13:42 +0000)
src/SVTK/SVTK_Trihedron.cxx
src/VTKViewer/VTKViewer_Utilities.cxx

index ed6ad07d130369c259a89f298fd2b83edfd3ae8d..f7b2b452e12f38c6a2d626d92f226bd4d4b9da82 100644 (file)
@@ -53,7 +53,7 @@ SVTK_Trihedron
         if(!anActor->IsInfinitive()) 
          aCount++;
       }
-      else if ( !OwnActor( anActor ) ) {
+      else if ( !OwnActor( aProp ) ) {
        aCount++;
       }
   }
index 03d085813444b47ae74dbf872b5f352adedbe61f..c6fe7e9ead0a4309c87009f6c11595a862bab70d 100755 (executable)
@@ -119,7 +119,7 @@ ComputeVisiblePropBounds(vtkRenderer* theRenderer,
   aCollection->InitTraversal();
   while (vtkActor* aProp = aCollection->GetNextActor()) {
     // if it's invisible, or has no geometry, we can skip the rest 
-    if(aProp->GetVisibility() && aProp->GetMapper()){
+    if(aProp->GetVisibility() && aProp->GetMapper() && vtkMath::AreBoundsInitialized(aProp->GetBounds())){
       if(VTKViewer_Actor* anActor = VTKViewer_Actor::SafeDownCast(aProp))
         if(anActor->IsInfinitive())
          continue;