]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMDS/SMDS_VtkCellIterator.cxx
Salome HOME
use CheckMemory() to avoid crash due to memory allocation problem
[modules/smesh.git] / src / SMDS / SMDS_VtkCellIterator.cxx
index 0a4163bb9f98f2ef6ad387f7e242d3f8ffa631f8..cd0af3a487bc02df0b7d4c1707a5a2f969a55cb7 100644 (file)
@@ -105,7 +105,7 @@ SMDS_VtkCellIteratorToUNV::SMDS_VtkCellIteratorToUNV(SMDS_Mesh* mesh, int vtkCel
   _vtkIdList = vtkIdList::New();
   vtkIdType* pts;
   vtkUnstructuredGrid* grid = _mesh->getGrid();
-  grid->GetCellPoints(_cellId, _nbNodes, pts);
+  grid->GetCellPoints((vtkIdType)_cellId, (vtkIdType&)_nbNodes, pts);
   _vtkIdList->SetNumberOfIds(_nbNodes);
   int *ids = 0;
   switch (_type)