Optical polymer curing