Code covered by the BSD License  

Highlights from
Fast STL import function

4.0 | 4 ratings Rate this file 38 Downloads (last 30 days) File Size: 2.16 KB File ID: #30923

Fast STL import function


Eric Trautmann


Function to import .stl geometry model files into matlab.

| Watch this File

File Information

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 speed, which makes a significant difference for large files.

MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
02 Nov 2014 Fritz


@Pierrick Bersier: I'm getting the same error.

Comment only
06 Sep 2014 Pierrick Bersier

Pierrick Bersier

When I try to load my STL with that script, I get every time the same error. an sombody help ?

Subscript indices must either be real positive integers or logicals.

Error in import_stl_fast (line 59)
if (C{4}(end)== NaN)

Comment only
05 Jan 2014 Ilkay Meseli

Ilkay Meseli

28 Aug 2013 Emmanuel Farhi

Emmanuel Farhi

Works OK for ASCII STL files. Thanks.

08 Apr 2013 Christian Kotz

Christian Kotz

19 Apr 2012 Morteza Shahpari

Morteza Shahpari

05 Apr 2011 Eric Trautmann

Eric Trautmann

If any current users are interested in a binary stl import, please let me know.

Comment only

Contact us