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

Write To Vtk and Write Vtk inspired this file.

Required Products MATLAB
MATLAB release MATLAB 7.12 (R2011a)
Tags for This File  
Everyone's Tags
data export, export, save, visualization(2), vtk
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Nov 2012 Romain W

Hi Daniel, would it be possible to have more details about the input?

Contact us