]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/engine/BagPoint.cxx
Salome HOME
[EDF20032] : Algorithm is less strict to support new configuration
[modules/yacs.git] / src / engine / BagPoint.cxx
index f52d150cfba199b75a735693fa0968ee3740ddc1..89bf459008210c85a8566d764cfbf0816e8cedb2 100644 (file)
@@ -175,6 +175,23 @@ void BagPoint::deal2Ter(bool& somethingDone)
       }
 }
 
+void BagPoint::deal2Quatro(bool& somethingDone)
+{
+  somethingDone=false;
+  for(std::list<AbstractPoint *>::iterator it=_nodes.begin();it!=_nodes.end();it++)
+    {
+      if(!(*it)->isNullBeforeNullAfter(this))
+        continue;
+      ForkBlocPoint *try1((*it)->tryAsForkQuatro(this));
+      if(try1)
+        {
+          replaceInMe(try1);
+          somethingDone=true;
+          break;
+        }
+      }
+}
+
 /*!
  * This method remove 1, 2 or 3 points from this by flagging them as pathological nodes.
  * By doing so, we hope to simplify enough to have a standart case.