Salome HOME
Porting to ParaView 5.8
[modules/gui.git] / src / VTKViewer / VTKViewer_ConvexTool.cxx
index e561aa591f05195868200a0b79a7652d955c2066..41a3b3b39402cbb95798c785d1423975345a24d6 100644 (file)
@@ -107,7 +107,9 @@ VTKViewer_Triangulator
   myPoints->Modified(); // the VTK bug
 
   vtkIdType aNumPts;
-  theInput->GetCellPoints(theCellId, aNumPts, myPointIds); 
+  vtkIdType const *tmp(nullptr);
+  theInput->GetCellPoints(theCellId, aNumPts, tmp);
+  std::copy(tmp,tmp+aNumPts,myPointIds);
   if ( aNumPts > 0 ) {
     double anAbsoluteCoord[3];
     myPoints->SetNumberOfPoints(aNumPts);
@@ -668,7 +670,7 @@ VTKViewer_OrderedTriangulator
   if ( theFaceId < 0 || theFaceId >= aNumCells ) 
     return NULL;
 
-  vtkIdType *aCells = myBoundaryTris->GetPointer();
+  vtkIdType *aCells = myBoundaryTris->GetData()->GetPointer(0);
 
   // Each triangle has three points plus number of points
   vtkIdType *aCellPtr = aCells + 4*theFaceId;