A computer-implemented method for hallmarking a surface of a workpiece , comprising the steps of: - Providing in a computer system a geometric model of a workpiece having at least one surface to be provided with a plurality of hallmarks ; - Generating with the computer system a point cloud having a plurality of points on a surface of the geometric model representing the surface of the workpiece to be provided with the plurality of hallmarks ; - Generating control commands with the computer system for an NC control of a device for hallmarking a workpiece , wherein each point of the plurality of points on the surface of the geometric model is assigned at least one hallmarking processing step; - Providing a workpiece corresponding to the geometric model having the surface to be provided with a plurality of hallmarks , and a device for hallmarking the workpiece ; and - Performing the hallmarking machining steps with the apparatus at positions on the surface of the workpiece each corresponding to one of the points of the plurality of points on the surface of the geometric model, wherein generating a point cloud comprises the steps of: a) Selecting a potential hallmarking point corresponding to a node point , not yet associated with the point cloud , of a grid arranged on at least one outer side of the surface of the geometric model; b) Placing a projection at the potential hallmarking point so that the potential hallmarking point coincides with or is determined to be located relative to a characteristic point of the projection, the projection corresponding to a hallmarking to be produced by the apparatus ; c) Assigning the potential hallmarking point to the point cloud ; d) Repeating steps a) to c) until either all nodes of the grid have been selected at least once or a termination condition is met. - Providing in a computer system a geometric model of a workpiece having at least one surface to be provided with a plurality of hallmarks ; - Generating with the computer system a point cloud having a plurality of points on a surface of the geometric model representing the surface of the workpiece to be provided with the plurality of hallmarks ; - Generating control commands with the computer system for an NC control of a device for hallmarking a workpiece , wherein each point of the plurality of points on the surface of the geometric model is assigned at least one hallmarking processing step; - Providing a workpiece corresponding to the geometric model having the surface to be provided with a plurality of hallmarks , and a device for hallmarking the workpiece ; and - Performing the hallmarking machining steps with the apparatus at positions on the surface of the workpiece each corresponding to one of the points of the plurality of points on the surface of the geometric model, a) Selecting a potential hallmarking point corresponding to a node point , not yet associated with the point cloud , of a grid arranged on at least one outer side of the surface of the geometric model; b) Placing a projection at the potential hallmarking point so that the potential hallmarking point coincides with or is determined to be located relative to a characteristic point of the projection, the projection corresponding to a hallmarking to be produced by the apparatus ; c) Assigning the potential hallmarking point to the point cloud ; d) Repeating steps a) to c) until either all nodes of the grid have been selected at least once or a termination condition is met. <EOS>