[vtkusers] How to export vtk source objects created in programming way into files to load in ParaView etc

David Doria daviddoria at gmail.com
Thu Jan 2 16:25:32 EST 2014


On Thu, Jan 2, 2014 at 4:15 PM, Wei Wu <salad00 at gmail.com> wrote:

> Hi Bill,
>
> This is a good idea. I can use the writer to export each object separately
> and insert into a big xml file format, which is possible. When reading I
> can extract the objects one by one and render them.
>
> However I don't think this approach will apply for software like ParaView
> and, especially, KiwiViewer etc. I was wondering if I can export the
> complex 3d view into one single supported file and load it into KiwiViewer;
> thus I can avoid writing a tablet application on my own, which is costly.
>
> Thanks. I still appreciate more ideas.
>
> Wei
>

You can use the vtkAppendFilter to combine all of the data into a single
"thing":

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter

and then write that to a file. Of course you will then no longer be able to
view/change properties of each individual object.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140102/33423591/attachment.htm>


More information about the vtkusers mailing list