I'm sure that this has been answer already but I'm still confused with the post I already found on stackoverflow, that's why I decided to post my question.
I'm not super familiar with geometry transformation (except translation but this one is easy), and I need to transform a set of 3D points based on a selection of 3 points as describe in the picture
Here's my plan so far :
- Create a triangle based on 3 points (let's call it
tri
) -> This is OK - Calculate the centroid of the triangle formed by my 3 points -> This is this is OK
- translate all the points to the origin (0,0,0) -> This is OK as well
- Rotate every points so that
tri
's pointsZ
coordinates are equal to 0 -> This is were I'm lost and unsure how to process (without any errors...)
I know it's not an hard issues, but if anyone knows how to process with numpy for example, I'm open :-)
Thank you for your help :-)