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

Bill Lorensen bill.lorensen at gmail.com
Thu Jan 2 15:46:20 EST 2014


As far as I know, VTK does not have a way to save multiple objects in
a single file. I suggest you create a simple file format that contains
one .vtu file name per line. Each .vtu file can be created with
vtkXMLPolyDataWriter.



On Thu, Jan 2, 2014 at 3:34 PM, David Doria <daviddoria at gmail.com> wrote:
> On Thu, Jan 2, 2014 at 3:28 PM, Wei Wu <salad00 at gmail.com> wrote:
>>
>> Hi David,
>>
>> Many thanks for your help. It works.
>>
>> However I still have further questions. I use programming way to load a
>> vtu file, which contains simulation results, then create a batch of 3D
>> source objects. They are all rendered together to compose a complete view.
>> As I understand the vtkXMLPolyDataWriter can only export one single object
>> at each time? What if I want to export all the objects plus the vtu results
>> together to a single file for afterwards restoring?
>>
>> Thanks for your time in advance.
>>
>> Best regards,
>> Wei
>
>
> Please keep the discussion on the mailing list so that everyone can
> participate.
>
> I don't have a good answer for you - perhaps someone else can help.
>
> David
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list