-// Copyright (C) 2017-2019 CEA/DEN, EDF R&D
+// Copyright (C) 2017-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
theDumper << ", False, " << anAttrD << ", " << anAttrAngle;
}
+ if (!aBase->data()->version().empty())
+ theDumper << ", keepSubResults = True";
+
theDumper << ")" << std::endl;
}
const std::list<ModelHighAPI_Selection>& theBaseObjects,
const bool performDistances,
const ModelHighAPI_Double& theVal1,
- const ModelHighAPI_Double& theVal2)
+ const ModelHighAPI_Double& theVal2,
+ const bool keepSubResults)
{
std::shared_ptr<ModelAPI_Feature> aFeature = thePart->addFeature(FeaturesAPI_Chamfer::ID());
+ if (!keepSubResults)
+ aFeature->data()->setVersion("");
return ChamferPtr(new FeaturesAPI_Chamfer(aFeature, theBaseObjects, performDistances,
theVal1, theVal2));
}