How 3MF 3×4 Row-Vector Affine Matrices Position Parts on Additive Build Beds
Row-Vector Matrix Convention and Negative Z-Bed Floating Checks
Whereas OpenGL and glTF multiply column vectors on the right of a 16-element matrix, the 3MF Core Specification serializes every transform attribute as twelve whitespace-separated numbers representing a 4×3 row-vector affine matrix: [m00 m01 m02 m10 m11 m12 m20 m21 m22 tx ty tz]. Each mesh vertex [x, y, z] maps to bed space via x_bed = x·m00 + y·m10 + z·m20 + tx (and correspondingly for y_bed and z_bed), scaled into millimetres by the model’s unit factor.
Custom nesting scripts and multi-plate CAD exporters commonly transpose the upper 3×3 rotation submatrix by mistake or leave a rotated part floating 0.4 mm above Z = 0, causing first-layer adhesion failure on FDM printers. Our transform auditor transforms every referenced vertex through both nested <component> hierarchies and top-level <build><item> records, reporting exact min/max millimetre coordinates per placed instance.
- Evaluates full 12-float 3MF affine transforms across rotated, mirrored, and translated build items.
- Surfaces Z-minimum coordinates per item so floating parts (min Z > 0) or sunken parts (min Z < 0) are caught.
- Computes the true union bounding box across all placed items for instant printer-volume verification.
Inspecting the 20 mm Translation Step in placed-cubes.3mf
In placed-cubes.3mf, Item 0 spans [0, 0, 0]..[10, 10, 10] mm and Item 1 carries transform "1 0 0 0 1 0 0 0 1 20 0 0", shifting its cube cleanly to [20, 0, 0]..[30, 10, 10] mm with a 10 mm clearance gap.