// Obtain base features
FeaturePtr anOldFeatureA, anOldFeatureB;
- std::list<ObjectPtr> aNewFeatList = aRefListOfBaseLines->list();
- std::list<ObjectPtr>::iterator aFeatIt = aNewFeatList.begin();
+ std::list<ObjectPtr> anOldFeatList = aRefListOfBaseLines->list();
+ std::list<ObjectPtr>::iterator aFeatIt = anOldFeatList.begin();
anOldFeatureA = ModelAPI_Feature::feature(*aFeatIt++);
anOldFeatureB = ModelAPI_Feature::feature(*aFeatIt);
-
if(!anOldFeatureA.get() || !anOldFeatureB.get()) {
setError("One of the edges is empty");
return;
aRefListOfFillet->append(aNewFeatureB->lastResult());
aRefListOfFillet->append(aNewArc->lastResult());
- // attach base lines to the list
- aRefListOfBaseLines->append(anOldFeatureA);
- aRefListOfBaseLines->append(anOldFeatureB);
-
myProducedFeatures.push_back(aNewFeatureA);
myProducedFeatures.push_back(aNewFeatureB);
myProducedFeatures.push_back(aNewArc);
FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(theAttribute->owner());
AttributePtr aBaseLinesAttribute = aFeature->attribute(SketchPlugin_Constraint::ENTITY_C());
AttributeRefListPtr aRefListOfBaseLines = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(aBaseLinesAttribute);
- if(aRefListOfBaseLines->list().size() == 2) {
+ if(!aRefListOfBaseLines->list().empty()) {
return true;
}