Geo Nodes - Create a curve down centre of a tube?

Hey everyone,

I’m working on a “wrap” generator which currently requires the user to manually extract a curve down the centre of your geometry (the tube). I was hoping to automate this step and was wondering if it was possible to create a curve/edge down the centre of a tube using geometry nodes. I wrote something similar in python where it would merge the verts at the centre of each edge ring down the length of a tube but I am unsure where to even start something like that in geo nodes.

Here’s an image of what I am trying to describe:

I would greatly appreciate it if anyone could shed some light on the problem.

Thanks!

Hi, you’re looking to make a straight skeleton (https://en.wikipedia.org/wiki/Straight_skeleton). There’s no builtin way of doing this but Higgsas has a method : (Higgsas) Geometry Nodes Groups Blender 3.3/3.4/3.5/3.6 - #331 by higgsas

1 Like

had the same issue and got some help here - Create curve inside existing tube center - #11 by dan2

1 Like

Thanks a lot for those links. Appreciate it :slight_smile: