{
std::shared_ptr<ModelAPI_Feature> aFeature =
compositeFeature()->addFeature(SketchPlugin_Arc::ID());
- return MacroArcPtr(new SketchAPI_MacroArc(aFeature, theTangentPoint, theEndX, theEndY, theInversed));
+ return MacroArcPtr(new SketchAPI_MacroArc(
+ aFeature, theTangentPoint, theEndX, theEndY, theInversed));
}
std::shared_ptr<SketchAPI_MacroArc> SketchAPI_Sketch::addArc(
SketchPlugin_Tools::createConstraint(this,
CENTER_POINT_REF_ID(),
aCircleFeature->attribute(SketchPlugin_Circle::CENTER_ID()),
- NULL,
+ ObjectPtr(),
false);
SketchPlugin_Tools::createConstraint(this,
PASSED_POINT_REF_ID(),
- NULL,
+ AttributePtr(),
aCircleFeature->lastResult(),
true);
}
// Create constraints.
for (int i = 0; i < 3; ++i)
- SketchPlugin_Tools::createConstraint(this, aPointRef[i], NULL, aCircleResult, true);
+ SketchPlugin_Tools::createConstraint(this, aPointRef[i], AttributePtr(), aCircleResult, true);
}
FeaturePtr SketchPlugin_MacroCircle::createCircleFeature(