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
This commit is contained in:
eap 2007-02-28 15:02:53 +00:00
parent eed04f6cfd
commit fe605cfaac

View File

@ -363,7 +363,7 @@ bool SMESH_MeshEditor::IsMedium(const SMDS_MeshNode* node,
{ {
bool isMedium = false; bool isMedium = false;
SMDS_ElemIteratorPtr it = node->GetInverseElementIterator(typeToCheck); SMDS_ElemIteratorPtr it = node->GetInverseElementIterator(typeToCheck);
while (it->more()) { while (it->more() && !isMedium ) {
const SMDS_MeshElement* elem = it->next(); const SMDS_MeshElement* elem = it->next();
isMedium = elem->IsMediumNode(node); isMedium = elem->IsMediumNode(node);
} }