Hi
The rotation of GlobalPlacement can be presented in many forms: The getGlobalPlacement uses the form :Euler angles and Angle. But another form would be very usefull too, like : Vector (rotation axis) and float (rotation angle) . Is there any way to get Global Placement Rotation in this or another way ?
Any help is welcomed.
Other form of GlobalPlacement Rotation
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Other form of GlobalPlacement Rotation
'.Angle' and '.Axis' are exactly this.
'.Angle' isn't linked to Euler angles, which are standalone.
'.Angle' isn't linked to Euler angles, which are standalone.
Re: Other form of GlobalPlacement Rotation
Code: Select all
obj.getGlobalPlacement().Rotation.Axis
obj.getGlobalPlacement().Rotation.Angle
Re: Other form of GlobalPlacement Rotation
I hadn't tried with parenthesis. I am a stupid.openBrain wrote: ↑Fri Sep 23, 2022 7:16 pmA placement is a placement, whatever the way you got it.Code: Select all
obj.getGlobalPlacement().Rotation.Axis obj.getGlobalPlacement().Rotation.Angle
Thanks a lot openBrain.