How to draw parallel lines
-
Dear all,
I’m working on a school project. I’m developing a 3D model using Sketchup through Ruby extension. I want to draw a parallel line for a curved line.
The curved line was drawn using Ruby API command
entities.add edges. The points of the curved line were provided by a Ruby array.
Now I want to draw a parallel line for this curved line. Do you have any suggestions please?
Thank you -
Smustard.com's
offset.rbadds an '.offset' methods faces/edges/arcs/curves etc. That should give you some ideas at least...My ExtrudeEdgesByOffset tool also has some similar code that you could think about - however the easy way to offset edges is if they belong to a face, and are therefore definitely coplanar...
Instead of
entities.add_edges(array)you might be better usingentities.add_curve(array)to make the offsetting easier, if you want separate edges later you can always explode the curves in code...
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