Software Listing of Author : "Francis Esmonde-white"
- Binary STL file reader
- License: Shareware
- Price:


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 X/Y/Z formatted vertex data. Johnson's program reads in the data and returns Face/Vertex/Normal matrices. This submission also exports Face/Vertex/Normal matrices, but runs about 30 times faster than Johnson's version and 13 times faster than Harlev's version (which doesn't export face normal data). This submission will also properly read in color values (if present) and the STL file title. For more info (including timing info) see: http://www.esmonde-white.com/home/diversio...ading-stl-files
- Publisher: Francis Esmonde-White
- Date Released: 27-06-2013
- Download Size: 10 KB
- Download
- Platform: Matlab, Scripts
- Generate U3D files from STL models for making multilayer 3D PDF figures
- License: Shareware
- Price:


This submission is based on Alexandre Gramfort's "matlab-mesh-to-pdf-with-3d-interactive-object". His program allows meshes to be converted into 3D PDF figures. However, his code only allows a single layer to be converted, and does not enable transparency. The present submission does not create the final PDF. It generates the U3D file which can then be inserted into a PDF file using Adobe Acrobat Pro. This submission also allows multilayer meshes to be created, and for the transparency of each layer to be specified. This code includes a function (installGoogleArchive.m) which will automatically download and install binaries required to convert the intermediate data format (IDTF) file into the final Universal 3D (U3D) file. This code also only includes the windows version of the converter.
- Publisher: Francis Esmonde-White
- Date Released: 26-04-2013
- Download Size: 72 KB
- Download
- Platform: Matlab, Scripts
- Patch Slim (patchslim.m)
- License: Shareware
- Price:


Patchslim is used when loading matrices with stlread to reduce the vertex matrix size. Surface meshes often have duplicate vertices listed. This function parses the list of points and finds all vertices with duplicate entries in the 'v' (vertices) matrix. These points are removed and the 'f' (faces) matrix indices are set accordingly. This reduces the size of patch matrices, often by quite a bit. This program can take quite a while to run on very large meshes. I use this to shrink surface mesh sizes after loading them in with 'stlread.m', at http://www.mathworks.com/matlabcentral/fil...stl-file-reader . USAGE: [v, f]=patchslim(v, f) For more info, see: http://www.esmonde-white.com/home/diversio...ading-stl-files
- Publisher: Francis Esmonde-White
- Date Released: 24-04-2013
- Download Size: 10 KB
- Download
- Platform: PHP, Scripts
