cadquery
cadquery copied to clipboard
How to convert global coordinate tuple to local coordinates?
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...
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.