My question is very simple. When I try :
vmtkcenterlines -ifile manifold_shell.stl -ofile manifold_centerlines.vtp
After selecting source and target points graphically, The vmtk enters in a crash loop.
Any clue how to extract the centerlines is very welcome.
Here it follows the manifold_shell.stl (renamed to .mp4 for uploading purposes).
This was due to a VTK bug that has been fixed in VTK about 8 months ago, which might not have made it into your VMTK distribution yet. The was backported to Slicer’s VTK a few days ago (in Slicer revision 31684).
I just followed the steps in your youtube video. Please see the attached video. However de centerlines curves are not so “smooth” as expected for this manifold.
Any guidance about how to improve the centerlines are very welcome.
(Attachment manifold_3d_slicer_centerline_extract.mp4 is missing)
The video is missing. Please try uploading it again (use the Slicer Forum web interface, email attachments probably don’t get posted).
To me the result shown on the video is very good. I’m not sure what kind of smoothness you are looking for. Maybe you could grab one frame of the video and just draw the curve shape that you would expect.
“Network” method extract centerline purely based on the geometry of the input surface. It will be just as smooth as the input shape dictates. Resolution of the input mesh migh affect the result (if the elements are large or their sizes are highly varying). Could you show the input model with edges displayed (models module → Display → 3D Display → Representation → Surface with edges)? You can try if uniform resampling in Surface toolbox module makes any difference in the output.
“Tree” method creates more realistic, directional flow pattern.