Salome HOME
Porting to VTK 6.
[modules/visu.git] / src / VISU_I / VISU_CutLinesBase_i.cc
index f6784012c975e081eff91eb6dcbb3adf7f2dd524..d2f9814ce256c149c004abac43e03e64c10b460b 100644 (file)
@@ -317,7 +317,7 @@ VISU::CutLinesBase_i
     const double *aBoundPrjLn = myCutLinesBasePL->GetBoundPrjLn();
     for(int iLine = 0, jLine = 0; iLine < iLineEnd; iLine++){
       vtkDataSet *aDataSet = myCutLinesBasePL->GetAppendPolyData()->GetInput(iLine);
-      aDataSet->Update();
+      myCutLinesBasePL->GetAppendPolyData()->Update();
       int aNbPoints = aDataSet->GetNumberOfPoints();
       if(!aNbPoints) continue;
       vtkPointData *aPointData = aDataSet->GetPointData();
@@ -325,10 +325,10 @@ VISU::CutLinesBase_i
       VISU_CellDataToPointData *aFilter = NULL;
       if(!aScalars) {
         aFilter = VISU_CellDataToPointData::New();
-        aFilter->SetInput(aDataSet);
+        aFilter->SetInputData(aDataSet);
         aFilter->PassCellDataOn();
         aDataSet = aFilter->GetOutput();
-        aDataSet->Update();
+        aFilter->Update();
       }
       aPointData = aDataSet->GetPointData();
       aScalars = aPointData->GetScalars();