Drawing three-dimensional objects