how does a 3d printer work

How does a 3d printer work? What is the advantage of 3d printing process?