From fe605cfaac5868bb11b3e9af6df917b0cc2611ec Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 28 Feb 2007 15:02:53 +0000 Subject: [PATCH] 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 --- src/SMESH/SMESH_MeshEditor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }