AMF - Maple Help

AMF (.amf) File Format

AMF file format

Description

 • AMF (Additive Manufacturing File Format) is a file format for describing objects for applications such as computer-aided design 3-D printing.
 • Both plottools[exportplot] and Export can be used to export a 3-D plot to the AMF format.
 • Both plottools[importplot] and Import can be used to import data from an AMF file.

Details

 • When exporting a 3-D plot to AMF, 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.
 • When importing from AMF, note that currently only flat triangle volume elements are supported.

Notes

 • Content-Type: application/x-amf

Examples

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

 > $\mathrm{Import}\left("example/dodecahedron.zip.amf",\mathrm{base}=\mathrm{datadir}\right)$

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

 > $\mathrm{knot}≔\mathrm{algcurves}\left[\mathrm{plot_knot}\right]\left(\left(-{x}^{7}+{y}^{3}\right)\left(-2{x}^{5}+{y}^{2}\right),x,y,\mathrm{\epsilon }=0.8,\mathrm{radius}=0.1,\mathrm{tubepoints}=9\right):$
 > $\mathrm{Export}\left("knot.amf",\mathrm{knot},\mathrm{base}=\mathrm{homedir}\right)$
 ${594433}$ (1)