A non-transitory computer-readable medium having stored thereon a computer program configured to be executed by a microprocessor of a command/control unit, said computer program including instructions configured to, upon execution by the microprocessor, cause the command/control unit to implement a process for manufacturing an ophthalmic lens with a laser-marking machine that marks a surface of the ophthalmic lens, wherein the process implemented by the computer program includes:
- a laser-marking step, carried out by said laser-marking machine, for producing permanent engravings on a surface of the ophthalmic lens, the laser-marking machine configured to operate in accordance with an operating point that characterizes geometric characteristics of the permanent engravings that the laser-marking machine will produce on the surface of the ophthalmic lens;
- at least one predetermined step subsequent to said laser-marking step that applies thermal stresses to the surface at a temperature which is close to a stress relaxation threshold value of at least one material from which the ophthalmic lens is formed;
- and
- determining, prior to said laser-marking step, the operating point of the laser-marking machine, based on the geometric characteristics of the permanent engravings to be produced on the surface of the ophthalmic lens,
- where said step of determining the operating point comprises the following steps:
- determining a value, chosen from a plurality of post-marking stress levels predetermined as a function of predetermined ranges of geometric engraving characteristics and predetermined ranges of values representative of the deformation of the ophthalmic lens, for at least one treatment zone of the surface in which the permanent engravings are to be produced, that would result from the thermal stresses of the at least one predetermined step subsequent to said laser-marking step, based on data characterizing the predetermined post-marking steps and based on data relating to the at least one material from which the ophthalmic lens is formed;
- and
- deducing the operating point from the determined value representative of the deformation of the ophthalmic lens in the at least one treatment zone and from the geometric characteristics of the permanent engravings to be produced by said laser-marking step.