検索 - User list
Full Version: Extract a center line from a tube
Root » Houdini Indie and Apprentice » Extract a center line from a tube
tinyT
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
Labs straight skeleton is general purpose but slow.

Aslak posted a faster method for tubes here:

https://youtu.be/F86-TDRzjnc [youtu.be]
tinyT
Oh this is great. Way easier than what I was thinking. Thanks so very much.
animatrix_
This video also have a lot of interesting solutions:

tinyT
Oh wow, this is great. Love seeing this and different solutions. Very clever stuff there.
Hallam Roberts
The Laplacian can also be used to produce a straight skeleton, with similar results to Labs Straight Skeleton but much faster:

https://www.sidefx.com/forum/topic/101499/ [www.sidefx.com]

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB