stlwrite - write ASCII or Binary STL files
Export a variety of inputs (patch, surface) to an STL triangular mesh
** Big speed boost courtesy of Oliver Woodford. Recommended to update to latest version ** stlwrite(FILE, FV) writes a stereolithography (STL) file to FILE for a triangulated patch defined by
- 30.5K (All time)
- 35 (Last 30 days)
- 4.9 / 5
- Community
-
4 May 2018
STLREAD imports geometry from a binary stereolithography (STL) file into MATLAB.
In addition to the STLREAD import function, this submission also includes a small demo that loads an STL model of a human femur bone.FV = STLREAD(FILENAME) imports triangular faces from the binary
- 40.4K (All time)
- 27 (Last 30 days)
- 4.7 / 5
- Community
-
20 Jul 2011
Write STL file from surface data.
SURF2STL Write STL file from surface data. SURF2STL('filename',X,Y,Z) writes a stereolithography (STL) file for a surface with geometry defined by three matrix arguments, X, Y and Z. X, Y
- 26.5K (All time)
- 34 (Last 30 days)
- 4.6 / 5
- Community
-
24 Feb 2004
An efficient and fully-featured legacy-compatible STL encoder and decoder, along with other assorted tools.
I figured that if I was going to nitpick every STL tool on the FEX, it's only fair that I at least put my own questionable work on the table. So that's the core of this mini-toolbox. Both the
- 29 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
12 Jan 2026
Converting a 3D logical array into an STL surface mesh
Conversion of a voxelised object contained within a 3D logical array into an STL surface mesh.
Converting a 3D logical array into an STL surface mesh====================================================== Adam H. Aitkenhead adam.aitkenhead@christie.nhs.uk The Christie NHS Foundation Trust 24th
- 5.5K (All time)
- 2 (Last 30 days)
- 4.9 / 5
- Community
-
9 Jul 2012
Lattice generator program in STL format for additive manufacturing
The Lattice Generator is a simple MatLab program that automatically generates various lattice geometries direct to STL format. These periodic structures are intended for use with the metallic
- 5.2K (All time)
- 16 (Last 30 days)
- 5.0 / 5
- Community
-
27 Jan 2015
This binary STL file reader is much faster than the existing readers.
This function is used for loading binary STL files.There are already two stlread.m files available on the mathworks file exchange site. Harlev's version reads in the data and returns matrices with
- 9.7K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
4 Jan 2011
Make STL of 3D array (Optimal for 3d printing)
make_STL_of_Array Convert a voxelized object contained within a 3D logical array into an STL surface mesh, It's optimal for 3D printing.
make_STL_of_Array Convert a voxelized object contained within a 3D logical array into an STL surface mesh, It's optimal for 3D printing because of the number of faces in final STL is as low as
- 2.4K (All time)
- 5 (Last 30 days)
- 4.9 / 5
- Community
-
13 Sep 2018
This is a collection of functions, samples and demos to illustrate how to deal with STL files
The 'stlTools' toolbox is a collection of functions, samples and demos to illustrate how to deal with STL files. Some of them are contributions published in Matlab Central and properly referenced
- 9.2K (All time)
- 7 (Last 30 days)
- 5.0 / 5
- Community
-
20 Oct 2017
Write STL file from surface data.
%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
- 228 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
28 May 2024
Read STL file into MATLAB patch compatible matrixes.
This function reads a binary SPL file into X, Y, Z, C matrixes compatible with the MATLAB patch function.See, http://rpdrc.ic.polyu.edu.hk/old_files/stl_binary_format.htm , for more information on
- 10.1K (All time)
- 5 (Last 30 days)
- 4.8 / 5
- Community
-
7 Jan 2005
Function for importing and plotting STL files in MATLAB
This file will import and plot ASCII STL file in MATLAB.
- 4.6K (All time)
- 2 (Last 30 days)
- 3.5 / 5
- Community
-
23 May 2013
Matlab classes for computing forward kinematics and inverse kinematics of a UR5 robot along with a class for visualizing it
https://www.mathworks.com/matlabcentral/fileexchange/38964-example-matlab-class-wrapper-for-a-c-class2) stlTools by Pau Micóhttps://www.mathworks.com/matlabcentral/fileexchange/51200-stltools?focused=3878420&tab=function3) universal_robot package by Kelsey Hawkins (kphawkins@gatech.edu
- 947 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
30 Jan 2019
- 4K (All time)
- 29 (Last 30 days)
- 5.0 / 5
- Community
-
15 Jul 2024
Converts COMSOL geometry object from geometry files or workspace to stl-file
COMSOL, reimporting did work.Hope this helps anyone.%%%%%MPH2STL(infile,outfile) loads the mphbin/mphtxt-file, plots it and calls Raw2stl to save the stl file. Plotting is essential because the
- 2.1K (All time)
- 2 (Last 30 days)
- 4.5 / 5
- Community
-
5 Apr 2007
Design Oriented Trebuchet Model with SimMechanics
Advanced trebuchet model that predicts dynamic performance based on design changes.
- 1.9K (All time)
- 12 (Last 30 days)
- 5.0 / 5
- Community
-
26 Feb 2016
This is a tool to export 3D graphics from a Tri_Surface file to an ASCII STL file.
Before the export, the Tri_Surface file can be used in Matlab for visualization, some calculations or modifications. Thereafter, the datafor further processing often re-used in the STL
- 2.2K (All time)
- 1 (Last 30 days)
- 4.7 / 5
- Community
-
29 Jun 2009
Function to import .stl geometry model files into matlab.
This version is currently ASCII only but future revisions will support binary. This function is based off of Luigi Giaccari's STL importer but uses the textscan function to dramatically increase
- 3.8K (All time)
- 1 (Last 30 days)
- 4.1 / 5
- Community
-
31 Mar 2011
Export objects described in a logical matrix, label matrix or voxel list to STL and PovRay mesh2.
Export Voxel Data===================This submission allows to export multiple objects described in logical matrix, label matrix or voxel list data to STL and PovRay mesh2 format.Mesh can be
- 2.1K (All time)
- 2 (Last 30 days)
- 4.9 / 5
- Community
-
27 Oct 2017
File for reading a stl file in MATLAB
Get information in MATLAB about a STL file. Use it as,[F, V, N] = read_stl_file('myfile.stl');where F are "faces", V are "vertices" and N are "normals".The object can be plotted with,p = patch('Faces
- 514 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
29 Oct 2015
read_binary_stl_file(filename)
a very fast binary stl file reader.
reads stl files in very short time. does not read color.reads binary file and returns triangle nodes as n*3 matrix , vertices as 3n*3 matrix and normals as n*3 matrixtriangles can be plotted using
- 252 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
29 Mar 2017
CLUMP: Code Library to generate Multi-sphere Particles
Generation and shape characterisation of multi-sphere particles
triangulated mesh and saved as an stl file, allowing for a full characterisation of particle morphology, using tools like SHAPE or 3D-printing of physical particle replicas. CLUMP was initially developed in
- 174 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
28 Jun 2024
Computation of craniofacial symmetry
Computation of 3D symmetry plane of a triangulated model
Jakob Wilm and that can be found in:http://mathworks.com/matlabcentral/fileexchange/27804-iterative-closest-pointAnd the stlTools provided by Pau Micó for STL input and output that can be found
- 1.1K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
5 Jun 2019
Laser Cut Slicer in MATLAB / Porsche 917K
Laser Cut Slicer in MATLAB / Porsche 917KThis MATLAB code helps you to realize a 3d object with stacked laser cut plates:Extract the intersection of a 3d STL object and a cut plane, visualize, and
- 180 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
4 Nov 2021
- 1.7K (All time)
- 14 (Last 30 days)
- 5.0 / 5
- Community
-
28 Jun 2022
STL to FACET model geometry file converter
This script imports an STL file and writes a .facet file commonly used by Xpatch, etc.
This file uses import_stl_fast to pull in model geometry and write an appropriate .facet file. If you require the ability to import binary stl files, import_stl_fast can be replaced with another
- 1.4K (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
31 Mar 2011
3D CAD data to MATLAB Converter, CAD STL to MATLAB Patch.
4 samples.To get CAD data into MATLAB, the process is:1) Export the 3D CAD data as an ASCII STL (or Pro/E render SLP) file.2) This MATLAB routine reads the CAD data, and 3) Once read, the CAD data is
- 21.9K (All time)
- 2 (Last 30 days)
- 4.7 / 5
- Community
-
25 Jun 2003
A playable demo of Super Mario Bros. World 1-1 with background music
you see up there is an ACTUAL screenshot of this demo.----------Installation ------------Regular Version: Put stl_mario_main.m and two .mat files under the same folder. Run stl
- 27.3K (All time)
- 27 (Last 30 days)
- 4.9 / 5
- Community
-
22 Apr 2013
Stellaria (Tech Demo) - The best MATLAB shooting game ever
If you think you have played the best MATLAB game before. Think again after you try this one.
subfolders in the search path list.!Run stl_StellariaMain to play!Gameplay--------Stellaria is just like the arcade shoot-em-up you have played before, except for the sad music.Stellaria supports two
- 12K (All time)
- 10 (Last 30 days)
- 4.8 / 5
- Community
-
25 Sep 2012
- 991 (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
30 Jul 2024
slice_stl_create_path(triangles,slice_height)
slice stl files and create continuous contour along the slices
This contains the matlab files to slice a stl file and create a continuous contour along which the machine can move for deposition for 3D printing. The main file is slice_stl_create.mThe supporting
- 3.4K (All time)
- 3 (Last 30 days)
- 4.8 / 5
- Community
-
13 May 2021
Numerical simulation tool for Monte Carlo propagation of light in turbid media
media are referred to by a number, corresponding to the "j" defined in "mediaPropertiesFunc" at the end of the model file.You may optionally import your geometry from STL files as shown in example
- 858 (All time)
- 8 (Last 30 days)
- 5.0 / 5
- Community
-
16 Jun 2024
MP3 a medical imaging toolbox (MRI, CT, PET...)
Medical software for Processing multi-Parametric images Pipelines
- 1.3K (All time)
- 17 (Last 30 days)
- 5.0 / 5
- Community
-
18 Aug 2023
- 895 (All time)
- 7 (Last 30 days)
- 5.0 / 5
- Community
-
20 May 2023
Montalvo Models, Simulations and Scripts
This is my public repo of all my MATLAB Screen cast codes and other random codes written in MATLAB
- 1.4K (All time)
- 9 (Last 30 days)
- 5.0 / 5
- Community
-
30 Jun 2023
c++ mex function for writing ASCII stl file from nodes and triangles list
Matlab functions for writing and reading textual files are lacking in speed. Here is c++ implementation for simple writing ASCII stl files from Matlab with reasonable speed for data up to 250k nodes
- 529 (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
3 May 2013
Generate U3D files from STL models for making multilayer 3D PDF figures
Conversion of meshes into U3D files for making multilayer 3D PDF figures with transparency.
- 1.7K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
13 May 2011
Bifurcation analysis of dynamical systems. Integration of AUTO bifurcation software into MATLAB.
- 6.9K (All time)
- 9 (Last 30 days)
- 4.9 / 5
- Community
-
13 Jul 2011
Optometrika MATLAB library implements analytical and iterative ray tracing approximation to optical image formation using Snell’s and Fresne
lens with astigmatism (different vertical and horizontal radii of curvature)example15.m: simulates a hexagonal array of spherical micro lensesexample16.m: demonstrates STL export of various lenses
- 11.8K (All time)
- 10 (Last 30 days)
- 4.8 / 5
- Community
-
18 Jan 2022
Update of the stlread function by Francis Esmonde-White to properly implement color reading.
This function is used for loading binary STL files.There are already two stlread.m files available on the mathworks file exchange site. Harlev's version reads in the data and returns matrices with
- 1.3K (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
18 May 2012
【Light Version 】Matlab STL GUI slice program
Transform 3D STL file (StereoLithography) into 2D series BMP files.
DIY 自製 Matlab STL GUI 轉檔slice程式為了紀念母親節,第一次自行設計Matlab GUI程式,STL轉擋切圖,破天荒免費分享給有需要的人XD,主要跟3D列印有相關的人可能會使用。 https://www.youtube.com/watch?v=L-PJxcc50V8 【To commemorate Mother's Day 】 ● This is my first
- 1.1K (All time)
- 6 (Last 30 days)
- 5.0 / 5
- Community
-
16 Nov 2017
- 1.3K (All time)
- 13 (Last 30 days)
- 5.0 / 5
- Community
-
16 Jul 2024
AMebius-slicer(STL slicer, gcode generator for 3D print)
A stl files slicer to generate gcode file for real printing
AM slicer can generate gcode from STL file, you can define printer parameters, and some print settings This is only a basic version, the slicer has passed the actual printing test, and has built in
- 678 (All time)
- 4 (Last 30 days)
- 5.0 / 5
- Community
-
13 Jun 2021
- 9.4K (All time)
- 56 (Last 30 days)
- 5.0 / 5
- Community
-
22 Oct 2022
- 824 (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
17 Sep 2021
Convert an STL file into ACIS SAT, which can be more readily imported into various CAD packages.
STL to ACIS SAT converter=========================Adam H. Aitkenhead31st March 2010Convert an STL file into an ACIS v4.0 SAT file (Standard ACIS Text), which can be more readily imported into various
- 4.8K (All time)
- 1 (Last 30 days)
- 4.6 / 5
- Community
-
6 Jun 2012
POFACETS calculates the monostatic or bistatic radar cross section (RCS) of meshed targets.
- 2.6K (All time)
- 27 (Last 30 days)
- 5.0 / 5
- Community
-
17 Feb 2023
Useful functions for geometry processing, constrainted optimization and image processing.
(.obj,.off,.stl,.wrl,.ply,.mesh,.node,.ele,.poly,.smf,.bdl,.face) - discrete differential geometry operators for triangle and tetrahedral meshes (cotangent Laplacian, gradient, divergence) - quadratic programming, active set solver - scribble-based image
- 9.6K (All time)
- 16 (Last 30 days)
- 4.3 / 5
- Community
-
22 Jul 2024
- 23K (All time)
- 23 (Last 30 days)
- 4.3 / 5
- Community
-
27 Oct 2020
Microscopy Image Browser (MIB)
MIB is a package for segmentation of multi-dimensional (2D-4D) microscopy datasets
- 1.3K (All time)
- 10 (Last 30 days)
- 5.0 / 5
- Community
-
9 Feb 2019
Robotics Playground Expansion Pack
A collection of robot models and environments for mobile robotics and manipulation.
- 1.3K (All time)
- 3 (Last 30 days)
- 5.0 / 5
- Community
-
11 Sep 2020
Find the per-vertex normals for a tesselated surface.
- 1.2K (All time)
- 2 (Last 30 days)
- 4.5 / 5
- Community
-
11 Oct 2011
Six-wheeled electrically-driven rover that navigates uneven terrain to retrieve a sample.
- 834 (All time)
- 15 (Last 30 days)
- 5.0 / 5
- Community
-
18 May 2026
Volume of a surface triangulation
Given a surface triangulation, compute the volume enclosed using divergence theorem.
- 3.2K (All time)
- 3 (Last 30 days)
- 3.9 / 5
- Community
-
17 Mar 2010
This a mexified MATLAB wrapper of C++ STL priority queue
This a mexified MATLAB wrapper of C++ STL priority queueThis priority queue implementation is simple. Nevertheless, it can be used to keep a "sorted" list of arbitrary objects. Instead of pushing the
- 190 (All time)
- 2 (Last 30 days)
- 5.0 / 5
- Community
-
31 Jan 2019
3D Finite Element Analysis with MATLAB
These are the MATLAB examples used in the '3D Finite Element Analysis with MATLAB' webinar
- 8.1K (All time)
- 8 (Last 30 days)
- 4.1 / 5
- Community
-
1 Sep 2016
Plot real 3d arrows from .stl file. Similar to quiver
h=vector3d(X,Y,Z,U,V,W,'Property','Value',...) Plot 3d vectors (real 3d) from .stl file to specified location and direction. basically same usage as quiver3. Property/value pairs are passed to
- 1.3K (All time)
- 1 (Last 30 days)
- 5.0 / 5
- Community
-
22 Nov 2010
stlwrite - Write binary or ascii STL file
This is an update to the excellent work done by Sven Holcombe to add color support
STLWRITE(FILE,fv) writes a stereolithography (STL) file to FILE for a triangulated patch defined by FV (a structure with fields 'vertices' and 'faces'). STLWRITE(FILE,FACES,VERTICES) takes faces
- 2.4K (All time)
- 4 (Last 30 days)
- 3.4 / 5
- Community
-
18 May 2012
C/C++ and Matlab types convertor
Bidirectional conversion between C/C++ type (STL, openCV) and Matlab matrix (compile or run time)
Title: C/C++ <-> Matlab types convertorBrief: Bidirectional conversion between C/C++ types (native, STL, openCV...) and Matlab matrix (compile or run time).Key words: C, C++, mxArray, OpenCV
- 7K (All time)
- 2 (Last 30 days)
- 4.2 / 5
- Community
-
29 Oct 2013
Hybrid position and force control of a 3 Dof industrial robot simulation in Matlab/Simulink.
- 150 (All time)
- 5 (Last 30 days)
- -- / 5
- Community
-
4 Mar 2024