Modeling and Simulation of a 3D Printer Based on a SCARA Mechanism