Use borders as attractor for random reduce


Hello, I want to use the boundaries as an attractor for randomly excluding tiles from the overall list.
In script that I modified I used boundaries for scaling but I’m stuck on how to get them to a random reduce.

pavement reduce random.gh (24.2 KB)

Using the search function, you can find the following:

…and please internalise your initial geometry in the GH file:

Sorry, here is initial geometry

pavement reduce random 0.gh (31.8 KB)

Here’s one way to do a random reduction:

Cells closer to the outer boundary curves have a higher probability to get culled.
The distances are measured from the cell centers to their closest outer boundary curve. The probabilities are random.

The slider “Domain end” and “Seed”, as well as the Graph Mapper component let you dial in the behaviour.

pavement reduce random rev.gh (28.6 KB)

Here’s another way with a “mesh color reference” (just for fun) to guide the effect based on proximity to your original medial curve, which is the ‘opposite’ of proximity to the borders—you can use the gradient tool to play with it:
pavement reduce random 0.gh (41.8 KB)


wow thanks
I hadn’t even thought about it that way. Perhaps this color gradient method could be useful not only for offset curves, but also for planes with a large number of boundaries. Thank you!

Yes, this is exactly what I was looking for, thanks for the help