ambiguous Byte Order setting in EnSight Reader
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I have a binary EnSight6 file which VTK fails to read with either Little or Big Endian set. The heuristic in vtkEnSight6BinaryReader.cxx seems to fail for large grid size.
I can supply Debug output to help debug and the file can also be made available (94 Mbytes geom file).
I have been able to read the file by changing the source code around line 2630:
// If they are both valid, use the larger one. if (tmp > 0 && tmp > *result)
I changed "tmp > *result" to "tmp < *result" and it allows VTK to continue without errors. This is only a work-around for the particular file, not a solution to the problem.