Code covered by the BSD License  

Highlights from
Write Cell Array of Structs into a VTK Structured Grid

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 3.35 KB File ID: #34738
image thumbnail

Write Cell Array of Structs into a VTK Structured Grid

by Daniel Hornung

 

23 Jan 2012

Takes a 3D cell array with (nested) structs and exports it as a VTK structured grid.

| Watch this File

File Information
Description

Each cell of the input cell array must be a struct, possibly nested, and for each point of the input, three properties (or alternatively the cell array indices) are used as VTK coordinates. An arbitrary number of properties are used as values of these points.

The resulting VTK file (which is in ascii encoding) can then be opened and viewed with VTK compatible applications, e.g. ParaView.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
WriteToVTK, writeVTK

Required Products MATLAB
MATLAB release MATLAB 7.12 (2011a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
vtk Daniel Hornung 23 Jan 2012 08:50:14
data export Daniel Hornung 23 Jan 2012 08:50:14
export Daniel Hornung 23 Jan 2012 08:50:14
save Daniel Hornung 23 Jan 2012 08:50:14
visualization Daniel Hornung 23 Jan 2012 08:50:14

Contact us at files@mathworks.com