mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
IPAL54614: Getting nodes of polyhedron works wrong
Source https://salome-platform.org/forum/forum_10/633516704
This commit is contained in:
parent
db6f1785f5
commit
c76543a1ab
@ -88,7 +88,7 @@ const SMDS_MeshNode* SMDS_MeshVolume::GetNode(const int ind) const
|
|||||||
{
|
{
|
||||||
int nodesInFace = ptIds[id];
|
int nodesInFace = ptIds[id];
|
||||||
if ( ind < nbPoints + nodesInFace )
|
if ( ind < nbPoints + nodesInFace )
|
||||||
return GetMesh()->FindNodeVtk( ptIds[ ind + i ]);
|
return GetMesh()->FindNodeVtk( ptIds[ 1 + ind + i ]);
|
||||||
nbPoints += nodesInFace;
|
nbPoints += nodesInFace;
|
||||||
id += (nodesInFace + 1);
|
id += (nodesInFace + 1);
|
||||||
}
|
}
|
||||||
|
@ -754,7 +754,7 @@ bool SMESH::SelectionProxy::perFaceConnectivity( int id, Connectivity& connectiv
|
|||||||
SMESH::long_array_var nodes = mesh->GetElemFaceNodes( id, iF );
|
SMESH::long_array_var nodes = mesh->GetElemFaceNodes( id, iF );
|
||||||
for ( CORBA::ULong iN = 0; iN < nodes->length(); ++iN )
|
for ( CORBA::ULong iN = 0; iN < nodes->length(); ++iN )
|
||||||
{
|
{
|
||||||
connectivity[ iF ] << nodes[iN];
|
connectivity[ iF+1 ] << nodes[iN];
|
||||||
nodeSet << nodes[iN];
|
nodeSet << nodes[iN];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user