Hello every one.

I need some help with designing a facade.

I have a triangular shape with fillet corners as the outline of my building’s facade and I want to define some vertical elements that as they get close to an attraction point the distance between them decrease, and as we get far, the distance increase.

and what is important to me is to be able to control the maximum and minimum distance of these elements.

I found a code but the problem is I don’t get the logic behind some part of it, therefore, I can’t control it.

Thanks in advance for your help

the code:

*https://www.grasshopper3d.com/m/discussion?id=2985220%3ATopic%3A1561233*

A sketch to show what I mean: