IPAL54614: Getting nodes of polyhedron works wrong

Source https://salome-platform.org/forum/forum_10/633516704
This commit is contained in:
eap 2019-08-26 13:53:48 +03:00
parent db6f1785f5
commit c76543a1ab
2 changed files with 2 additions and 2 deletions

View 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);
}

View 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];
}
}