From: eap Date: Mon, 26 Aug 2019 10:53:48 +0000 (+0300) Subject: IPAL54614: Getting nodes of polyhedron works wrong X-Git-Tag: V9_4_0a1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c76543a1aba8ee3ce25e7d57403ad3d7ec64b96d;p=modules%2Fsmesh.git IPAL54614: Getting nodes of polyhedron works wrong Source https://salome-platform.org/forum/forum_10/633516704 --- diff --git a/src/SMDS/SMDS_MeshVolume.cxx b/src/SMDS/SMDS_MeshVolume.cxx index dc9ad5ca2..ec1ecc0c0 100644 --- a/src/SMDS/SMDS_MeshVolume.cxx +++ b/src/SMDS/SMDS_MeshVolume.cxx @@ -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); } diff --git a/src/SMESHGUI/SMESHGUI_SelectionProxy.cxx b/src/SMESHGUI/SMESHGUI_SelectionProxy.cxx index 5d9c2b961..f66c70ab0 100644 --- a/src/SMESHGUI/SMESHGUI_SelectionProxy.cxx +++ b/src/SMESHGUI/SMESHGUI_SelectionProxy.cxx @@ -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]; } }