Salome HOME
IPAL54614: Getting nodes of polyhedron works wrong
[modules/smesh.git] / src / SMDS / SMDS_MeshVolume.cxx
index dc9ad5ca2b6b8b8a7f757fa967f6d7be6e6c4cc8..ec1ecc0c049544800ec1ca0b9aa8c0fa8abf5a85 100644 (file)
@@ -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);
   }