File Exchange

image thumbnail

Export 3D line to Paraview

version (1.75 KB) by David Gingras
Function to export a 3D line to a VTK format which can be open with Paraview.


Updated 06 Jan 2009

View License

Here it goes a simple solution to export a 3D polyline from Matlab to Paraview (a powerful and free 3D viewer). The function takes a list of 3D coordinates and generates an ASCII VTK file with it.

Simple of use, the function has an example in the comments of the header.

Comments and Ratings (2)

Export a single line to a VTK set of points. Good job.

Adam Pilchak

perfect timing. writing a script to transform to vtkdata for reading in paraview was on the to-do list tonight. thanks!

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

MATLAB Online Live Editor Challenge

View the winning live scripts from faculty and students who participated in the recent challenge.

Learn more

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video