- vtkIdType *pts; // will refer to the point id's of the face
- this->GetCellPoints(vtkVolId, npts, pts);
+ vtkIdType const *tmp(nullptr); // will refer to the point id's of the face
+ vtkIdType *pts; // will refer to the point id's of the face
+ this->GetCellPoints(vtkVolId, npts, tmp);
+ pts = const_cast< vtkIdType*>( tmp );