image thumbnail

write BINARY VTK file for tetrahedral grid with scalar and vector data

version 1.0.0.0 (222 KB) by Shawn Walker
This writes a VTK file (in binary format) for an unstructured tetrahedral mesh, including point data

213 Downloads

Updated 04 Jul 2016

View License

I wrote this because the other VTK writing files on the file exchange either do not do binary format, or they could not do *both* the mesh and the point data in binary format. So I wrote this. You can easily modify it to write 2-D unstructured triangle meshes, for instance.
There is also a test script you can run. Note: you need another program to view the .vtk file, e.g. Paraview.

Cite As

Shawn Walker (2021). write BINARY VTK file for tetrahedral grid with scalar and vector data (https://www.mathworks.com/matlabcentral/fileexchange/58002-write-binary-vtk-file-for-tetrahedral-grid-with-scalar-and-vector-data), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!