Two-dimensional and three-dimensional modeling