Offset tool in Ruby?
-
How can I use Ruby to mimic the 'Offset' tool in SU? Given a face, I want to get a new face that's 1.5 m from the edges (on the inside), or just have a way of knowing if a given point would be on such a face.
-
Smustard.com has a free '
offset.rb' that adds some extra methods to the API that should do what you want... Either 'require' it or cannibalize parts of its code into your own ...The API's
face.classify_point(point)method will tell you if a point is on a face etc - use the constants NOT numerical equivalents... -
Sweet, thanks.
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