Grasshopper

algorithmic modeling for Rhino

Creating a random List with predetermined contrains

Hi to all!

 

I am making a summer project and i want to make a series of lists and after that chose one after an evaluation processes. But first things first, let me tell you about the list.

 

The lists will basically be a set of different ellipses:{a1, a2, b1, b2} (with different properties) From that i want to create random Lists of let’s say 15 items (ellipses) Something like that {a1, b2, b1, a1, a2, b1, b1, a2, a1, b1, b2, a1, b2, a1, a1}. But I want to be able to create some constrains. So for example if I have a1 I will be able to have next a2 or b1 but not to b2. I am not sure if this is possible in grasshopper and i was messing around with some logic components but without any luck.

 

Any help will be greatly appreciated.

 

 

Views: 749

Replies to This Discussion

Hi Stamatis, though I,m convinced this is possible I don't quit get how you want your constraints to work. (it's past my bed time, and too many a's and b's for me now ;)

Maybe with numbers it would be easier to understand. 

If there is 1 insert to the list 5

If there is a 5 insert to the list 6 or 4

 

So if i start from 1 one possible list would be: {1, 5, 6}

I got lazy and wrote a script.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Attachments:

Thanks this seems pretty straight forward but I think I need something more complex after all...I would explain in detail on the attached sketch

Attachments:

That is quite a bit more complex. We just went from a sequence of states to a geometric problem that might not have an answer. It's not a guarantee that you can always insert another ellipse without intersecting existing shapes but you can always add another "B" to the end of a string.

 

There's so much looping and 'iffing' involved here that I sincerely doubt you'll be able to do it without scripting.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Can you refer me to a script or .ghx that tries that creates tree like geometries?

Thanks for the help anyway!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service