]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchSolver/SketchSolver_ConstraintTangent.cpp
Salome HOME
Update test cases according to new Fillet API.
[modules/shaper.git] / src / SketchSolver / SketchSolver_ConstraintTangent.cpp
index 1bf442634e914bc9286a85af8290a96adf060f4b..8a61e1a993834fb60894db047030f289565d6b44 100644 (file)
@@ -49,15 +49,12 @@ void SketchSolver_ConstraintTangent::getAttributes(
   // Check the quantity of entities of each type and their order (arcs first)
   int aNbLines = 0;
   int aNbCircles = 0;
-  bool isSwap = false; // whether need to swap arguments (arc goes before line)
   std::vector<EntityWrapperPtr>::iterator anEntIt = theAttributes.begin() + 2;
   for (; anEntIt != theAttributes.end(); ++anEntIt) {
     if ((*anEntIt)->type() == ENTITY_LINE)
       ++aNbLines;
-    else if ((*anEntIt)->type() == ENTITY_ARC || (*anEntIt)->type() == ENTITY_CIRCLE) {
+    else if ((*anEntIt)->type() == ENTITY_ARC || (*anEntIt)->type() == ENTITY_CIRCLE)
       ++aNbCircles;
-      isSwap = aNbLines > 0;
-    }
   }
 
   if (aNbCircles < 1) {
@@ -86,12 +83,6 @@ void SketchSolver_ConstraintTangent::getAttributes(
     if (!hasSingleCoincidence(aFeature1, aFeature2))
       myErrorMsg = SketchSolver_Error::TANGENCY_FAILED();
   }
-
-  if (isSwap) {
-    EntityWrapperPtr aTemp = theAttributes[2];
-    theAttributes[2] = theAttributes[3];
-    theAttributes[3] = aTemp;
-  }
 }
 
 void SketchSolver_ConstraintTangent::adjustConstraint()