[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] binary VTKs

From: Andriy Andreykiv
Subject: Re: [Getfem-users] binary VTKs
Date: Wed, 26 Jul 2017 14:57:07 +0200

Dear Kostas,

I managed to find the problem with binary vtks on Windows. It was very simple, of course. For binary output the stream had to be set to binary.
It works now. If i remember correctly you have the power to merge branches. So, please review my "fixing_binary_vtk_export" branch
and merge it into the master.
Thank you again for your help.

Best regards, A.

On 24 July 2017 at 16:35, Andriy Andreykiv <address@hidden> wrote:
That's a good idea. I just ran it and now see some small differences.
Will be trying to understand what goes wrong.
Thank you again, Kostas !!!

On 24 July 2017 at 16:25, Konstantinos Poulios <address@hidden> wrote:
Well, I was thinking that you could try to do a binary diff between my mesh_binary.vtk and the one created with run on Windows. If you need it I can send you the corresponding vtk files also with only one element to make it even simpler.


On Mon, Jul 24, 2017 at 4:20 PM, Andriy Andreykiv <address@hidden> wrote:
Thanks Kostas. Well, this is how I was writing the files up till now, but only ASCII. The ASCII's were always fine, BTW.

Thanks, regards,

On 24 July 2017 at 16:02, Konstantinos Poulios <address@hidden> wrote:
Interesting. In the attachment you can find some minimal example to do some testing with.


On Mon, Jul 24, 2017 at 3:28 PM, Andriy Andreykiv <address@hidden> wrote:
Hi Kostas,

Thank you. They all work!!!
I'll have to think where to go from here.
My binary files do look similar (in the attachment) with some cosmetic differences.
I also debugged them to check if endian conversion was triggered and it was.

If I don't figure it out, I'll have to take the big guns, like using the API from VTK.
But that's a bit of work.

Thank you again, 

On 24 July 2017 at 15:16, Konstantinos Poulios <address@hidden> wrote:
Dear Andriy,

I was actually thinking the same. The first thing to try is of course to see if the files that work on linux do also work in the windows version of ParaView. I do not have access to ParaView on Windows right now so I am sending you some sample files for you to test, as you asked. I am also sending you a vtu file (converted from vtk) to see if that works.


On Mon, Jul 24, 2017 at 2:45 PM, Andriy Andreykiv <address@hidden> wrote:
Dear Konstantinos,

May I kindly ask you to send me any of your binary VTKs, so that I could try to open them with Paraview on Windows.
I"m very curious if it works. Still cannot figure out how to make it work on Windows.

Thank you in advance,

On 21 July 2017 at 10:53, Konstantinos Poulios <address@hidden> wrote:
Hi all,

I use almost exclusively binary vtk for everything that I export from GetFEM. I have experienced no issues with that on Linux with Paraview up to version 5. Do you experience problems on both Windows and Linux?

In addition to that I use the attached script to convert the binary vtk to compressed vtu files which saves some extra space.


On Thu, Jul 20, 2017 at 8:35 PM, franz chouly <address@hidden> wrote:
Dear Andriy, dear all,

I'm trying to write binary VTK files with Getfem. Unfortunately the latest ParaView cannot read them.
It doesn't issue an error, just the result is rubbish.  I was carefully looking at all those issues with big endian,
needed for binary VTK, Getfem seems to be doing the right job (if you look at the source), but no success.
Did anybody succeed in reading binary VTK's produced with Getfem into ParaView?
No, but I had the same problem as you ! And I am as well interested if someone has some clues.

Thank you,
Best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]