VMTK extension has lots of vascular quantification and analysis tools, including very fast and robust fully automatic centerline and branch extraction, cross-section analysis, etc. Check it out, as you may be able to reuse and build on these modules, so you could reduce the amount of code you need to maintain.
FYI, many more, very sophisticated vascular tools are coming to 3D Slicer soon, as the SimVascular community is planning to port their modules into 3D Slicer. I would recommend to have a look at it, too, and focus on working on features that are not yet covered.