I already figured out how to do this myself.
On Thu, Mar 14, 2013 at 9:32 AM, Kitslaar, P.H. (LKEB)
<p.h...@lu...> wrote:
> 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
|