return SolverConstraintPtr(new SketchSolver_Constraint(theConstraint));
}
+#ifdef SUPPORT_NEW_MOVE
+std::shared_ptr<SketchSolver_ConstraintMovement> PlaneGCSSolver_Tools::createMovementConstraint(
+ FeaturePtr theMovedFeature)
+{
+ return std::shared_ptr<SketchSolver_ConstraintMovement>(
+ new SketchSolver_ConstraintMovement(theMovedFeature));
+}
+
+std::shared_ptr<SketchSolver_ConstraintMovement> PlaneGCSSolver_Tools::createMovementConstraint(
+ AttributePtr theMovedAttribute)
+{
+ return std::shared_ptr<SketchSolver_ConstraintMovement>(
+ new SketchSolver_ConstraintMovement(theMovedAttribute));
+}
+#else
std::shared_ptr<SketchSolver_ConstraintFixed> PlaneGCSSolver_Tools::createMovementConstraint(
FeaturePtr theMovedFeature)
{
return std::shared_ptr<SketchSolver_ConstraintFixed>(
new SketchSolver_ConstraintFixed(theMovedFeature));
}
+#endif