First, many thanks for your numpy-stl module. Most helpful. I have one suggestion to make:
The only rotation you have enabled in your code is around an arbitrary axis (and a point), which is super helpful. I understand that you are using the rotation_matrix function which calculates the appropriate rotation matrix, which you then use to rotate the stl.
I would find it very useful (and powerful) to provide a second function that would allow a rotation around a user supplied rotation matrix.
For completeness I've simply split the rotation method into multiple functions right now, but you're right @Uvar, the rotations and translations could simply be combined in a single operation instead.
WoLpH commentedMay 6, 2017
Copied from wolph's blog: https://w.wol.ph/about/#comment-174
First, many thanks for your numpy-stl module. Most helpful. I have one suggestion to make:
The only rotation you have enabled in your code is around an arbitrary axis (and a point), which is super helpful. I understand that you are using the rotation_matrix function which calculates the appropriate rotation matrix, which you then use to rotate the stl.
I would find it very useful (and powerful) to provide a second function that would allow a rotation around a user supplied rotation matrix.
What I am thinking is this:
This would allow for very easy chaining of matrices.
The work-around is very easy, but this seems like a really quick and useful addition…
The text was updated successfully, but these errors were encountered: