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

This writes a VTK file (in binary format) for an unstructured tetrahedral mesh, including point data
260 Downloads
Updated 4 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 (2024). 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
Categories
Find more on Triangulation Representation in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0