WriteVTK.jl icon indicating copy to clipboard operation
WriteVTK.jl copied to clipboard

Integration with Meshes.jl

Open SimonDanisch opened this issue 9 years ago • 5 comments

Hi, would you be interested to port this to MeshIO? MeshIO hopefully will become a standardized library for, well, Mesh IO. Advantages will be, that everyone uses the same types, making it a lot easier to visualize the meshes. In GLVisualize I'm already able to visualize most of the mesh formats that live in MeshIO. Integrating this basically means implementing the interface from FileIO and using the mesh types from MeshIO (or adding new ones if needed). See issue JuliaIO/MeshIO#1 for a discussion about the VTK format. You might also be interested in JuliaGeometry/meta#3

Best, Simon

SimonDanisch avatar May 01 '15 07:05 SimonDanisch

Hey, I'd be glad to help adding support for VTK to MeshIO. I'm not sure if the use case of MeshIO is the same, but I can definitely help creating a VTK XML interface. Maybe MeshIO can be extended later to support attaching data to the meshes, for data visualisation purposes.

jipolanco avatar May 01 '15 15:05 jipolanco

I did not see this conversation before I put my W.I.P PR version of the VTK exporter for MeshIO. I am fine if mine gets replaced if you decide to make one.

KristofferC avatar May 06 '15 10:05 KristofferC

No worries! To be honest, I don't have a lot of time right now to contribute to MeshIO. Your WIP looks good to me, and I'll probably add some stuff to it later if I feel that something is missing. For example, I can help with adding support for files with raw binary data (not base64-encoded), which needs to be appended at the end of the XML file.

jipolanco avatar May 06 '15 12:05 jipolanco

Okay.

Btw, I saw your hack for putting raw binary into the file. Nice :). It is quite annoying that you can't just write_binary or something but then again XML is not really supposed to hold binary data in the first place.

KristofferC avatar May 06 '15 12:05 KristofferC

Hehe yeah, I was kind of forced to do that :)

jipolanco avatar May 06 '15 12:05 jipolanco