Production of simple or compound lenses