<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div>Hi,</div>
<div><br>
</div>
<div>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).</div>
<div>I'm having trouble, which I now believe may stem from the data containing VTK_POLYHEDRON.  </div>
<div><br>
</div>
<div>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.</div>
<div>I get the same results for each input format (ascii or inline binary), and output format (ascii, binary, appended).</div>
<div><br>
</div>
<div>The first few lines of the original vtu file look like this:</div>
<div><br>
</div>
<div><?xml version="1.0"?></div>
<div>  <VTKFile type="UnstructuredGrid" version="0.1" byte_order="BigEndian"></div>
<div>  <UnstructuredGrid></div>
<div>    <Piece NumberOfPoints="1699427" NumberOfCells="384126"></div>
<div><br>
</div>
<div>The first few lines of the converted file look like this:</div>
<div><br>
</div>
<div>offset="177748206"ructuredGrid" version="0.1" byte_order="LittleEndian"></div>
<div>  <UnstructuredGrid></div>
<div>    <Piece NumberOfPoints="1699427"              NumberOfCells="384126"              ></div>
<div><br>
</div>
<div><br>
</div>
<div>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.</div>
<div><br>
</div>
<div>Has anyone else seen similar behavior?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>joe</div>
<div><br>
</div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;">
<div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">===================================================</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">joseph a. insley                                                          <a href="mailto:insley@anl.gov">insley@anl.gov</a></font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">argonne leadership computing facility                       (630) 252-5649</font></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 12px; ">
<font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">argonne national laboratory     </font></div>
</div>
<div><br>
</div>
</span><br class="Apple-interchange-newline">
</div>
<br>
</body>
</html>