Creating "like" geometry from similar base curves

Given the following input curve:


I then draw the following 4 line like curves by hand:

From there, I would like an automated way to get those 4 input curves for any similar base curve. So for instance, how could I use grasshopper to automatically map those 4 line like curves to the following, different input curve:

This is clearly a very similar, but different shape. So if anyone has an idea of how to parametrically map the 4 line like curves to any given input “foot” shape, that would be perfect.
AutoFittingCurves.gh (10.3 KB)

Hey, you haven’t internalised your geometry.

1 Like

OK I think it should work now

Bounding Rectangle and Swap Surface Directions from Pufferfish used…

LEG - Scan.gh (45.8 KB)