-// Copyright (C) 2019 CEA/DEN, EDF R&D
+// Copyright (C) 2019-2023 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
aType = THE_ANGLE_SUPPLEMENTARY;
else if (aBackwardDiff < aDirectDiff && aBackwardDiff < aComplementaryDiff)
aType = THE_ANGLE_BACKWARD;
+ else
+ aType = THE_ANGLE_DIRECT;
}
return aType;
}
FeaturePtr aBase = feature();
const std::string& aSketchName = theDumper.parentName(aBase);
- theDumper << aBase << " = " << aSketchName << "." << "setAngle(";
+ theDumper.name(aBase, false, true, true); // mark constraint as dumped
+ theDumper << aSketchName << "." << "setAngle(";
bool isFirstAttr = true;
for (int i = 0; i < CONSTRAINT_ATTR_SIZE; ++i) {