Slicer - Convert centerlines to a graph {V,E}

Thank you @lassoan for the piece of code. Yes I will send out a pull request with the proposed changes soon.

Moreover, I also wanted to know if scalar values of ‘GroupIDsarray’, ‘TortuosityArray’ , ‘BlankingArray’ etc. can be incorporated in the centerline model. I generated the following plots by using the conventional vmtkscripts, but it does not always work correctly.


Currently there are only 3 ways to postprocess the centerline data as shown here.

  • However, can we make any changes here in the base code to store values of other arrays as well?

  • Also would it be possible to run this function independently in a separate python code given the vtkpolymesh surface data and the endpoint co ordinates?

This has been done for the network curves but the centerline curves hold the real information.