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: 4397

Replies to This Discussion

Not so difficult if you want them in a grid - much more difficult if you want them close packed?

Disconnect the 'Orient A' input to see the tiles aligned at their bottom left corner instead of their center.

Attachments:

The tiles of a mosaic are packed... perhaps subdivide the surface in squares of 10x10 (+offset) and using some random method to group the squares in groups of 1, 4 and 9 elements (in order to form larger squares)?

Oops, bad domain for 'Random' - should have been "0 to 2" instead of "0 to 3" (three tile sizes, not four): tiles_2016_Jan3a.gh

Here is a slightly different approach that avoids flattening the 'SFrames': tiles_2016_Jan3b.gh

P.S.  Oops again!  The top row and right column are duplicates because the 'N' input for both 'Random' components needs the Expression "x+1"... (the inputs to 'SFrames' + 1).

Attachments:

thats a close approach to my idea, but I want them close packed, more like a disorganised mosaic.

Is it possible?

The tiles can certainly be "close packed" instead of a grid pattern, yes.  But it's not trivial and not what I would consider a GH beginner project.

In the CNC world, "close packed" would be called "nesting".

http://www.tdmsolutions.com/rhinonest/

Well ,I haven't thought about the possibility of use rhinonest, thanks for the advise!

I can propose that, it is derived from this discussion :

http://www.grasshopper3d.com/forum/topics/multiple-panelling-size-v...

As you want a joint of 0.5 cm I add 0.5 cm on the size of square.

Attachments:

wow, thank you so much!!

You are welcome, it is not always easy to find something on the forum!

The algorithm is quite simple, it takes a rectangle and try to place it on the left and with the minimum height. You could define the order of apparance of mosaic. Here without random ! First the 10  after the 20 and the end the 30.

One final question:

Is possible to add more tiles like: 30x15 / 15x30 / 20x10 / 10x20 / 10x5 / 5x10?

I have tried it but I couldn't...

Thanks!

Yes it is possible, 

here 2 ways, for the second way stay on the same line, no return (I don't remember how to manage them). On the panel there are size in x (width), heigh in Y and number of mosaic. You will see that I use Graft on duplicate so it is equivalent to a "for each size" duplicate the good number of mosaics 

Attachments:

Very clever!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service