A computer-implemented method, and/or a method carried out on at least one processor and/or carried out under a control of the at least one processor and/or initiated by the at least one processor, for generating control data for controlling at least one manufacturing machine, the method comprising the following steps and at least one of the following steps of the method being performed on the at least one processor and/or another processor:
- obtaining point cloud data of a workpiece;
- registering the point cloud data of the workpiece;
- fitting geometric surface elements and/or form elements to the point cloud data of the workpiece;
- obtaining at least one of an inspection plan, a computer-aided design (CAD) model of the workpiece, actual control data, and available infrastructure or environmental data of at least one manufacturing machine for manufacturing the workpiece;
- comparing the inspection plan and/or CAD model of the workpiece with the fitted geometric surface elements and/or form elements and identifying divergences;
- evaluating or assessing the divergences identified in the comparing based on at least one of specified tolerances of the workpiece, the actual control data, and the infrastructure or environmental data;
- generating new target control data and/or new infrastructure or environmental data for continued manufacture of the workpiece or for manufacturing a new workpiece in accordance with the evaluating and assessing of the divergences identified in the comparison;
- and
- transferring at least one of the new target control data and the new infrastructure or environmental data to the at least one manufacturing machine and/or to at least one other manufacturing machine and/or to a factory controller superordinate to the manufacturing machine and/or the at least one other manufacturing machine in accordance with the evaluating or assessing of the divergences identified in the comparison,
- wherein registering the point cloud data of the workpiece is based on a singular value decomposition (SVD) of a difference matrix of the point cloud data with a determination of associated singular vectors and/or based on a determination of eigenvectors of a covariance matrix of the point cloud data which is formed from the difference matrix, the difference matrix being formed from a difference between point cloud data coordinates and centroid coordinates of the point cloud,
- wherein registering the point cloud data of the workpiece further comprises calculating scalar products of the point cloud data and at least two determined singular vectors and/or eigenvectors, and/or
- wherein registering the point cloud data of the workpiece further comprises determining at least two coordinates in the X and/or Y and/or Z direction of the point cloud data coordinates rotated into the computer coordinate system or CAD coordinate system.