This PR Includes a number of important bug fixes and updates summarized below.
The model version struct is changed to an enum to distinguish between XML and Legacy file formats. #12
The links in the documentation have been updated to point to the new VTK file format documentation. #13
Files generated by pygmsh or meshio can now be recognized by vtkio. Thanks to @2pt0 for providing the issue and example script for generating test files. #21
Updated the legacy parser to work with offsets and connectivity arrays. This allows new v5 legacy formats to be accepted by vtkio.
Enabled support for different integer types for storing cell types. Now cell types can be specified as Int64.
Updated default header_type to UInt32 which is consistent with how ParaView interprets XML files without header_type specified.
Implemented compression support for individual (inline) DataArrays.
In the process of addressing #21 and #23 , the compression and decompression algorithms were fixed and updated to closer resemble those in VTK. Furthermore, decompression now happens in parallel (feature enabled by default), which would only be noticeable in very large files.
The library is updated to rust edition 2021
TODO:
[ ] Rework support for binary blobs in quick-xml to have vtkio work with future versions of quick-xml. The current implementation is more of a hack and has some serious limitations, which cannot make it upstream.
[ ] Update changelog with API changes in release 0.7
This PR Includes a number of important bug fixes and updates summarized below.
struct
is changed to anenum
to distinguish between XML and Legacy file formats. #12pygmsh
ormeshio
can now be recognized byvtkio
. Thanks to @2pt0 for providing the issue and example script for generating test files. #21vtkio
.Int64
.header_type
toUInt32
which is consistent with how ParaView interprets XML files withoutheader_type
specified.DataArrays
.TODO:
vtkio
work with future versions of quick-xml. The current implementation is more of a hack and has some serious limitations, which cannot make it upstream.