Hello, any ideas on how to extract a centerline from a tube. More specifically a tube with curvature and taper. Not sure the best approach for something like this.
First thought I have is maybe extract an edge running the length of the tube. For each point along the edge, find the vectors of connected edges, do a cross product to get a vector facing towards the opposite side of the tube. Ray the points across and then divide the distance of the ray in half for center points. Seems a bit overcomplicated. Wondering if there's something simpler? Thanks in advance.
mestela
2022年9月9日 19:16:04
Labs straight skeleton is general purpose but slow.