[Paraview] XMLUnstructuredGridWriter and VTK_POLYHEDRON elements
Insley, Joseph A.
insley at anl.gov
Thu Oct 9 19:32:11 EDT 2014
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<mailto:insley at anl.gov>
argonne leadership computing facility (630) 252-5649
argonne national laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20141009/4d1140a1/attachment.html>
More information about the ParaView
mailing list