Convert point's coordinates to a new coordinate system


#1

Hi,
How can I obtain point’s coordinates in a specific coordinate system ?
It seems pretty simple but I can’t find the node to do that.
Thank you


#2

Hi @BCochin,

Here is a possible way with python and a custom node :

Convert%20Point%20in%20Coordinate%20Systems


#3

Have you tried comparing the point to the coordinate system’s origin?


#4

Thank you Alban,
This is not what I’m searching for.
I’m looking for a mathematical conversion of the point P coordinates from the general coordinate system (O, x, y, z) to any other coordinate system (A, i, j, k).


#5

Thank you for this proposal. It’s close to what I’m looking for. But your solution works only if coordinate systems are parallel. I’m searching for the general solution.

I was expecting to find something already existing. I will try to code the node, if I can remember my math…


#6

Ok, I made a custom node to do it.



pointRelativeCoordinate.dyf (63.9 KB)

If someone wants to convert it in python to make it faster, feel free … I will probably do it soon or later, but probably later…