X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_VtkVolume.cxx;h=2b717fc269954d41a8eb44899315f82ad4b8bd3f;hb=20d9e162bd67182cbfa841bbfc9319919f4703e3;hp=efc0f786c4e78b0b5a6539e083af60568d330eb3;hpb=5482b99d07dd144fd5be299e722f39a81de3b5be;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_VtkVolume.cxx b/src/SMDS/SMDS_VtkVolume.cxx index efc0f786c..2b717fc26 100644 --- a/src/SMDS/SMDS_VtkVolume.cxx +++ b/src/SMDS/SMDS_VtkVolume.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2010-2015 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2010-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -228,10 +228,11 @@ int SMDS_VtkVolume::NbNodes() const { vtkUnstructuredGrid* grid = SMDS_Mesh::_meshList[myMeshId]->getGrid(); vtkIdType aVtkType = grid->GetCellType(this->myVtkID); - int nbPoints = 0; + vtkIdType nbPoints = 0; if (aVtkType != VTK_POLYHEDRON) { - nbPoints = grid->GetCell(myVtkID)->GetNumberOfPoints(); + vtkIdType *pts; + grid->GetCellPoints( myVtkID, nbPoints, pts ); } else {