Two- and Three-Dimensional Optical Modeling