Porting to VTK 6.

Debug.
This commit is contained in:
ouv 2013-02-21 14:31:51 +00:00
parent 77942a9bdb
commit fb41960348
2 changed files with 6 additions and 2 deletions

View 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;
}
}

View File

@ -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);
}