]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx
#3109 creaMaracasVisu Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkClipping3DView.cxx
index 4fd2218353644285d17e92081f29d6bbfaf60ea3..b41609ebcb2fb5cc3928edadecd3cf5ef7ab158a 100644 (file)
@@ -173,8 +173,6 @@ void wxVtkClipping3DView::Configure()
        _boxWidgetS1->SetInteractor( _wxvtk3Dbaseview->GetWxVTKRenderWindowInteractor() );
        _boxWidgetS1->SetPlaceFactor(1.25);
 
-
-
        vtkStripper *stripper=_vtkclipping3Ddataviewer->GetTissueStripper(0);
        vtkPolyData *polydata= stripper->GetOutput();
 
@@ -182,6 +180,7 @@ void wxVtkClipping3DView::Configure()
 #if VTK_MAJOR_VERSION <= 5
        _boxWidgetS1->SetInput( polydata );
 #else
+       stripper->Update();
        _boxWidgetS1->SetInputData( polydata );
 #endif
 
@@ -265,6 +264,7 @@ void wxVtkClipping3DView::Configure()
        _vtkclipping3Ddataviewer->SetRenderer(this->GetWxvtk3Dbaseview()->GetRenderer());
        _vtkclipping3Ddataviewer->SetInteractor(this->GetWxvtk3Dbaseview()->GetWxVTKRenderWindowInteractor());
 }
+
 //-------------------------------------------------------------------
 void wxVtkClipping3DView::SetVtkClipping3DDataViewer(vtkClipping3DDataViewer *vtkclipping3Ddataviewer)
 {