Making a customized Geo Node function for resampling a curve

So, I am creating a modifier for haircards placement and I would love to have a way to properly resample a curve with a fixed number of points and adaptive distancing between them according to the points angle. I tried a ton of different ways to make it work, with varying degress of success.

This is my current setup:

enter image description here

What you see in the image is exactly what I want. HOWEVER, when I move the handle to either side, the effect gets a bias to either side, as can be seen in this video:

.blend file:

If anyone’s curious, I have a demo of a prototype for this tool, which works but… it’s very unreliable, I want to do it properly, for which I need to work on this matter.

1 Like