I&#39;m working with some legacy VTK File Format stuff, writing it from Fortran Code.&nbsp; I&#39;m trying to write it in Binary (for Performance &amp; Space reasons), but I&#39;ve run into a s urprising hiccup.<br><br>The file-formats.pdf
 file shown on the VTK.org website says that the file readers can handle reading either BigEndian or LittleEndian data.&nbsp; In reality, however, it seems that (on my X86 Little-Endian Machine, which is currently the predominant architecture in the Big vs Little Endian Architectures, right) I still have to manually byte-swap everything before I write it because in the readers there is a hard-coded call to vtkByteSwap that I seem unable to bypass.
<br><br>For a test I simply wrote out (in C, with fprintf&#39;s and fwrite&#39;s) a simple 3-point, 1-cell Polygonal Dataset in Binary.&nbsp; It segfaults Paraview &amp; VTK every time I try to read it. If I byte-swap all my ints &amp; floats (Point locations, point ID&#39;s, scalar data) then it works.
<br><br>So I have to byte-swap all my data to write it out, then wait for VTK to byte-swap it again when it reads it in?&nbsp; Shouldn&#39;t this be an &quot;option&quot;, and not a &quot;requirement&quot; ?&nbsp; Or have I missed something..
<br clear="all"><br>-- <br>----------------------------------------<br>Randall Hand<br>Visualization Scientist<br>ERDC MSRC-ITL