File Exchange

image thumbnail


version (12.1 KB) by Matthew Roughan
Conversion routines to take a surface and convert this into a solid.


Updated 09 Mar 2011

View License

Conversion routines to take a surface (a function z of (x,y) or (theta,r)) and convert this into a solid; much as meshz does, but a little more useful for outputting as an STL for frabrication in a 3D printer. There are two cases, one in Cartesian co-ordinates, and the other in polar co-ordinates. Plus two sets of examples to show how they are used.

Comments and Ratings (3)

Why do I have an error with the command surf2stl?

Undefined function 'surf2stl' for input arguments of type 'char'

Could you help me please...


If you create folders called "Plots" and "STL" then the error will go away. The error is due to matlab not finding those folders on your computer.


I have tried, even after downloading surf2stl, but gets the following message

??? Error using ==> print at 364
Cannot create output file 'Plots\surf2solid_polar_ex.png'

Error in ==> surf2solid_polar_ex at 23
print('-dpng', 'Plots/surf2solid_polar_ex.png');

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

Inspired by: surf2stl