Modeling for prototyping on a 3d printer