Retreive world coords nested component InputPoint
-
Hi,
I want to make a tool using InputPoint. On mouse click I select a face, works ok.
But I am not able to get the worldcoordinates if the face is in a nested component. I am puzzled as how to use the transformations. A simple example would be appreciated.
Regards, Jur -
InputPoint returns the transformation, if any, for the face you clicked on. Simply apply that tranformation to the vertices of the face to get the real world coordinates.
rwc = @ip.face.vertices.map{|v| v.position.transform(@ip.transformation)}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement