[Paraview] XMLUnstructuredGridWriter and VTK_POLYHEDRON elements
Paul Edwards
paul.m.edwards at gmail.com
Mon Oct 13 18:13:43 EDT 2014
Hi Joe,
I've seen this before and there is a bug report in mantis here:
http://www.paraview.org/Bug/view.php?id=13382
There has also been a patch posted to the vtk-developers list a while back
although I haven't tested it:
http://markmail.org/message/zg3damrg27p5sgue
Regards,
Paul
On 10 October 2014 00:32, Insley, Joseph A. <insley at anl.gov> wrote:
> Hi,
>
> I have a serial vtu dataset provided by one of my users. Their current
> code can produce this in either ascii or inline binary. I am currently
> trying to convert this to appended binary (ultimately to pvtu with appended
> binary).
> I'm having trouble, which I now believe may stem from the data containing
> VTK_POLYHEDRON.
>
> I have a simple python script that I use with pvbatch to do this
> conversion, but I see the same results when I load the original data set
> with ParaView (4.1.0, in client/server mode), and use the Save Data option
> and save as vtu.
> I get the same results for each input format (ascii or inline binary), and
> output format (ascii, binary, appended).
>
> The first few lines of the original vtu file look like this:
>
> <?xml version="1.0"?>
> <VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian">
> <UnstructuredGrid>
> <Piece NumberOfPoints="1699427" NumberOfCells="384126">
>
> The first few lines of the converted file look like this:
>
> offset="177748206"ructuredGrid" version="0.1" byte_order="LittleEndian">
> <UnstructuredGrid>
> <Piece NumberOfPoints="1699427" NumberOfCells="384126"
> >
>
>
> Something is clearly getting jumbled at the beginning of the converted
> file. If I manually edit the header of the file to read <VTKFile
> type="UnstructuredGrid", there are still problems with the file. In that
> case the info tab in ParaView reports the correct number of points and
> cells, but no geometry is drawn. I have successfully converted other vtu
> files using this same method. The primary difference that I've been able
> to identify is that the files that are not converting happily contain
> VTK_POLYHEDRON elements.
>
> Has anyone else seen similar behavior?
>
> Thanks,
> joe
>
> ===================================================
> joseph a. insley
> insley at anl.gov
> argonne leadership computing facility (630)
> 252-5649
> argonne national laboratory
>
>
>
>
> _______________________________________________
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141013/481cbfde/attachment.html>
More information about the ParaView
mailing list