Salome HOME
Implement the Collinear constraint
[modules/shaper.git] / src / SketchSolver / SketchSolver_Constraint.cpp
index b7d928e805d3f81ddcbffc638021ed7ba9e95935..47ec0fdb3beb37bb8cfa6853c2f0007b09064771 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <SketchPlugin_ConstraintAngle.h>
 #include <SketchPlugin_ConstraintCoincidence.h>
+#include <SketchPlugin_ConstraintCollinear.h>
 #include <SketchPlugin_ConstraintDistance.h>
 #include <SketchPlugin_ConstraintEqual.h>
 #include <SketchPlugin_ConstraintHorizontal.h>
@@ -79,6 +80,8 @@ SketchSolver_ConstraintType SketchSolver_Constraint::TYPE(ConstraintPtr theConst
     return CONSTRAINT_RADIUS;
   else if (aType == SketchPlugin_ConstraintTangent::ID())
     return CONSTRAINT_TANGENT;
+  else if (aType == SketchPlugin_ConstraintCollinear::ID())
+    return CONSTRAINT_COLLINEAR;
   return CONSTRAINT_UNKNOWN;
 }