In the current contribution for the first time a mechanistic model is presented that can be used for analysing and optimising the mechanical performance of straight wall structures in 3D printing processes. The two failure mechanisms considered are elastic buckling and plastic collapse. The model incorporates the most relevant process parameters, which are the printing velocity, the curing characteristics of the printing material, the geometrical features of the printed object, the heterogeneous strength and stiffness properties, the presence of imperfections, and the non-uniform dead weight loading. The sensitivity to elastic buckling and plastic collapse is first explored for three basic configurations, namely i) a free wall, ii) a simply...