VTKSurf


This is the page of VTKSurf, a small function I wrote for Octave to export vtk files from matrices, and create beautiful mesh plots. Use it and be happy! This was the last thing I needed for dropping Matlab for good (there are some useful tollboxes yet, of course...).

Try to compile it with makeoctfile, and tell me if anything goes wrong!...

The mayavi function calls MayaVi from within octave to open a specific vtk file. The vtksurf function generates a vtk file from a matrix and smayavi just calls vtksurf, writes the output to a temporary file and calls up mayavi.

vtksurf-0.3 ( :) ) [.tar.gz]
vtksurf-0.1 ( :Q ) [.tar.gz]

...And here is a picture of the moment it worked! =)

USAGE EXAMPLE:
oct>dom=[-1:0.1:1]*2*pi;
oct>[xx,yy]=meshdom(dom,dom);
oct> vtksurf('cos2.vtk',cos(xx.+yy));
oct> mayavi('cos2.vtk');

oct> smayavi(cos(xx).*cos(yy), -2*pi, -2*pi, 2*pi, 2*pi );
Nicolau L. Werneck <nwerneck@cefala.org>
Fri, 11 Ago 2003 17:40:32 -0300