Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / VISUGUI / VisuGUI_ClippingDlg.cxx
index 57c864c31c1c033d154c2d20432280252d3a469d..b3ce61275c72e59762765d6d0da01108ee5c2965 100644 (file)
@@ -182,7 +182,7 @@ void OrientedPlane::Init()
 
   // Create and display actor
   myMapper = vtkDataSetMapper::New();
-  myMapper->SetInput(myPlaneSource->GetOutput());
+  myMapper->SetInputConnection(myPlaneSource->GetOutputPort());
 
   myActor = SALOME_Actor::New();
   myActor->VisibilityOff();
@@ -551,7 +551,7 @@ void VisuGUI_ClippingDlg::applyLocalPlanes()
       VISU_PipeLine* aPL = myPrs3d->GetPipeLine();
       vtkMapper* aMapper = aPL->GetMapper();
       vtkDataSet* aPrsData = aMapper->GetInput();
-      aPrsData->Update();
+      aMapper->Update();
       if (aPrsData->GetNumberOfCells() < 1) {
         isFailed = true;
       }