[vtkusers] Need Help !!!

David Doria daviddoria at gmail.com
Tue Jul 2 07:37:46 EDT 2013


On Tue, Jul 2, 2013 at 4:37 AM, rahul indoria <rahulindoria5 at gmail.com> wrote:
> Hi,
>     I am new on vtk and need to ask :
>
> 1.) can we convert our .vtk into .vtp?
>
> 2.) if yes, then how will we use this .vtp file in the given example:
> http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvedReformation
>
> I need this as soon as possible.

It would depend on what is in your vtk file, but you might be able to
use http://vtk.org/Wiki/VTK/Examples/Cxx/IO/GenericDataObjectReader to
read it. Then you would just use a vtkXMLPolyDataWriter to write it to
a vtp. Then you would use a vtkXMLPolyDataReader to read it.

David



More information about the vtkusers mailing list