Salome HOME
IPAL54614: Getting nodes of polyhedron works wrong
authoreap <eap@opencascade.com>
Mon, 26 Aug 2019 10:53:48 +0000 (13:53 +0300)
committereap <eap@opencascade.com>
Mon, 26 Aug 2019 10:53:48 +0000 (13:53 +0300)
Source https://salome-platform.org/forum/forum_10/633516704

src/SMDS/SMDS_MeshVolume.cxx
src/SMESHGUI/SMESHGUI_SelectionProxy.cxx

index dc9ad5c..ec1ecc0 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);
   }
index 5d9c2b9..f66c70a 100644 (file)
@@ -754,7 +754,7 @@ bool SMESH::SelectionProxy::perFaceConnectivity( int id, Connectivity& connectiv
           SMESH::long_array_var nodes = mesh->GetElemFaceNodes( id, iF );
           for ( CORBA::ULong iN = 0; iN < nodes->length(); ++iN )
           {
-            connectivity[ iF ] << nodes[iN];
+            connectivity[ iF+1 ] << nodes[iN];
             nodeSet << nodes[iN];
           }
         }