Create flat quad mesh by length division

Hi I am trying to make a tool for a coarse/flat/initial -mesh for later form finding, anyways here is the script so far. Basically I would like to make a quad subdivision for either the mesh or brep output that is a division by the length. Similar to the Refine component but one that considers the input curve lengths.

Thanks.

Note that you need the clipper plugin for the offsetting at the start.
quadmeshbylength.gh (20.2 KB)

I solved it like this, thanks for looking.