Grasshopper

algorithmic modeling for Rhino

Hello, I Need your help.

I have two objects, (1) is a window/opening, (2) is a wall/massiv.

Lets say the Fassade is divide in 50 peaces, now I want to spread the objects in the subdivisions.

On the Picture you can see what I mean, this is just with randome reduce, it should be like this:

->If the last object is (1) then is a 50% chance that the next one is also (1)

-->If the last two objects are (1) then is a 40% chance that the next one is also (1)

--->If the last three objects are (1) then is a 30% chance that the next one is also (1)

---->If the last four objects are (1) then the next object must be (2)

->If the last object is (2) then is a 50% chance that the next one is also (2)

-->If the last two objects are (2) then is a 30% chance that the next one is also (2)

--->If the last three objects are (2) then is a 10% chance that the next one is also (2)

---->If the last four objects are (2) then the next object must be (1)

It would be nice if it is possible to change the number how many objects should be tested and the percent values.

Has anybody an idea how I can do this?

Best Regards

Views: 534

Attachments:

Replies to This Discussion

You should watch the rules of this game:
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
What you said resemble enough that game.
To apply those rules there should be already a 1/2 pattern at the start.
I suggest you to apply your rules still after the random reduce;
do like 1/2 (or 3?) iterations with those rules to "fix" the 1/2 pattern.

But give more information:
- you say "first" and "last" objects, on the same plane? or those rules have to check also between different planes?
- "first" and "last" stop counting at edges of the building? every edges? (or just at <90° etc..)

- you rules can conflict with themselves... left vs right

  left say 50% and right say 0%... what to do?

Hello Sebastan, Riccardo,

Incidentally, the first example file for anemone plugin (which, in my opinion, is essential for your project) is an implementation of the game of life. So this could be a good file to start from. 

Thank you for the reply,

here are some more Information:

- The rules just have check one floor (for every floor a new definition)

- The edges should be massive, so the first and the last are set. Resp. I can delete the first and the last and the spread ist just for the fields between the first and the last

- It just have to check in the direction of the starting Point, (just check left, not right).

The plugin anemon is very nice, but I can't find out how to say just check left neigbours and to set the maximum of copys to like 4...

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