Create centerlines in multiple tubes?

Hey, I have a structure consisting of many closed, not connected tubes. I would like to know if it is possible to detect the centerlines of multiple tubes at once. I was only able to create the centerline for one tube at a time, even when setting endpoints for multiple tubes manually since the auto detection wasn’t working on this structure.

The ExtractCenterlines module auto detection of endpoints is designed for branching trees like vasculature or bronchial airway trees, not for multiple separate tubes. For separate tubes, just find the centerline of each one serially. You can automate this using python. You can split the each tube into a separate segment using the Islands tool, and then iterate over each segment, finding the centerline.

1 Like