FOSSIL icon indicating copy to clipboard operation
FOSSIL copied to clipboard

Rotate around a body axis

Open AliE89 opened this issue 3 years ago • 4 comments

Ciao Stefano,

I am playing around with FOSSIL and in particular with rotate(matrix=R). It looks like that if I pass a rotation matrix it will rotate around the standard coordiante system axis, while I am more about to rotate around a body axis. I have tested also rotate(axis=ax, angle=theta), fiding the same result. The rotation si performed always around ex, ey, ez. Do you have any fix for this?

Here an example where I am rotaing a disk around y axis: image

AliE89 avatar Oct 07 '22 14:10 AliE89

I am wondering if you can add a function to specify the center of rotation and the rotation matrix that can be handy :)

AliE89 avatar Oct 07 '22 14:10 AliE89

@AliE89

Hi, it passed a long time since the last inspection of FOSSIL (I am rarely using it, currently I have been forced to use CGAL), thus I am not sure of what was implemented. Anyway, I can try to implement what you have requested. I am not sure about the time I need for doing it, please be patient.

Kind regards

szaghi avatar Oct 07 '22 17:10 szaghi

So there is nothing wrong in your code, of I ask paraview to rotatr around an axis I'll get the same results. I am just looking to rotate around the center of mass. I think I can rotate and then translate back of I know the center of rotation used by Fossil, meed to think about it a bit.

Il Ven 7 Ott 2022, 18:25 Stefano Zaghi @.***> ha scritto:

@AliE89 https://github.com/AliE89

Hi, it passed a long time since the last inspection of FOSSIL (I am rarely using it, currently I have been forced to use CGAL), thus I am not sure of what was implemented. Anyway, I can try to implement what you have requested. I am not sure about the time I need for doing it, please be patient.

Kind regards

— Reply to this email directly, view it on GitHub https://github.com/szaghi/FOSSIL/issues/6#issuecomment-1271857211, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4ZV6X3ZBXP7H35OISEU3TWCBMJHANCNFSM6AAAAAAQ7VHGU4 . You are receiving this because you were mentioned.Message ID: @.***>

AliE89 avatar Oct 07 '22 17:10 AliE89

Ciao Stefano,

I think a dummy way to do this operation is translate origin + rotate + translate barycenter.

AliE89 avatar Oct 08 '22 09:10 AliE89