There's a bug in the Python constructor of App.Rotation with keyword arguments: "App.Rotation(x=1, y=0, z=0, w=0)" always returns the identity rotation: "Rotation (0.0, 0.0, 0.0, 1.0)".
Gaël
OS: Ubuntu 20.04.3 LTS (i3/i3)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: 751227402db14aad83f5aa87d63e514109bd438f
Python version: 3.8.10
Qt version: 5.12.8
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
Error in the keyword constructor of App.Rotation (Python)
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: Error in the keyword constructor of App.Rotation (Python)
From the code, construction from quaternion using keywords isn't supported.
-
- Posts: 436
- Joined: Wed Sep 15, 2010 9:38 am
Re: Error in the keyword constructor of App.Rotation (Python)
Thanks for the info!
The problem is then that this unsupported feature should raise an exception rather than ignore its input.
The problem is then that this unsupported feature should raise an exception rather than ignore its input.