From c76543a1aba8ee3ce25e7d57403ad3d7ec64b96d Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 26 Aug 2019 13:53:48 +0300 Subject: [PATCH] IPAL54614: Getting nodes of polyhedron works wrong Source https://salome-platform.org/forum/forum_10/633516704 --- src/SMDS/SMDS_MeshVolume.cxx | 2 +- src/SMESHGUI/SMESHGUI_SelectionProxy.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]; } } -- 2.39.2