From a0ac827df3b5ffac1c4d1c9204b9b8fab2ce194f Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 26 Dec 2013 15:08:31 +0000 Subject: [PATCH] 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 --- src/SMESH/SMESH_Algo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2