Grasshopper

algorithmic modeling for Rhino

Hi all!

I have a flat list of solids (result from a boolean operation). How can I put in diferent branches all objects interesecting. I'll try to explain myself better. Imagine you have a list of spheres on space. They all intersect, but not all with all, just by groups. I need to have all that groups in diferent lists.

I don't know if it was more clear or I just complicated the question, anyway, if somebody understand me and has an aswer I'll appreciate it!

Thanks

Views: 351

Replies to This Discussion

This is a very difficult problem. I doubt you'll be able to solve it without some extensive VB/C# scripting.

At least it's simple to determine whether or not two spheres intersect, if the distance between the center points is more than the sum of the two radii, then both spheres intersect.

However, I suspect you only mentioned spheres to provide an example, so you'll still need to perform intersection test...

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks David

I will do what I need directly from rhino or micros. I present the master final thesis project in a week, fully designed, concived and modeled (not tested yet, Daniel was not fast enough, I'm jocking Daniel, delightfull work yours!) with GH.

I'll be more than glad to post the results as soon as this frenetic time frezees the 2nd of february.

:)
I seem to be getting somewhere with this, but the algorithm still depends on the order in which objects are supplied. I'll fiddle some more, then post the definition.


--
David Rutten
david@mcneel.com
Poprad, Slovakia
I think it's working now. Not the easiest thing I ever did...
There might well be cases in which it fails to find clusters of objects, I only tested on < 5 distributions.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Attachments:
Really cool David, many Thanks!

I will play with it! But I think I will not start exploting its capacities in one week or two.

Thank you so much

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service