#include "SketchPlugin_ConstraintMiddle.h"
+#include "SketcherPrs_Factory.h"
+
SketchPlugin_ConstraintMiddle::SketchPlugin_ConstraintMiddle()
{
}
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = thePrevious;
- if (!anAIS) {
- // TODO
- //anAIS = SketcherPrs_Factory::collinearConstraint(this, sketch()->coordinatePlane());
- }
+ AISObjectPtr anAIS = SketcherPrs_Factory::middleConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}