Grasshopper

algorithmic modeling for Rhino

joining open and closed curves creating a very long polyline (toolpath)

Hi all, 

its been really long I don't post, I guess I'm back ;)

for "X" reason I need to create a one single polyline toolpath, all set, but when one or more curves are closed (and non periodic) the join component fails joining the to the other lines and curves that conform de toolpath. 

all curves are well sorted and oriented

I know there are nasty solutions to solve it, but maybe there's some migic hidden, or I'm missing something very easy that now is blurred in my mind. 

any clue?

many thanks in advance

Views: 1633

Replies to This Discussion

Polyline is just a collection of vertices. So:

poly.AddRange(otherPolys.Select(p => p));

many thanks!

Rhino indeed does not like having curves with closed loops inside of them. As Thibault point out though, polylines are an exception to this. If you're happy to convert your curves to polylines, you can just append them all into a single huge list.

many thanks

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service