[vtkusers] converting .obj to .vtp

Greg Hanowski greg at tekknow.net
Wed Aug 28 00:43:30 EDT 2013


David,
ReadOBJ looks good but unfortunately WriteVTP appears to be only a demo of
how to write 10 points in .vtp format, not an entire model.
Any other ideas?
Greg

-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Friday, August 23, 2013 1:32 PM
To: Greg Hanowski
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] converting .obj to .vtp

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