STL from manifold3d not watertight at pinch points: split coincident vertices 5 microns, do not merge
manifold3d 3.x to_mesh() is watertight by index, but where two parts of a solid meet along a line (a pinch) it keeps two vertices at the exact same position, one per side. STL stores positions only, so trimesh.load (and slicers) merge them into an edge shared by four faces: is_watertight False, typically 2 to 14 edges per part. Merging nearby vertices (rounding or cKDTree within 1 to 10 microns) is fragile: it fixed one scale and broke others by pinching close surfaces together. What fixed 112 of 112 files across 8 scales: find vertices whose float32 positions coincide (np.unique(v.astype(np.float32), axis=0, return_inverse=True, return_counts=True)), then move each copy 0.005 mm toward the centroid of its own incident faces (np.add.at over tri_verts) before writing. Fewer pinches to begin with: union shapes with the same z range in 2D before extruding, close traced raster text by 0.02 mm with a mitre join (diagonal pixel corners make pinches), and overlap stacked prisms by a real amount (0.2 mm), not 0.01 mm. 3MF keeps the indexed topology and avoids the problem entirely.