STL - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


STL (.stl) File Format

STL: Stereolithography file

 

Description

Details

Notes

Examples

Description

• 

STL (Stereolithography) is a file format for computer-aided design and modeling.

• 

It represents geometric data as a set of 3-D triangles and surface normals. The standard STL format does not support face colors or textures.

• 

This format has both text-based and binary variants.

• 

The plottools[importplot] and plottools[exportplot] commands can be used for data exchange between this format and Maple 3-D plots. Both the text-based and binary variants are fully supported.

• 

The general-purpose commands Import and Export also support this format. By default, the Import command returns a plot. With the option output=triangles, Import returns a DataFrame with the coordinate data for all triangles in the source file.

Details

• 

When exporting a 3-D plot to STL, note that because of the limitations of the format, only GRID, MESH, and POLYGONS plot structures will be exported. All other plot data (for example CURVES or POINTS structures) will be ignored for the purposes of exporting.

• 

With both the plottools[exportplot] and Export commands, you can specify whether the text-based or binary format should be used by including encoding=text or encoding=binary, respectively.

Notes

• 

Content-Type: application/sla

Examples

Import a geometric object from an STL file as a 3-D plot

Importexample/dodecahedron.stl,base=datadir

Import only the point data from this geometric object.

Importexample/dodecahedron.stl,base=datadir,output=triangles

Export a 3-D plot to a binary STL file in the home directory of the current user.

knotalgcurvesplot_knotx7+y32x5+y2,x,y,ε=0.8,radius=0.1,tubepoints=9:

Exportknot.stl,knot,base=homedir

238484

(1)

Do the same as the previous step, but produce a text-based STL file.

Exportknot-text.stl,knot,base=homedir,encoding=text

1296957

(2)

See Also

Formats