[Paraview] Cannot Read Binary Unstr Legacy VTK with 2.4.2
Berk Geveci
berk.geveci at gmail.com
Fri Mar 3 13:19:43 EST 2006
I believe VTK expects binary files to be written as big endian. I
don't think there is a way of getting around this. You have to swap as
you are writing out.
On 3/1/06, Kent Eschenberg <eschenbe at psc.edu> wrote:
> The problem:
> > ParaView 2.4.2 crashes when it reads a file using the VTK legacy binary
> > format for an unstructured grid.
> > ... Pentium 4 system using gcc 4.0.2 and Redhat Fedora Core 4.
>
> The cause:
> VTK is flipping the order of the bytes of the binary data.
>
> I added print statements in the VTK code right after the vertices and cell
> connections were read. They are fine at that point. But VTK goes on to uses
> routines like vtkByteSwap::Swap4BERange. Additional print statements show
> that the data is then wrong.
>
> Why is this swapping going on? Its a waste of time and turns good data into
> bad. Is there a way to turn it off?
>
> Thanks!
> Kent
> Pittsburgh Supercomputing Center
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
More information about the ParaView
mailing list