Intersect Panels Facade

Hello at the last month i´ve working in a script where it solve a panalization from a simple subdivision of curves from a trigonocometric surface.

well apparently its works, but in some panels there are intersections with
neighbor panels, no at all but in some its occur,

Ive tried to create a script or code where only the angle or position (in z) change without modify the perpendicular angle to the base (waffle structure), but i dont have any idea how to create a operation where a function could separete or sort my intersected panels and i can modify these by moving or rotating them.


Facade_Discs.ghx (914.8 KB)

really in model rhino baked it is very easy but maybe its take time to made it.

i hope that someone can help me with a idea, thanks.

I used paneling tools and Ghpython in a part of the process.