std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(attribute(INVERSED_ID()))->setValue(isReversed);
myParamBefore = 0.0;
}
+
+bool SketchPlugin_Arc::isReversed()
+{
+ return std::dynamic_pointer_cast<ModelAPI_AttributeBoolean>(attribute(INVERSED_ID()))->value();
+}
/// Updates the "reversed" flag
/// \param isReversed whether the arc will be reversed
void setReversed(bool isReversed);
+ /// Returns \c true is the arc is reversed
+ bool isReversed();
/// Use plugin manager for features creation
SketchPlugin_Arc();
double y = aDir->y();
aDir->setX(-y);
aDir->setY(x);
- if (!isStart[i])
+ if (isStart[i] == std::dynamic_pointer_cast<SketchPlugin_Arc>(aFeature[i])->isReversed())
aDir = aDir->multiplied(-1.0);
}
aTangentDir[i] = std::shared_ptr<GeomAPI_Dir2d>(new GeomAPI_Dir2d(aDir));