Hello
Generating the Centerline questiom called also Skeletonization or Vectorization or Morphological thinning.
I see an other thread before about the same subject but i search for a final solution,
there are many codes and tools available but i don’t know how to use them directly with Grasshopper
https://scikit-image.org/docs/stable/auto_examples/edges/plot_skeleton.html
I used voronoi method , and tried another idea but it need flipping in the triangulation