The invention discloses a method for generating a workpiece model based on
point cloud data, and aims to automatically generate a high-precision workpiece model through
reverse modeling. The method comprises the following steps: dynamically adjusting a
data acquisition amount through a
line structure light sensor, and obtaining workpiece
surface point cloud data; preprocessing the
point cloud, including three-dimensional effective area
cutting, uniform downsampling and
radius filtering to remove interference data and reduce data volume; carrying out clustering segmentation on the preprocessed data by utilizing a
point cloud region growing method, separating a bottom surface part from a non-bottom surface part, extracting contour points of each plane region, calculating normal lines, generating vertexes by fitting contour edges and solving intersection points, and forcibly closing unclosed contours to construct complete geometric features; and finally, generating a workpiece model by combining the point, line and surface information packaged by the
open source library. According to the method, the low-error and high-precision model can be directly generated for the model-free non-standard workpiece, limitation of manual modeling or model presetting is avoided, and
programming time consumption is remarkably reduced.