<div dir="ltr"><div><div><div>Hi Bill,<br><br></div>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.<br>
<br></div>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.<br>
<br></div><div>Thanks. I still appreciate more ideas.<br></div><div><br></div>Wei<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 2 January 2014 15:46, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">As far as I know, VTK does not have a way to save multiple objects in<br>
a single file. I suggest you create a simple file format that contains<br>
one .vtu file name per line. Each .vtu file can be created with<br>
vtkXMLPolyDataWriter.<br>
<div><div class="h5"><br>
<br>
<br>
On Thu, Jan 2, 2014 at 3:34 PM, David Doria <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
> On Thu, Jan 2, 2014 at 3:28 PM, Wei Wu <<a href="mailto:salad00@gmail.com">salad00@gmail.com</a>> wrote:<br>
>><br>
>> Hi David,<br>
>><br>
>> Many thanks for your help. It works.<br>
>><br>
>> However I still have further questions. I use programming way to load a<br>
>> vtu file, which contains simulation results, then create a batch of 3D<br>
>> source objects. They are all rendered together to compose a complete view.<br>
>> As I understand the vtkXMLPolyDataWriter can only export one single object<br>
>> at each time? What if I want to export all the objects plus the vtu results<br>
>> together to a single file for afterwards restoring?<br>
>><br>
>> Thanks for your time in advance.<br>
>><br>
>> Best regards,<br>
>> Wei<br>
><br>
><br>
> Please keep the discussion on the mailing list so that everyone can<br>
> participate.<br>
><br>
> I don't have a good answer for you - perhaps someone else can help.<br>
><br>
> David<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
> <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
--<br>
Unpaid intern in BillsBasement at noware dot com<br>
</font></span></blockquote></div><br></div>