A method and apparatus for scanning a target region. A divergence of a laser beam during scanning of the target region is set. The laser beam is directed to different locations in the target region at a scan angle. The scan angle of the laser beam is set while the laser beam is directed to the different locations. Changing at least one of the divergence or an amount of change in the scan angle during scanning of the target region changes a resolution for the target region.