The Use of Grasshopper for paneling

Hello everyone!
I’ve created the gh file uploaded in this topic.paneling.gh (16.6 KB)

My goal is to divide a surface in a certain number of panels in order to change the position of each one.
The real problem is that every time that I change the number of panels, I’ve to create new elements. It seems like, my way of designing is not parametric at all. Does anyone have any suggestion in order to optimize it?

Thank you for your time.

I reckon this is more or less what you were going for:

paneling_v2.gh (11.0 KB)

This process and those alike are made simple via the understanding of how Data Trees work. Read more on this subject here:

If you like to use PanelingTools plugin for Rhino (https://www.food4rhino.com/app/panelingtools-rhino-and-grasshopper), then this code probably does what you need.


paneling_RI.gh (26.8 KB)

I’m sorry for the late reply.
Thank you very much, it is interesting to see the differences between the two solutions.
I can say that as I initially supposed, I’m far away from an optimal solution.
I will study more and I’ll analyse your codes. I really appreciate your kind help and thank you to Rajaa, I will use panelling tools in the future.