Grasshopper

algorithmic modeling for Rhino

Hi eveveryone! I am an architecture student and a beginner on Grasshopper. I am trying to create a sierpinski carpet on grasshopper for a project but with no success. I found that there is the Weaverbird spierpinski carpet component but i can not understand how it works. 
Can someone please help me to understand the process of how we can create the carpet with or without the component? 

Views: 1677

Replies to This Discussion

This is a classic simple fractal case.

Imagine a function dividing a rectangle into 9 pieces and skip the one at the center. Then you feed the remaining 8 into the same function that does the division ... and the "loop" process repeats until a stop condition (say: N of "loops") is satisfied. This is called recursion (a function calls itself, that is).

The "trad" way to do fractals is via code (GH is a-cyclic). Notify if you think that an example of that kind could be useful to you.

Thanks for the reply. 
Yeah an example could be really helpful please! 

OK, I'll do a freaky S carpet thingy tomorrow.

BTW: speaking about fractals have some fun with 2 simple cases (nothing to do with carpets and "normal" GH components ... but fun is fun, he he). In the IFS definition TAKE EXTREME care with the generations value.

Your carpet case (plus a lot of other possibilities) could easily been "derived" from the inscribe def with a few mods.

Attachments:

Haha wow that's cool, i'll take a look on this! Thanks!


Here a solution using components and anemone in order to have some recursion.

http://www.food4rhino.com/app/anemone

It cuts the surface in nxn parts (n=3 for Sirpienski) and suppress the part(s) you want. 

It could be used on whatever surface as long as it is not trimmed (cut)

Some change on record of Anemone, one record all (the holes) and one doesn't record. 

I put a stop condition when there are more than 1000 surfaces.

Attachments:

Wow that's perfect!!!! Thanks a lot, i have one base right here and i can experiment a lot with this. Thanks again

Some others examples, here with different subdivision in U and V 

, more in the spirit of Christmas 

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