-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTK XML export #1
Comments
It's definitely of interest. What also would be interesting is to integrate the mesh type that you're using! Best, |
Well, I don't like the mesh format I use right now and I am actively looking to change it. I've been looking at two representations in particular. The first and a bit simpler by Logg: @mauro3 has started implementing it here but it is a bit unfinished: He said on the mailing list that he might continue it at some point. There is also a more advanced one, which is used by PETSC: From what I know JFinEALE only supports exopot to the older VTK legacy format which is simpler but only supports ASCII. VTKXML supports some more advanced features like binary data and compression. WriteVTK is quite similar to what I have written but it doesn't seem to support unstructured meshes? Regarding the HomogeneousMesh type, if I want to convert a heterogeneous mesh to it (for example one that contains both triangles and rectangles), should I make two separate HomogeneousMeshes, one with the triangles and one with the squares? |
For the GPU, everything must be converted to triangles in the end, and one 2015-05-01 16:33 GMT+02:00 Kristoffer Carlsson [email protected]:
|
Ok, makes sense. VTK has this notion of CellData and PointData. CellData are values defined on a cell, for example a triangle, where PointData is defined on the vertices of a cell. Do you plan on having such a distinction? I guess it is not strictly needed since you can convert CellData to PointData by taking the average of the values in the cells surrounding a point. |
I remember that I found the Sieve paper hard to understand (i.e. I did not understand it), thus I went for the Logg-mesh. Just as a datapoint: in my application I need to be able to separately display values on edges and PointData. |
I would need to know, what the difference in the visualization is. Than I need to know, if there are datatypes that represent this difference, while being able to directly translate into OpenGL calls. |
Hi, I'm the author of WriteVTK.jl. The code currently only supports writing VTK StructuredGrid files (.vts) and multiblock files (.vtm). The files are written in XML format (using LightXML as well), and data can be compressed with Zlib. I guess it wouldn't be too difficult to add support for unstructured grids though. |
Awesome =) Well, I will clean up the FileIO api a little, today or tomorrow... You should probably wait for this! |
I will address ambiguities of file endings, and a cleaner architecture. |
well I guess, one could just try to start porting this... Refactoring won't be huge, and the biggest bit of work will be, to guarantee that all mesh loaders have the same functionality, like just parsing the wanted attributes, already in the correct format (Like described in the MeshIO readme). |
I have written code for VTKXML-export for my finite element simulations in Julia. It should not be too hard to adapt them to work for this mesh type.
Would that be of interest?
I will probably not write a VTK reader since, from what I know, VTK is almost exclusively used for post processing.
In my code I use the LightXML package for the XML stuff and Zlib for the compression. Maybe it is undesireable to have these two as required packages?
Comments?
The text was updated successfully, but these errors were encountered: