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 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);
   }
index 5d9c2b9613d3c22c97034a65a3352a5bd6e9eb17..f66c70ab0e73d61fff9831d59b506c2b01499bcc 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];
           }
         }