A method for controlling a surface of interest of a part by means of a camera intended to be mounted on a carrying robot, the camera comprising a sensor and optics associated with an optical centre, with an angular aperture alpha and with a depth of field and defining a sharpness volume, the method comprising the following operations: a) loading, in a virtual design environment, a three-dimensional virtual model of the surface of interest, b) generating, in the virtual environment, a three-dimensional virtual model of the sharpness volume, c) paving, in the virtual environment, the model of the surface of interest by means of a plurality of unit models of said three-dimensional virtual model of the sharpness volume, d) for each position of said unit models, calculating the corresponding position, called the acquisition position, of the camera, the method wherein the generation of the three-dimensional model of the sharpness volume comprises the operations of: - loading, in the virtual environment, a three-dimensional model of the camera and its tooling, - generating a truncated pyramid of which: o the top is the optical centre, o the angular aperture is that of the optics noted alpha, o two opposing faces each define a first sharp plane and a last sharp plane, the spacing of which corresponds to the depth of field of the optics, the method wherein the surface is located between the first sharp plane and the last sharp plane of each unit model sharpness volume model, the method in which the generation of the three-dimensional virtual model of the sharpness volume comprises an operation of dividing the sharpness volume model into a working area strictly included therein, and a peripheral overlapping area surrounding the working area; and in that in the paving operation, the unit models of the sharpness volume model are distributed so as to overlap two by two in said peripheral areas. a) loading, in a virtual design environment, a three-dimensional virtual model of the surface of interest, b) generating, in the virtual environment, a three-dimensional virtual model of the sharpness volume, c) paving, in the virtual environment, the model of the surface of interest by means of a plurality of unit models of said three-dimensional virtual model of the sharpness volume, d) for each position of said unit models, calculating the corresponding position, called the acquisition position, of the camera, the method wherein the generation of the three-dimensional model of the sharpness volume comprises the operations of: - loading, in the virtual environment, a three-dimensional model of the camera and its tooling, - generating a truncated pyramid of which: o the top is the optical centre, o the angular aperture is that of the optics noted alpha, o two opposing faces each define a first sharp plane and a last sharp plane, the spacing of which corresponds to the depth of field of the optics, - loading, in the virtual environment, a three-dimensional model of the camera and its tooling, - generating a truncated pyramid of which: o the top is the optical centre, o the angular aperture is that of the optics noted alpha, o two opposing faces each define a first sharp plane and a last sharp plane, the spacing of which corresponds to the depth of field of the optics, o the top is the optical centre, o the angular aperture is that of the optics noted alpha, o two opposing faces each define a first sharp plane and a last sharp plane, the spacing of which corresponds to the depth of field of the optics, the method wherein the surface is located between the first sharp plane and the last sharp plane of each unit model sharpness volume model, the method in which the generation of the three-dimensional virtual model of the sharpness volume comprises an operation of dividing the sharpness volume model into a working area strictly included therein, and a peripheral overlapping area surrounding the working area; and in that in the paving operation, the unit models of the sharpness volume model are distributed so as to overlap two by two in said peripheral areas.