Introduction
AMF is an XML format for 3D printing, standardised by ASTM in 2011 and later as ISO/ASTM 52915. It was meant to replace STL: as well as triangles it records units, several objects, materials, colours, and a layout of objects on the build plate. Unlike STL, a mesh lists each vertex once and the triangles refer to it.
AMF saw little adoption. The industry largely moved to 3MF instead, though some slicers still read AMF.
Structure
The root element is amf, with a unit attribute such as
millimeter. Each object holds a mesh, which has
one vertices list and one or more volume elements made of
triangles that refer to vertices by index. A volume can name a
material, and constellation elements place copies of
objects. The file may be stored inside a ZIP archive to save space.
<amf unit="millimeter">
<object id="1">
<mesh>
<vertices>
<vertex><coordinates><x>0</x><y>0</y><z>0</z></coordinates></vertex>
…
</vertices>
<volume>
<triangle><v1>0</v1><v2>1</v2><v3>2</v3></triangle>
</volume>
</mesh>
</object>
</amf>
In this reference
- Elements – the file and its ZIP form, every element and attribute, curved triangles, colour profiles, textures, materials, constellations, reserved metadata and a worked example
Not described
Known, not yet covered
- Reference: the details that only the standard (ISO/ASTM 52915, which is sold) settles: where the edge children of a curved triangle sit, the curve formulas, the grammar of formulas, the attribute that names a composite’s material, and which element holds the elements. The elements page says where each is unconfirmed; the sources used were Wikipedia, Assimp’s AMF importer, PrusaSlicer 2.9.2 and usco-amf-parser.
- Viewer: none yet; the site shows the hex viewer only.
Links
Software
- PrusaSlicer – Prusa Research’s free open source slicer, which reads AMF (Windows, macOS, Linux)
- Slic3r – free open source slicer, the ancestor of PrusaSlicer (Windows, macOS, Linux)
Developers
- Assimp – library that imports dozens of 3D formats, AMF among them (C++)