From 33dbdaec8f596a68bb21911e938a5760f8fe6d7e Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 17 Feb 2009 13:42:34 +0000 Subject: [PATCH] Fix for IPAL19044 (4x REGRESS: vertex is not displayed in VTK and broken trihedron) in 5X version. --- src/SVTK/SVTK_Trihedron.cxx | 2 +- src/VTKViewer/VTKViewer_Utilities.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_Trihedron.cxx b/src/SVTK/SVTK_Trihedron.cxx index ed6ad07d1..f7b2b452e 100644 --- a/src/SVTK/SVTK_Trihedron.cxx +++ b/src/SVTK/SVTK_Trihedron.cxx @@ -53,7 +53,7 @@ SVTK_Trihedron if(!anActor->IsInfinitive()) aCount++; } - else if ( !OwnActor( anActor ) ) { + else if ( !OwnActor( aProp ) ) { aCount++; } } diff --git a/src/VTKViewer/VTKViewer_Utilities.cxx b/src/VTKViewer/VTKViewer_Utilities.cxx index 03d085813..c6fe7e9ea 100755 --- a/src/VTKViewer/VTKViewer_Utilities.cxx +++ b/src/VTKViewer/VTKViewer_Utilities.cxx @@ -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; -- 2.39.2