Grasshopper

algorithmic modeling for Rhino

I'm trying to figure out how to cull all curves (within a set) which intersect with another set of curves/breps - the image below depicts the set of curves to be culled (green), the curves/breps to cull against (red) and the remaining curves which don't intersect (filled in blue).

I've gotten so far as using the curve/curve intersection function to create points where the two sets of curves intersect but I'm not sure how to use this information to cull the curves in question.

Cheers!

Views: 11045

Attachments:

Replies to This Discussion

hi chonk,

it took a while tto find but here's something i did recently for a similar problem.

here

Thanks for the response Danny!

Your solution seems to reap strange results - please see the image below (results in green & original curves in red).

The 'index' element is kicking up the following error:


I really appreciate your help!

Attachments:

this will be a data matching issue. i won't be able to look at a solution until tomorrow as i'm awayat the moment.

Yeah that ParamViewer indeed looks very suspect indeed. I don't have Kangaroo installed here and that file uses the RemoveDuplicatePoints component so I can't open it right away.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Come 0.9, you can use the collision detection component to solve this quite easily.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Here is a quick solution that I put together. Seems to do the job just fine. You will most likely need to tweak the path mapper, depending on your curve inputs.

Attachments:

Thanks Ryan

champion, thanks ryan!

But your script only works if there is only two and zero intersection points right? 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service