TechDraw: Enable setting a custom direction. Fixes #5821

This commit is contained in:
PaddleStroke
2024-04-02 14:01:07 +02:00
parent 59f8d6391f
commit 4ebe22f166
7 changed files with 192 additions and 13 deletions

View File

@@ -1219,6 +1219,11 @@ void DrawProjGroup::spin(const std::string& spindirection)
if (spindirection == "CCW")
angle = -M_PI / 2.0;// Top -> Left -> Bottom -> Right -> Top
spin(angle);
}
void DrawProjGroup::spin(double angle)
{
DrawProjGroupItem* anchor = getAnchor();
Base::Vector3d org(0.0, 0.0, 0.0);
Base::Vector3d curRot = anchor->getXDirection();