Grasshopper

algorithmic modeling for Rhino

Tiling uniformly but randomly different scales of a module on a surface that its area is equal to the total surface area of the modules

I have these 3 different scales of squares, separated in 3 lists that then I merged them into one list. I want to tile the green surface by them uniformly but randomly. They should fit because their total surface area is equal to the green surface area. 

Views: 1000

Replies to This Discussion

surface area equating does not mean you can tile them to fit..
and thats assuming those squares are multiples of each other (ie. 1x1 2x2 3x3)
either way, an attached gh would go a long way in preemptively answering those questions.

I attached the files. 

I started by creating a surface that has a total surface area of the total surface areas of the squares (they are not necessary squares, maybe rectangles). and now I'm trying to tile them randomly but uniformly on the surface.  

The end result that I want is I have different modules in different sizes and I want to tile them on a surface randomly but uniformly. 

Thanks for your reply :)

hope you have a solution for my issue.  

Attachments:

Hope this helps illustrate my point.

A quick study of all (edit: but two of) the possible vertical tiling patterns, sorted largest square on top, that you can fit within the vertical space of your rectangle. Note how nothing fits (except for that one part). Note how this will also happens on the horizontal length as well.

tl;dr Equal surface area does not mean you can fit them. You need to come up with a tiling logic beforehand. If they all fit on a grid, even beter. Or you'll have to come up with a more complex system if you want irregular rectangles as you seem to want?

yeah, you are right, I should start to think about it in a different way. Thank you for your replies. 

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