cadquery icon indicating copy to clipboard operation
cadquery copied to clipboard

How to convert global coordinate tuple to local coordinates?

Open r4dr3fr4d opened this issue 2 years ago • 1 comments

toWorldCoords() accepts a tuple, but toLocalCoords accepts an object. I'm trying to create a threePointArc (which accepts two tuples of local coordinates) between vertices of two different objects (eg, boxes) - how does one do this? I can't seem to piece together an example working with toLocalCoords on non-local objects...

r4dr3fr4d avatar Apr 10 '23 00:04 r4dr3fr4d

Came across this issue while I was looking for something else and noticed there was never an answer. @r4dr3fr4d It has been so long that you may not be interested anymore, but I am not sure why you would need to convert between coordinate systems. I think that threePointArc accepts 3D coordinates, and so you should be able to pass the locations of your two vertices in 3D space to that method.

jmwright avatar Jan 22 '25 20:01 jmwright