From: eap Date: Wed, 28 Feb 2007 15:02:53 +0000 (+0000) Subject: PAL13460 (PAL EDF 301 force the mesh to go through a point) X-Git-Tag: V3_2_6a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe605cfaac5868bb11b3e9af6df917b0cc2611ec;p=modules%2Fsmesh.git PAL13460 (PAL EDF 301 force the mesh to go through a point) in IsMedium(node), return true if node is medium in at least one element --- diff --git a/src/SMESH/SMESH_MeshEditor.cxx b/src/SMESH/SMESH_MeshEditor.cxx index eec6ff15c..eccd73600 100644 --- a/src/SMESH/SMESH_MeshEditor.cxx +++ b/src/SMESH/SMESH_MeshEditor.cxx @@ -363,7 +363,7 @@ bool SMESH_MeshEditor::IsMedium(const SMDS_MeshNode* node, { bool isMedium = false; SMDS_ElemIteratorPtr it = node->GetInverseElementIterator(typeToCheck); - while (it->more()) { + while (it->more() && !isMedium ) { const SMDS_MeshElement* elem = it->next(); isMedium = elem->IsMediumNode(node); }