From: eap Date: Thu, 26 Dec 2013 15:08:31 +0000 (+0000) Subject: 22368: EDF SMESH: Pattern mapping to assign new nodes to sub-shapes X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0ac827df3b5ffac1c4d1c9204b9b8fab2ce194f;p=modules%2Fsmesh.git 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 --- diff --git a/src/SMESH/SMESH_Algo.cxx b/src/SMESH/SMESH_Algo.cxx index 19a1e4b09..8beda034e 100644 --- a/src/SMESH/SMESH_Algo.cxx +++ b/src/SMESH/SMESH_Algo.cxx @@ -410,7 +410,7 @@ bool SMESH_Algo::GetSortedNodesOnEdge(const SMESHDS_Mesh* theM return false; 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 int nbNodes = 0;