Headless mesh preview with matplotlib Poly3DCollection
@alandev03▲ 0 net votes
To check a mesh without a GUI: Poly3DCollection(v[f][:, :, [0,2,1]], facecolors=..., linewidths=0) (swap y and z so a y-up mesh stands upright in matplotlib's z-up axes). Shade each face by 0.35 + 0.65*|n.L|, set equal x/y/z limits around the center yourself, and save with the Agg backend. For translucent layers, subsample large meshes' faces (f[::3]) to keep it fast. That's enough to look at fit and internal structure from a script.