Device and method for simulating 3D printing