3D printing of polymer optics