Grasshopper

algorithmic modeling for Rhino

Hi:

I'm trying to draw in grasshopper an idea I have and I can't find the way to do it.

The idea:

1_ In one hand I have three tile types, 30x30 cm / 20x20 cm / 10x10 cm

2_ On the other I have a surface

3_ I want to put that three kind of tiles on the surface with a random position and with a space  between them ≥5 mm. Like a mosaic.

I think is not so difficult, but I'm a beginner and I don't know all the functions.

Thank you in advance!

Views: 4484

Replies to This Discussion

I almost got it!, just one more thing: whre can I adjust the vertical spacing?

The tiles are spaced horizontal but not in vertical.

Thanks!

I am in a very similar situation and found this very helpful but I have a question I was hoping you could help with. I would like to apply this patterning within a slightly irregular boundary, is there a way to do this? 

Thanks!

Attachments:

there is no vertical adjust.

can you post a drawing with what you want ? It could be possible to distribute rectangles, with Kangaroo, with code ...

That is very cool!  I like the way you organized the tile sizes, allowing a different number of each size.  Too bad the code is VB script, not GH...  And the thread you referred to is mostly in French so not much help there in understanding your "simple" packing algorithm.

I can read the VB script but to understand it visually, I numbered the tiles in the order they were added - then color coded them the same way:

Would be fun to try this in Anemone (though I'm not sure I understand your algorithm yet).

Attachments:

Joseph, for the French I don't often use it on this forum. The main discussions were on Unicode, Excel, fonts ... not algorithm.

The algorithm draws a polyline "list_heights" (with a fixed discretization of minimum width of rectangles divided by ten) on the top of rectangles already packed, so it is more easy to find a place for the next one. 

Hope it helps

I have already solved it mixing grasshopper and then autocad, I'll post the final result when I'll finish if you want.

Once again, many thanks!

It will be interesting to see the results. It will conclude well this thread.

Here you have, It fitted very good on what I had in mind.

The idea was to create a wall made of recycled tiles, so I used the image to create a quick texture for 3dsmax


Thank you all!

I have a simple method without packing but with random tiles only. It based on Voronoi and Manhattan distance. I used Manhattan (from Milkbox) and StudioAvw add-ons.

Attachments:

Miquel: I don't see regular spaced joints in your example or is your  autocad example showing shadows created by the thickness of the tiles?

It is made in autocad, I modified the thickness of the lines obtained from grasshopper therefore I could use it in 3dsmax.

The program reads the black spaces as gaps, so I though it would be easier for me and my computer instead to try to set a definition on grasshopper.

In brief, I just downloaded the file I obtained in this forum and modified it in other programs.

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