Introduction
3MF is an open format for 3D printing, published by the 3MF Consortium, which Microsoft and other companies founded in 2015. Where STL holds only triangles, a 3MF file also records the units, colours and materials, several objects with their positions on the build plate, and a thumbnail. Slicers use it to save a whole print job, including their own settings.
Project files from slicers such as PrusaSlicer and Bambu Studio are 3MF packages
with extra settings files in the Metadata folder. Other programs read the
model and ignore the settings they do not know.
Structure
A 3MF file is a ZIP package following the Open Packaging Conventions, the same
container used by Office documents. [Content_Types].xml lists the types
of the parts and _rels/.rels points to the model. The model,
3D/3dmodel.model, is XML: a resources element holds objects,
each a mesh of vertex and triangle elements, and a
build element lists the items to print with their transforms. The
unit attribute on the root element sets the units, millimetres by
default.
zip[Content_Types].xml the media type of each partXMLzip_rels/.rels points to the 3D modelXMLzip3D/3dmodel.model objects, meshes and the build listXMLzipMetadata/ thumbnails and slicer settingsoptional
The core specification is kept deliberately small. Colour, textures, lattices, slices, encryption and the rest come as extensions, each in its own XML namespace, and a file states which ones a reader must understand.
In this reference
- Package and parts – core versions, ZIP rules, every part, content type and relationship type, part names, the double-extension file names, thumbnails and signatures
- Core model – every element and attribute of the model XML, simple types, transforms, mesh rules, triangle sets, components, base materials and a worked example
- Materials and properties – colour groups, textures, composites, multiproperties with their blending equations, and display properties
- Production and security – UUIDs, objects in separate model files, alternative representations, and the encrypted key store
- Geometry extensions – beam lattices and balls, slice stacks, displacement meshes and boolean shapes
- Volumetric and implicit – functions, 3D image stacks, level sets, volume data and every implicit node
Not described
Known, not yet covered
- Reference: the private parts that slicers and other vendors add to a package (package page); they are not part of the 3MF specification.
- Viewer: none yet; the site shows the hex viewer only.
Unknown
- Reference: the Toolpath extension that the 3MF Consortium is drafting; its specification is not published (the file the repository index points to returns 404).
Links
Software
- PrusaSlicer – Prusa Research’s free open source slicer, which saves projects as 3MF (Windows, macOS, Linux)
- UltiMaker Cura – free open source slicer from UltiMaker (Windows, macOS, Linux)
- Bambu Studio – Bambu Lab’s free slicer, which saves projects as 3MF (Windows, macOS, Linux)
- OrcaSlicer – free open source slicer for many printer brands (Windows, macOS, Linux)
- Autodesk Fusion – Autodesk’s CAD and CAM program, which exports 3MF (Windows, macOS)
Developers
Reference
- 3MF core specification – the 3MF Consortium’s published standard