[vtkusers] converting .obj to .vtp

David Doria daviddoria at gmail.com
Fri Aug 23 15:32:25 EDT 2013


On Fri, Aug 23, 2013 at 2:18 PM, Greg Hanowski <greg at tekknow.net> wrote:
> Hello VTK guru's,
>
>
>
> I need to create centerlines of blood vessels.  I found open source software
> that will do it called Vascular Modeling Toolkit (VMTK) using the following
> command:
>
> vmtkcenterlines -ifile foo.vtp -ofile foo_centerlines.vtp
>
>
>
> I notice the .vtp format but my arteries and veins are in .obj format.  I
> was hoping to use VTK to convert .obj to .vtp.  Does anybody know how to do
> that, or have other suggestions?
>
>
>
> Thank you,
>
>
>
> Greg


Combine this http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadOBJ with
this http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP and that
should do it!

David



More information about the vtkusers mailing list