Subdivide given area into randomly sized blocks with no gaps

I finished a script I began some days ago. The idea is quite simple, take a grid with X pixels in width, Y in height try to put random rectangle with given size if not possible try less big rectangle. It gives that. The output is rectangles between in UV space (between 0 to 1). So this could be used for surface or whatever.
If output Count less than nx*ny augment tries.




grid_subdivision_LEGACY.gh (24.0 KB)

Playing withe the nice render with some smoothing.


17 Likes