TechDraw: Enable setting a custom direction. Fixes #5821

This commit is contained in:
PaddleStroke
2024-04-02 14:01:07 +02:00
parent b6d8bb094a
commit 5eb73cf949
7 changed files with 192 additions and 13 deletions

View File

@@ -1289,6 +1289,11 @@ void DrawViewPart::spin(const std::string& spindirection)
if (spindirection == "CCW")
angle = -M_PI / 2.0;// Top -> Left -> Bottom -> Right -> Top
spin(angle);
}
void DrawViewPart::spin(double angle)
{
Base::Vector3d org(0.0, 0.0, 0.0);
Base::Vector3d curRot = getXDirection();
Base::Vector3d curDir = Direction.getValue();