- } else
- return false;
-
- // check that both have coincidence
- FeaturePtr aConstrFeature;
- std::set<FeaturePtr> aCoinList;
- const std::set<std::shared_ptr<ModelAPI_Attribute>>& aRefsList = aRefFea->data()->refsToMe();
- std::set<std::shared_ptr<ModelAPI_Attribute>>::const_iterator aIt;
- for (aIt = aRefsList.cbegin(); aIt != aRefsList.cend(); ++aIt) {
- std::shared_ptr<ModelAPI_Attribute> aAttr = (*aIt);
- aConstrFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aAttr->owner());
- if (aConstrFeature->getKind() == SketchPlugin_ConstraintCoincidence::ID()) {
- AttributeRefAttrPtr aRAttr = std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(aAttr);
- AttributePtr aAR = aRAttr->attr();
- if (aAR->id() != SketchPlugin_Arc::CENTER_ID()) // ignore constraint to center of arc
- aCoinList.insert(aConstrFeature);