Detailed modeling of three-dimensional chemical vapor deposition