]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting to VTK 6. BR_PORTING_VTK6
authorouv <ouv@opencascade.com>
Thu, 21 Feb 2013 14:31:51 +0000 (14:31 +0000)
committerouv <ouv@opencascade.com>
Thu, 21 Feb 2013 14:31:51 +0000 (14:31 +0000)
Debug.

src/GEOMGUI/GeometryGUI.cxx
src/OBJECT/GEOM_DeviceActor.cxx

index 73caf9f34e25d7778731008cb9910cda66148240..c0f0ebea4a9d6b32b81beb039e84388e8c156b9d 100644 (file)
@@ -1629,7 +1629,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
       if ( GEOMGUI_OCCSelector* sr = itOCCSel.next() )
         if ( sr->viewer() == viewer )
         {
-          delete myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
+          /*delete*/ myOCCSelectors.takeAt( myOCCSelectors.indexOf( sr ) );
           break;
         }
   }
@@ -1640,7 +1640,7 @@ void GeometryGUI::onViewManagerRemoved( SUIT_ViewManager* vm )
       if ( LightApp_VTKSelector* sr = itVTKSel.next() )
         if ( sr->viewer() == viewer )
         {
-          delete myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
+          /*delete*/ myVTKSelectors.takeAt( myVTKSelectors.indexOf( sr ) );
           break;
         }
   }
index cd43d4d2e57341e69e1be094c33becfbcac28b0a..3c09b57ce3a1a04bec00a020d1571a038bfb78d2 100755 (executable)
@@ -54,7 +54,11 @@ GEOM_DeviceActor::
 SetInput(vtkAlgorithmOutput* thePolyData, bool theUseStripper)
 { 
   if(theUseStripper)
+  {
     myPolyDataNormals->SetInputConnection(thePolyData); 
+    myStripper->SetInputConnection(myPolyDataNormals->GetOutputPort()); 
+    myPolyDataMapper->SetInputConnection(myStripper->GetOutputPort()); 
+  }
   else 
     myPolyDataMapper->SetInputConnection(thePolyData); 
 }