# Random parametric facade

**URL:** <https://discourse.mcneel.com/t/random-parametric-facade/57220>\
**Category:** Grasshopper\
**Created:** [March 11, 2018, 9:50pm UTC](https://discourse.mcneel.com/t/random-parametric-facade/57220 "2018-03-11T21:50:22Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![laurent\_delrieu](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/laurent_delrieu/32/601605_2.png) [@laurent\_delrieu](https://discourse.mcneel.com/u/laurent_delrieu)\
**Post date:** [March 12, 2018, 8:51pm UTC](https://discourse.mcneel.com/t/random-parametric-facade/57220/4 "2018-03-12T20:51:15Z")

</div>

Hello  
just to play I gave a look to make a definition. I don’t answer your last question but I think my beginning of solution could a=handle that.  
So the first thing is to cut your facade in elongated rectangles. I didn’t do that and reuse something I have done some time ago.

> **[Rectangle false "packing" (Sample and example)](https://www.grasshopper3d.com/forum/topics/rectangle-false-packing-sample-and-example)**
>
> I try here to answer from a question on discourse
> https://discourse.mcneel.com/t/fill-an-rectangular-area-with-predefined-elements/40728
> Fill an rectangular ar…

> [@Fill an rectangular area with predefined elements](http://discourse.mcneel.com/t/fill-an-rectangular-area-with-predefined-elements/40728/):
>
> Hello dear grasshopper users, I am currently working on a large scale facade and would like to solve the following problem: let’s say I have defined a number of rectangular shaped blocks, in this case I have seven ,shaped like shown in the attached picture (1:1, 2:1, 1:2, ) Now I would like grasshopper to automatically create a random pattern which would fill out the large rectangle (In this case 17m X 110). Is there already such a thing? I did not find something yet, I think I remember that…

I reuse that  
[http://api.ning.com/files/GZs8qdvnOuEZJrxCjwmxlqaX8cVtShke1P6GGL3-bs7NncdNNA3ji4fIf2HPCwE6wZAjfO8JOlzOwmoXaF57j\*DU1-ZLO5CR/Canvasat215331.png](http://api.ning.com/files/GZs8qdvnOuEZJrxCjwmxlqaX8cVtShke1P6GGL3-bs7NncdNNA3ji4fIf2HPCwE6wZAjfO8JOlzOwmoXaF57j*DU1-ZLO5CR/Canvasat215331.png)

For a proportion of rectangles I draw a bottom and upper curve with 7 points.

 ![image](https://global.discourse-cdn.com/mcneel/original/3X/9/1/917d68a334d45215cc6d605763f3aeb5bbde1311.png)  
There is a parameter in X for this curve.  
The height of this curve is taken with the use of a random parameter. I used Random noise but you could use whatever you want, Perlin noise, Simplex noise, Image Sampler.  
Then thes curves are lofted, merged  
Et voilà  
There are many variants possible. It was just an example, be creative.  
 ![image](https://global.discourse-cdn.com/mcneel/original/3X/c/0/c0334f5ba7a36829de9d7e3cb65304ec40b61158.jpg)  
 ![image](https://global.discourse-cdn.com/mcneel/original/3X/5/2/527aa25d35dadaba0b774b5b51e62d4abe8f928f.jpg)

Script for Rhino 6 GH1.0  
[Dallas Museum of Nature And Science.gh](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/d/cd4199ec3bdfc58435d90e7ce9b6da141f913b72.gh) (135.7 KB)

---

_[View the full topic](https://discourse.mcneel.com/t/random-parametric-facade/57220)._
