Convert Transform4f matrix to Numpy matrix or Python list #1116
-
Beta Was this translation helpful? Give feedback.
Answered by
njroussel
Mar 22, 2024
Replies: 1 comment 1 reply
-
I found the solution. You need to call M.matrix and then wrap it as Numpy array. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed, the
Transform
class is a convenience wrapper to handle transformations of points, and normals differently. The raw underyling matrix is what you most likely want here, and you can access it withmy_transform.matrix
.