22368: EDF SMESH: Pattern mapping to assign new nodes to sub-shapes

In GetSortedNodesOnEdge(), do not return false if there are nodes but
no segments on an EDGE
This commit is contained in:
eap 2013-12-26 15:08:31 +00:00
parent 1d6cfba4c1
commit a0ac827df3

View File

@ -410,7 +410,7 @@ bool SMESH_Algo::GetSortedNodesOnEdge(const SMESHDS_Mesh* theM
return false; return false;
SMESHDS_SubMesh * eSubMesh = theMesh->MeshElements( theEdge ); SMESHDS_SubMesh * eSubMesh = theMesh->MeshElements( theEdge );
if ( !eSubMesh || !eSubMesh->GetElements()->more() ) if ( !eSubMesh || ( eSubMesh->NbElements()==0 && eSubMesh->NbNodes() == 0))
return false; // edge is not meshed return false; // edge is not meshed
int nbNodes = 0; int nbNodes = 0;