Creating a three-dimensional model by drawing with a 3D pen