]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
Treat case of quadratic enforced mesh
authorgdd <gdd>
Fri, 6 May 2011 18:51:45 +0000 (18:51 +0000)
committergdd <gdd>
Fri, 6 May 2011 18:51:45 +0000 (18:51 +0000)
src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx

index d93a1d759264321bfa7fb0d84e558d50f60ba14a..65ced03a8db2605e84f8dfed42a94080703b6f57 100644 (file)
@@ -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<const SMDS_MeshNode*>(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<const SMDS_MeshNode*>(nodeIt->next());
                 _edgeID2nodeIDMap[anEdge->GetID()].push_back(node->GetID());
                 _nodeIDToSizeMap.insert(make_pair(node->GetID(), size));