Creating a loop dividing rectangles up to a certain height

Hello there !

I need help ! I’m trying to use scrap wood to make a table top; thus, I must be able to divide the scrap wood by a certain height (represented by the width of the table top), and to re-use each new scrap created in the process up to the point I won’t be able to use them anymore (under the defined height).

To do so, I’m trying to create a gh that would be able using a loop to divide specific rectangles up to a minimum height. So far, I’ve been able to doing it without automating it (I’m still learing how to use grasshopper though). I’m willing to use anemone in order to create my loop, but I still don’t really know how to do it. Does anyone has an idea ?


Please forgive my bad english, I’m french ^^