surf2stl

version 1.0.0.1 (1.88 KB) by Lateef Adewale Kareem
Write STL file from surface data.

42 Downloads

Updated Sat, 10 Sep 2022 12:14:24 +0000

View License

%SURF2STL Write STL file from surface data.
% SURF2STL(surfhandle, 'filename') writes a stereolithography (STL) file
% for a surface with the given handle surfhandle. It eliminate triangles
% with zero area.
%
% SURF2STL(...,'mode') may be used to specify the output format.
%
% 'binary' - writes in STL binary format (default)
% 'ascii' - writes in STL ASCII format
%
% Example:
% [X, Y, Z] = peaks;
% s = surf(X, Y, Z);
% surf2stl(s, 'test.stl');
% See also SURF.

Cite As

Lateef Adewale Kareem (2022). surf2stl (https://www.mathworks.com/matlabcentral/fileexchange/117400-surf2stl), MATLAB Central File Exchange. Retrieved .

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!