From: gdd Date: Fri, 6 May 2011 18:51:45 +0000 (+0000) Subject: Treat case of quadratic enforced mesh X-Git-Tag: V6_3_0~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d9afce29a6010db96c565828aca3ab33ab289bc;p=plugins%2Fhybridplugin.git Treat case of quadratic enforced mesh --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index d93a1d7..65ced03 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -426,7 +426,7 @@ void GHS3DPlugin_Hypothesis::SetEnforcedElements(TIDSortedElemSet theElemSet, SM // _enfNodes.insert(elem->begin_nodes(),elem->end_nodes()); _elementIDToSizeMap.insert(make_pair(elem->GetID(), size)); SMDS_ElemIteratorPtr nodeIt = elem->nodesIterator(); - for (;nodeIt->more();) { + for (int j = 0; j < 2; ++j) { node = dynamic_cast(nodeIt->next()); _edgeID2nodeIDMap[elem->GetID()].push_back(node->GetID()); _nodeIDToSizeMap.insert(make_pair(node->GetID(), size)); @@ -441,7 +441,7 @@ void GHS3DPlugin_Hypothesis::SetEnforcedElements(TIDSortedElemSet theElemSet, SM // _enfNodes.insert(anEdge->begin_nodes(),anEdge->end_nodes()); _elementIDToSizeMap.insert(make_pair(anEdge->GetID(), size)); SMDS_ElemIteratorPtr nodeIt = anEdge->nodesIterator(); - for (;nodeIt->more();) { + for (int j = 0; j < 2; ++j) { node = dynamic_cast(nodeIt->next()); _edgeID2nodeIDMap[anEdge->GetID()].push_back(node->GetID()); _nodeIDToSizeMap.insert(make_pair(node->GetID(), size));