Quad remesh optimization for lattice application

Hi grasshopper masters,

My main goal is to apply lattice curve on this multi-pipe geometry evenly and follow the guide curves naturally.

The initial geometry is a sub-d. In order to apply the crystallon cell curve onto the surface, I need to turn it into a mesh to execute from Pufferfish.

Hence, I used quad remesh to create quad grids on the surface used to hold the cell curves. But the result below is not what I wanted, as I want the quad grid to follow the red guide curves.

So, I input the guide curves in the quad remesh command like below:

As shown in the screenshot below, some of the cells are vertically elongated (cyan), and some of them are horizontally stretched (Magenta). The overall grid looks okay, but what I want to achieve is all of the quad grids to be as square as possible, like the ones circled in green.

The reason why I need the quad grids to be as square as possible is that it affects how the lattice would look in certain areas. As circled in cyan and magenta, the lattice appears to be stretched and uneven.

Is there a way to make the grid even and square, while controlling them with the guide curves? Like using Kangaroo to relax the quad grids of the mesh? I am fairly new to GH, so any suggestions or tips would be highly appreciated.

Lattice applying on Multipipe surface—20260625.3dm (1015.0 KB)

Lattice applying on Multipipe surface—20260625.gh (109.3 KB)

Thank you very much!

Lattice applying on Multipipe surface—20260625 Edited v0.gh (77.5 KB)