Grasshopper

algorithmic modeling for Rhino

After running into the need to split up a big messy set of curves at all their intersection locations, I decided to make a python component.

Basically, if you input a bunch of curves, this component should find every place where they intersect and then split them up, return a list of curve pieces on a separate branch for each input curve.

It should be able to handle self intersections and overlaps.

Feel free to use it, edit the code, and let me know if you find any bugs.

Here's the code for the python component: https://gist.github.com/3031095

And here is the definition: SplitCurves.gh

Enjoy

Views: 1575

Comment

You need to be a member of Grasshopper to add comments!

Comment by Andrés Utz on April 14, 2020 at 3:50pm

great!...thanks!

Comment by Seth Lamberton on October 14, 2013 at 2:42pm

Thanks for sharing, this helped me with making a digital topo model today.

Comment by enrique soriano on September 17, 2013 at 6:36am

recool!! Thanks BEN

Comment by Arthur Mamou-Mani on July 3, 2012 at 5:14pm

Brilliant, very useful! Thanks Ben.

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service