aboutsummaryrefslogtreecommitdiff
path: root/knowledge/tooling/threemf-group.md
diff options
context:
space:
mode:
Diffstat (limited to 'knowledge/tooling/threemf-group.md')
-rw-r--r--knowledge/tooling/threemf-group.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/knowledge/tooling/threemf-group.md b/knowledge/tooling/threemf-group.md
new file mode 100644
index 0000000..565048c
--- /dev/null
+++ b/knowledge/tooling/threemf-group.md
@@ -0,0 +1,11 @@
+# 3MF group
+
+`tools/threemf_group.py` turns a 3MF with several objects into one object with parts, for multi-colour prints such as label inlays in a housing.
+
+``` sh
+python3 tools/threemf_group.py in.3mf out.3mf [name]
+```
+
+- **Why:** many CAD 3MF exports write one object per body, and a slicer loads separate objects as separate objects. A shell and its label glyphs must be one object, so that each part can get its own filament.
+- **What it does:** it adds a parent object (named from the argument, else the first object's name) whose `<components>` reference every build item. Build transforms move onto the components, and only the parent is built. It writes core 3MF only, with no slicer-specific metadata; Orca, Bambu and Prusa load the result as one object with parts.
+- **In place:** using the same path for in and out is fine; the whole file is read first.