Closed MaygurovMV closed 1 year ago
Thank you for the issue!
Do you have a sample .vti
file I can use to test/debug this issue (preferably one with reduced size)?
It seems I haven't quite finished fixing that branch.
cloud.zip
I've attached zip with 2 vti
file (the smallest and biggest one) and 1 vtu file. It will need to represent plots in paraview.
the compressor in all files is Zlib. The Level of compression in all files is 9.
@MaygurovMV I have reworked the compression mechanism in release-0.7. Could you try your code with that branch and see if it is still causing an issue in paraview?
Hello, @elrnv.
Thanks for fast support. I can't try new features because I have problems with dependencies solving.
First error from cargo:
error: no matching package named `quick-xml` found location searched: https://github.com/elrnv/vtkio.git?branch=release-0.7#44da5dbd required by package `vtkio v0.7.0 (https://github.com/elrnv/vtkio.git?branch=release-0.7#44da5dbd)
I fixed it by manualy cloning your repository and quick-xml. But I've had another problem:
--> D:\Code\vtkio\src\xml\se.rs:8:21
|
8 | use quick_xml::{se::Write, DeError};
| ^^^^^ private trait
|
note: the trait Write is defined here
--> D:\Code\quick-xml\src\se\mod.rs:92:5
|
92 | use std::io::Write;
| ^^^^^^^^^^^^^^
error[E0603]: trait Write is private
--> D:\Code\vtkio\src\xml.rs:3602:53
|
3602 | pub fn write(&self, writer: impl quick_xml::se::Write) -> Result<()> {
| ^^^^^ private trait
|
note: the trait Write is defined here
--> D:\Code\quick-xml\src\se\mod.rs:92:5
|
92 | use std::io::Write;
| ^^^^^^^^^^^^^^
Now I'am sorting through versions of quick-xml to fix it. Could you tell me version of quick-xml that you used? Or maybe can you fix upstairs issues by yourself?
Thank you, that was my fault, I hadn't pushed my changes to quick-xml yet. I pushed them now, and updated the Cargo.toml dependency so it should work out of the box.
Edit: Also the changes to quick-xml are being upstreamed here
Thanks for operating support. All works more good than I could think of
Hello. Thanks for crate! I've had a issue when i'm using Paraview to overview compression
VTU
andVTI
file generated byvtkio
Example of VTI export code:If i'm using any type of compression
Zlib
,Lzma
orLz4
paraview has this issue.If I'm using
Compressor::None
there isn't issue and all is good but a size of file is too large for me.I tried to use
vtkio = {version = "0.6.3", git="https://github.com/elrnv/vtkio.git", branch="fix-pygmsh"}
branch because it commit message says:But, unfortunately, it's still doesn't work. Verison of Rust: rustc 1.66.1 Version of Paraview: 5.11.0