return false;
vtkIdType nFaces = 0;
- vtkIdType *ptIds;
vtkIdType const *tmp(nullptr);
getGrid()->GetFaceStream( GetVtkID(), nFaces, tmp );
- std::copy(tmp, tmp+nFaces, ptIds);
+ vtkIdType *ptIds = const_cast<vtkIdType*>( tmp );
// stream size and nb faces should not change
{
return false;
}
- int id = 0, nbPoints = 0;
+ size_t id = 0, nbPoints = 0;
for ( int i = 0; i < nFaces; i++ )
{
int nodesInFace = ptIds[id];
nbPoints += nodesInFace;
id += (nodesInFace + 1);
}
- if ((int) nodes.size() != nbPoints )
+ if ( nodes.size() != nbPoints )
{
return false;
}