[vtkusers] vtkXMLPUnstructuredGridWriter() howto?

David Doria daviddoria at gmail.com
Mon Sep 20 15:24:04 EDT 2010


On Mon, Sep 20, 2010 at 3:15 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> The example works fine for me. It produces 4 .vti files.
>
> Why is this example considered broken?
>
> Bill

You're right, there are 4 files produced now, that comment is
incorrect (I just changed it). I left it in broken because I didn't
understand the following:

1) Without the streamer and with the SetEnd/StartPiece, it writes the
5 files (Test.pvti, Test_0.vti, Test_1.vti, Test_2.vti, Test_3.vti)
that I would expect.

2) With the streamer and WITHOUT the SetEnd/StartPiece, it only writes
the 2 files.

3) Setting SetNumberOfStreamDivisions(4) on the streamer or not
calling SetNumberOfStreamDivisions at all did not seem to make a
difference.

Basically the summary of the above is I don't understand
streaming/pieces/etc. Is there a tutorial on this? If not, there
should definitely be at least a few paragraphs we can point to from
examples like this.

David



More information about the vtkusers mailing list