Generating the Centerline question

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

I used voronoi method , and tried another idea but it need flipping in the triangulation (25 KB)