Salome HOME
IPAL54614: Getting nodes of polyhedron works wrong
[modules/smesh.git] / src / SMDS / SMDS_MeshVolume.cxx
index 755285447cb721d880293adb649e1a32a9fcedea..ec1ecc0c049544800ec1ca0b9aa8c0fa8abf5a85 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -88,7 +88,7 @@ const SMDS_MeshNode* SMDS_MeshVolume::GetNode(const int ind) const
   {
     int nodesInFace = ptIds[id];
     if ( ind < nbPoints + nodesInFace )
-      return GetMesh()->FindNodeVtk( ptIds[ ind + i ]);
+      return GetMesh()->FindNodeVtk( ptIds[ 1 + ind + i ]);
     nbPoints += nodesInFace;
     id += (nodesInFace + 1);
   }