3D printed optical device