(theSplitFeature->attribute(SketchPlugin_Arc::START_ID())));
// additional constraints between split and base features
- createConstraint(SketchPlugin_ConstraintEqual::ID(), getFeatureResult(aBaseFeature),
+ createConstraintForObjects(SketchPlugin_ConstraintEqual::ID(), getFeatureResult(aBaseFeature),
getFeatureResult(theSplitFeature));
- createConstraint(SketchPlugin_ConstraintTangent::ID(), getFeatureResult(theSplitFeature),
+ createConstraintForObjects(SketchPlugin_ConstraintTangent::ID(), getFeatureResult(theSplitFeature),
getFeatureResult(aBaseFeature));
if (theAfterFeature.get()) {
- createConstraint(SketchPlugin_ConstraintEqual::ID(), getFeatureResult(aBaseFeature),
+ createConstraintForObjects(SketchPlugin_ConstraintEqual::ID(), getFeatureResult(aBaseFeature),
getFeatureResult(theAfterFeature));
- createConstraint(SketchPlugin_ConstraintTangent::ID(), getFeatureResult(theSplitFeature),
+ createConstraintForObjects(SketchPlugin_ConstraintTangent::ID(), getFeatureResult(theSplitFeature),
getFeatureResult(theAfterFeature));
}
}
aRefAttr->setAttr(theSecondAttribute);
}
-void SketchPlugin_ConstraintSplit::createConstraint(const std::string& theConstraintId,
+void SketchPlugin_ConstraintSplit::createConstraintForObjects(const std::string& theConstraintId,
const ObjectPtr& theFirstObject,
const ObjectPtr& theSecondObject)
{
/// \param theConstraintId a constraint index
/// \param theFirstAttribute an attribute of further coincidence
/// \param theFirstAttribute an attribute of further coincidence
- void createConstraint(const std::string& theConstraintId,
+ void createConstraintForObjects(const std::string& theConstraintId,
const std::shared_ptr<ModelAPI_Object>& theFirstObject,
const std::shared_ptr<ModelAPI_Object>& theSecondObject);