#include <SketcherPrs_Factory.h>
-#include <ModelAPI_AttributeDouble.h>
-#include <ModelAPI_Data.h>
-#include <SketchPlugin_Point.h>
-#include <GeomDataAPI_Dir.h>
-#include <GeomDataAPI_Point.h>
-
SketchPlugin_ConstraintCoincidence::SketchPlugin_ConstraintCoincidence()
{
}
if (!sketch())
return thePrevious;
- AISObjectPtr anAIS = thePrevious;
- if (!anAIS) {
- anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane());
- anAIS->setColor(0, 0, 255);
- }
+ AISObjectPtr anAIS = SketcherPrs_Factory::coincidentConstraint(this, sketch()->coordinatePlane(),
+ thePrevious);
return anAIS;
}