Extract Centerline module omits a branch

I have a surface model of an airway including the trachea and two bronchi. When I use the ExtractCenterline module with three endpoints (near the superior end of the trachea and near the ends of the bronchi) with the superior point marked as the “inlet”, I get two curves created as centerline curves, from the trachea to the branch point, and from the branch point down one of the bronchi. These two curves are named “Centerline curve (0)” and “Centerline curve (2)”. There is no “Centerline curve (1)”. I suspect there might be some sort of bug somewhere because which bronchus the centerline curve goes down depends on the order of the endpoints in the “Endpoints” MarkupsPointList. Also, if I mark the right bronchus endpoint as the ‘inlet’, then I get a set of 3 centerline curves (right bronchus to branch point, branch point to left bronchus, and branch point to trachea), with curve (0), (1), and (2) all created. As I was troubleshooting, I moved the brochus endpoints so that they sit on the voronoi surface to eliminate the possible issue that it couldn’t find a path to the endpoint.

If anyone is willing to take a look at this, the surface model is here: Dropbox - Preprocessedmodel.vtk - Simplify your life and the endpoints are here: Dropbox - BronchiStoma.mrk.json - Simplify your life

Just load both of those, and try to run “Extract Centerline” with the preprocessed model as the input surface, the BronchiStoma points as the endpoints, and with a “Centerline curve” output selected. It’s fine to uncheck “Preprocess input surface” in the Advanced section because the input surface is already preprocessed.

Also, as additional information, if a “Centerline model” output is selected (in addition to the “Centerline curve” output), the generated centerline model has both branches included, but doesn’t work well for my purposes because it is not divided into segments the way the centerline curves are.

Thanks very much for any help you can provide!
image
Missing branch which goes to RightBronch!


With surface shown.


With “centerline model” shown in green. Centerline model has both branches, but centerline curves omit the right branch.

I am using Slicer 5.2.1 on Windows 10.