4.0

4.0 | 3 ratings Rate this file 74 downloads (last 30 days) File Size: 2.52 KB File ID: #22409

STL File Reader

by Eric Johnson

 

11 Dec 2008

Code covered by BSD License  

STLREAD imports geometry from a binary stereolithography (STL) file into MATLAB

Download Now | Watch this File

File Information
Description

FV = STLREAD(FILENAME) imports triangular faces from the binary STL file
indicated by FILENAME, and returns the patch struct FV, with fields 'faces'
and 'vertices'.

[F,V] = STLREAD(FILENAME) returns the faces F and vertices V separately.

[F,V,N] = STLREAD(FILENAME) also returns the face normal vectors.

The faces and vertices are arranged in the format used by the PATCH plot
object.

MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files license.txt,
stlread.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
12 Dec 2008 alain boyer  
16 Jan 2009 Jveer

very useful!

can the vertices and faces be arranged such that they can be used with surf??

textures cannot be applied to patch objects. surf is more useful.

22 Jan 2009 Luigi Giaccari

Very useful for binary filesl but do not support ascii format

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Cristina McIntire 12 Dec 2008 15:00:57
data export Cristina McIntire 12 Dec 2008 15:00:57
geometry Cristina McIntire 12 Dec 2008 15:00:57
geometry Eric Johnson 12 Dec 2008 15:01:10
stereolithography Eric Johnson 12 Dec 2008 15:01:10
cad Eric Johnson 12 Dec 2008 15:01:10
stl Eric Johnson 12 Dec 2008 15:01:10
triangle mesh Eric Johnson 12 Dec 2008 15:01:10
faces Eric Johnson 12 Dec 2008 15:01:10
vertices Eric Johnson 12 Dec 2008 15:01:10
patch Eric Johnson 12 Dec 2008 15:01:10
data import Eric Johnson 12 Dec 2008 15:01:10
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com