[vmtk-users] Generate centerlines polydata from x y z and raidus point list
Brought to you by:
davidsteinman,
lucantiga
From: Kitslaar, P.H. (LKEB) <p.h...@lu...> - 2013-03-14 08:32:20
|
Hello All, I have a bunch of centerline points with corresponding radii that I wish to use with some vmtk classes, in particular vtkvmtkCenterlineBranchExtractor. The centerline points all start at the the same root position and each centerline traces a particular branch in the vessel tree. For example: Line 1 (x, y z radius) ------------------------------ 1.0 1.0. 3.0 0.5 1.0 1.0. 4.0 0.5 1.0 1.0. 5.0 0.7 Line 2 (x, y z radius) ------------------------------ 1.0 1.0. 3.0 0.5 1.0 1.0. 4.0 0.5 <- last common point with line 1 1.0 2.0. 5.0 0.3 Etc... How should I fill the vtkPolyData object with this data? Which DataArrays should be filled, I think at least the radius. Maybe there are some code examples (Python or C++) that could point me in the right direction. Best regards, Pieter Kitslaar |