Grasshopper

algorithmic modeling for Rhino

Split curve(s) by intersection with other curve(s)

i am able to split curves based on the intersection with a closed curve using 'containment'...but what is the way to split curves based on the intersection with open curve(s)?

Views: 22106

Replies to This Discussion

1) find all the curve parameters where the curve intersects other curves.

2) shatter the curve using those parameters.

Might be quite complicated depending on your specific case though.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi,

I need to split many curves at their intersections, without loosing their direction (dir 1, 2, 3 and 4).

To find the intersections, I used the "multiple curves" (MCX) component.

I was thinking about using the Shatter component to split the curves at the intersections, but I am having trouble to understand how MCX works, and how I should manage with the hierarchy in the trees to have the right output, that I could link to Shatter.

Could you help me to understand the MCX component?Thanks,

Attachments:

Check this

I checked it but the cluster doesn't work.

I tried to use one of the first solutions you gave in this topic also, I managed to do something but it doesn't really work, and I think it is because I don't understand properly the outputs of the MCX component

Attachments:

Just checked it, you have a lot of duplicates, and curves joined by their end/start. Looking for a fix.

Meanwhile, Marcus Strube's Python script should work for you : here

Fast fix to ignore shatters at end and starts of curves.

Attachments:

Thank you Systemiq, it works perfectly!

thanks a lot too

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service