Extracting the center line of a 3D pipe that contains angles in 2 dimensions is not that complicated. However, when you have compound angles, and the tube is bending in the X, Y, and Z directions simultaneously, extracting the centerline can be quite challenging.