Contour accuracy compensation method and system for precision hot pressing molds
By meshing, curvature analysis and three-coordinate measurement of the hot-press forming mold, combined with the reverse distance weighted interpolation algorithm, the problem of low contour deviation compensation efficiency in traditional mold design is solved, and the intelligence of precision hot-press forming mold is realized and automation accuracy compensation.
Patent Information
- Application Number
- CN202411334604.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Traditional mold design and manufacturing methods are difficult to effectively predict and compensate for the profile deviation of hot-pressed molded parts, resulting in insufficient product accuracy and increasing production costs and cycles.
By meshing, curvature analysis and sampling the three-dimensional model of the hot-press forming mold, the surface profile data of the actual molded parts is obtained by using a three-coordinate measuring machine, the contour error is calculated, and the compensation amount distribution is calculated using the reverse distance weighted interpolation algorithm. , generate a compensated mold processing model.
It realizes intelligence and automation of contour accuracy compensation, improves mold processing accuracy, reduces the number of mold trials and mold repairs, and reduces production costs and cycles.
Smart Images

Figure CN118864790B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mold contour compensation, and in particular to a contour accuracy compensation method and system for a precision hot pressing molding mold. Background Art
[0002] The molding accuracy of precision hot press molding technology directly affects the performance and reliability of the product. However, in actual production, due to factors such as material properties, process parameters and mold deformation, the actual contour of the hot press molded parts often deviates from the theoretical design, affecting product quality.
[0003] Traditional mold design and manufacturing methods are difficult to effectively predict and compensate for these deviations, resulting in insufficient product precision, requiring multiple mold trials and mold repairs, and increasing production costs and cycles. However, existing contour accuracy compensation methods still have some problems, such as unreasonable sampling point distribution, inaccurate curvature analysis, and inefficient interpolation algorithms, which in turn lead to low precision and efficiency of existing technologies. Summary of the invention
[0004] The main purpose of the present invention is to provide a contour accuracy compensation method and system for a precision hot pressing mold, so as to realize the intelligent and automatic contour accuracy compensation.
[0005] To achieve the above object, the present invention provides a contour accuracy compensation method for a precision hot pressing mold, comprising the following steps:
[0006] Mesh the three-dimensional model of the hot pressing mold to obtain the mold surface mesh data;
[0007] Performing curvature analysis on the mold surface mesh data, and dividing the mold surface into a high curvature area and a low curvature area by setting a curvature threshold;
[0008] Performing high-density sampling on the high-curvature region and performing low-density sampling on the low-curvature region to obtain a sampling point set;
[0009] Using a three-dimensional coordinate measuring machine to measure the three-dimensional coordinates of the sampling point set to obtain surface profile data of the actual molded part;
[0010] Comparing and analyzing the surface profile data of the actual molded part with the theoretical model, calculating the profile error of each sampling point, and obtaining the profile error distribution;
[0011] Based on the contour error distribution, an inverse distance weighted interpolation algorithm is used to perform interpolation operation on the entire mold surface to obtain a mold surface compensation amount distribution;
[0012] According to the compensation amount distribution of the mold surface, the three-dimensional model of the hot pressing mold is corrected to generate a compensated mold processing model.
[0013] The present invention also provides a contour accuracy compensation system for a precision hot pressing forming die, comprising:
[0014] A meshing module is used to mesh the three-dimensional model of the hot pressing mold to obtain the mold surface mesh data;
[0015] A curvature analysis module, used to perform curvature analysis on the mold surface mesh data, and divide the mold surface into a high curvature area and a low curvature area by setting a curvature threshold;
[0016] A sampling module, used for performing high-density sampling on the high-curvature area and low-density sampling on the low-curvature area to obtain a sampling point set;
[0017] A measuring module, used for performing three-dimensional coordinate measurement on the sampling point set by using a three-dimensional coordinate measuring machine to obtain surface profile data of the actual molded part;
[0018] A calculation module, used to compare and analyze the surface profile data of the actual molded part with the theoretical model, calculate the profile error of each sampling point, and obtain the profile error distribution;
[0019] An interpolation operation module is used to perform interpolation operation on the entire mold surface based on the contour error distribution by using a reverse distance weighted interpolation algorithm to obtain a mold surface compensation amount distribution;
[0020] A generating module is used to correct the three-dimensional model of the hot pressing mold according to the distribution of the compensation amount of the mold surface, and generate a compensated mold processing model.
[0021] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0022] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned methods are implemented.
[0023] In summary, the technical solution provided by the present invention realizes a more reasonable grid density distribution by performing surface feature extraction, area division and grid quality evaluation on the three-dimensional model of the mold. It adopts Gaussian curvature and mean curvature calculation, combined with cluster analysis and boundary detection, to realize a more accurate high and low curvature area division. According to the curvature gradient distribution, different sampling densities are adopted for the high and low curvature areas, which not only ensures the accuracy of the key areas, but also improves the sampling efficiency. The measurement path planning is carried out based on the spatial distribution characteristics of the sampling points, and the measurement system error model is combined to improve the efficiency and accuracy of the three-coordinate measurement. Through methods such as vector difference calculation, principal curvature direction decomposition and spectral analysis, a comprehensive analysis of the contour error is realized. The reverse distance weighted interpolation algorithm is adopted, combined with spatial index and local interpolation strategy, to improve the efficiency and accuracy of the compensation amount distribution calculation. Through parametric modeling and topological structure optimization, the accurate reconstruction and adjustment of the compensation model are realized, the processing accuracy of the compensated mold is improved, and the intelligent and automatic contour accuracy compensation is realized. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic diagram of the steps of a method for compensating the contour accuracy of a precision hot pressing forming die in one embodiment of the present invention;
[0025] Figure 2 It is a structural block diagram of a contour accuracy compensation system of a precision hot pressing forming die in one embodiment of the present invention;
[0026] Figure 3 It is a schematic block diagram of the structure of a computer device according to an embodiment of the present invention.
[0027] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0029] Reference Figure 1 , this embodiment provides a contour accuracy compensation method for a precision hot pressing mold, comprising the following steps:
[0030] S1, meshing the three-dimensional model of the hot pressing mold to obtain mold surface mesh data;
[0031] Specifically, the surface features of the three-dimensional model of the hot pressing mold are extracted, and the geometric feature data of the surface are extracted from the geometric shape of the model, including the shape, curvature and boundary information of different areas on the mold surface. The mold surface is divided into multiple sub-areas according to the geometric feature data, and the curvature is calculated for each sub-area to obtain the curvature distribution data of each sub-area. The curvature distribution data can reflect the curvature degree and complexity of each part of the mold surface. According to the curvature distribution data, the grid density of each sub-area is reasonably allocated, and a grid density distribution scheme is formulated to ensure that a higher grid density is allocated in the high curvature area and a lower grid density is allocated in the low curvature area to optimize the use efficiency of computing resources. Based on the grid density distribution scheme, the mold surface is initially meshed to form initial grid data. The initial grid data is meshed and the problems and deficiencies in the grid units are identified. According to the mesh quality evaluation results, the grid units are locally refined for the problematic areas to improve the quality and accuracy of the grid and generate the refined grid data. In order to ensure the smoothness and optimization of the mesh, the refined mesh data is smoothed to reduce the abrupt changes between mesh units and improve the consistency and smoothness of the mesh. After the smoothing process is completed, the smoothed mesh data is topologically optimized to ensure that the overall structure of the mesh unit is reasonable, and the boundary adaptability is adjusted to ensure that the mesh can fit the actual boundary of the mold surface well, and finally the mold surface mesh data is obtained.
[0032] S2, performing curvature analysis on the mold surface mesh data, and dividing the mold surface into a high curvature area and a low curvature area by setting a curvature threshold;
[0033] Specifically, the curvature analysis is performed on the mesh data of the mold surface. The curvature values of all nodes on the mesh are obtained by calculating the Gaussian curvature and the average curvature of each mesh node. The curvature value can reflect the curvature degree of different parts of the mold surface. By clustering the mesh nodes, the curvature distribution area of the mold surface is preliminarily divided to reflect the difference in curvature between different areas. The boundary detection is performed on the preliminary curvature distribution area to clarify the boundary contour of each area. The boundaries of each curvature area are clarified so that the area division can be performed more accurately in the subsequent processing. After the boundary contour is obtained by detection, the adjacent curvature areas are merged to avoid unreasonable area division caused by excessive subdivision, and the optimized curvature distribution area is obtained. The optimized curvature distribution area is statistically analyzed to reflect the overall distribution of the curvature of the mold surface. According to the curvature distribution histogram, an optimal curvature threshold, namely the initial curvature threshold, is calculated. The local sensitivity analysis of the initial curvature threshold is performed to obtain a threshold adjustment coefficient, which is used to correct the initial curvature threshold to obtain a more accurate target curvature threshold. The mold surface is binarized based on the target curvature threshold. The entire mold surface is divided into high curvature areas and low curvature areas according to the curvature. Since the preliminary division results may have a certain degree of roughness or discontinuity, they are further corrected through morphological operations. Morphological operations can optimize the smoothness and coherence of the region boundaries, ensuring that the high curvature areas and low curvature areas that are finally divided are more accurate and reasonable.
[0034] S3, high-density sampling is performed on the high-curvature area, and low-density sampling is performed on the low-curvature area to obtain a sampling point set;
[0035] Specifically, the boundaries of high curvature regions and low curvature regions are extracted respectively to obtain the regional boundary contour lines and define the boundaries of each region. According to the boundary contour lines, the high curvature regions and low curvature regions are meshed to obtain the mesh data after meshing, so as to ensure higher resolution in the high curvature region and capture more subtle curvature changes, while maintaining a lower mesh density in the low curvature region to improve the calculation efficiency. The mesh data after meshing is subjected to curvature gradient analysis, and the curvature gradient distribution map obtained by analyzing is used to understand the change of curvature on the mold surface. The curvature gradient distribution map can intuitively show the degree of change of curvature in different regions, and provide a basis for determining the sampling density of each region. According to the curvature gradient distribution map, the sampling density coefficients are set in the high curvature region and the low curvature region respectively, and a sampling density distribution scheme is generated. The scheme ensures that a higher sampling density is set in the high curvature region, while a lower sampling density is set in the low curvature region. Based on the sampling density distribution scheme, the initial sampling points are generated in the high curvature region and the low curvature region respectively, and multiple initial sampling points are obtained, covering different regions of the mold surface and reflecting the curvature characteristics of each region. Perform spatial distribution uniformity analysis on multiple initial sampling points to evaluate the distribution of sampling points on the entire mold surface and identify areas that may be too dense or too sparse. Perform necessary optimization adjustments on the initial sampling points based on the sampling point distribution evaluation results obtained from the spatial distribution uniformity analysis. Through adjustments, the distribution of sampling points on the mold surface is improved to make it more uniform and reasonable, and an optimized sampling point set is obtained.
[0036] S4, using a three-dimensional coordinate measuring machine to measure the three-dimensional coordinates of the sampling point set to obtain the surface profile data of the actual molded part;
[0037] Specifically, the spatial distribution analysis of the sampling point set is performed to determine the distribution characteristics of the sampling points in three-dimensional space, including the distance between the sampling points, the density, and their distribution pattern on the mold surface. Through spatial distribution analysis, the concentrated area and sparse area of the sampling points are identified. According to the spatial distribution characteristics of the sampling points, the measurement path is planned to develop an optimal measurement path. The optimized measurement path can minimize the measurement time while ensuring the measurement accuracy and data integrity. The three-dimensional coordinate measuring machine is calibrated and error compensated. The calibration is used to determine the reference state of the measuring machine in the actual measurement environment, and then the error model of the measurement system is constructed to accurately describe the errors that may be generated by the measuring machine under different operating conditions. The error model can help identify and compensate for measurement errors caused by mechanical, temperature changes or other external factors. Based on the optimized measurement path and error model, the motion control parameters of the three-dimensional coordinate measuring machine are set, and accurate measurement control instructions are generated to guide the measuring machine to move according to the planned path in actual operation to ensure the measurement accuracy of the sampling points. The three-dimensional coordinate measuring machine measures the sampling point set point by point according to the measurement control instructions to obtain the original measurement data. Noise filtering and outlier detection are performed on the original measurement data. Noise filtering can eliminate random errors introduced during the measurement process, while outlier detection helps to identify and eliminate obviously unreasonable measurement data points to obtain the initially processed measurement data. Weighted averaging and interpolation processing are performed on the initially processed measurement data to generate continuous surface profile data. Weighted averaging processing can smooth the data and reduce the impact of measurement errors, while interpolation processing is used to fill in the gaps between measurement data to make the surface profile data more complete and smooth. Continuous surface profile data is compressed and format converted to meet the needs of subsequent analysis and use. Data compression reduces storage and processing resource consumption, while format conversion ensures that data can be smoothly transferred and used between different systems and software to obtain the surface profile data of actual molded parts.
[0038] S5, comparing and analyzing the surface profile data of the actual molded part with the theoretical model, calculating the profile error of each sampling point, and obtaining the profile error distribution;
[0039] That is, the surface contour data of the actual molded part is aligned with the theoretical model in the coordinate system to eliminate the error caused by the difference in the coordinate system. In the unified coordinate system, the surface contour data of the actual molded part is projected onto the surface of the theoretical model using the nearest point projection algorithm to generate a corresponding point set on the surface of the theoretical model. The corresponding point set directly reflects the difference in spatial position between the actual molded part and the theoretical model. The vector difference calculation is performed on the surface contour data of the actual molded part and the corresponding point set on the surface of the theoretical model to obtain the initial contour error vector field. Each vector of the vector field represents the contour error of a sampling point, including the direction and magnitude of the error. According to the initial contour error vector field, the error vector is decomposed using the principal curvature direction decomposition algorithm to decompose the initial contour error vector field into normal error and tangential error components. The normal error reflects the deviation perpendicular to the surface, while the tangential error reflects the deviation along the surface direction. The normal error and tangential error components are statistically analyzed to obtain the distribution characteristic parameters of the error. By statistically analyzing the error distribution characteristic parameters, a probability density model of error distribution is established, which can accurately describe the probability distribution of the error on the entire mold surface. The error distribution probability model is used to detect and eliminate outliers to eliminate obviously unreasonable or abnormal error data points and obtain a corrected contour error data set. The corrected contour error data set is interpolated with discrete error points to generate a continuous contour error distribution field. Through interpolation, the gaps between the measured data are filled to make the entire error field smoother and more coherent. After obtaining the continuous error distribution field, spectral analysis is performed to extract the spectral characteristics of the error distribution. The spectral characteristics reflect the spatial frequency components of the error distribution and help understand the source and nature of the error. Based on the spectral characteristics, the contour error distribution field is decomposed at multiple scales to obtain the contour error distribution at different scales.
[0040] S6, based on the contour error distribution, the reverse distance weighted interpolation algorithm is used to perform interpolation operation on the entire mold surface to obtain the mold surface compensation amount distribution;
[0041] Specifically, the contour error distribution is spatially discretized, and the continuous error distribution data is converted into a set of discrete points with spatial positions and error values to obtain a discrete error point set. By incorporating the discrete error point set into a unified coordinate framework, the topological relationship between the error points is constructed to reflect the proximity and connectivity of the error points in space. The topological relationship of the error points is subjected to boundary detection to obtain the boundary contour of the mold surface. According to the detected boundary contour of the mold surface, the entire mold surface is meshed again to generate uniformly distributed target grid points. Spatial indexes are constructed for the target grid points and the discrete error point set to generate a fast retrieval structure, so that the spatial relationship between the error points and the grid points can be quickly located in the subsequent interpolation process, thereby improving the computational efficiency. Based on the fast retrieval structure, the error sampling points within the influence domain of each target grid point are determined to form a local interpolation data set, which contains all error information related to each target grid point. The reverse distance weight calculation is performed on each error sampling point in the local interpolation data set to obtain a weight coefficient matrix. The basic principle of reverse distance weight calculation is that the closer the error sampling point is to the target grid point, the greater its influence on the interpolation result, and therefore the greater the weight coefficient. Based on the weight coefficient matrix and combined with the local interpolation data set, a weighted average calculation is performed on each target grid point to obtain a preliminary interpolation result, which preliminarily reflects the distribution of error compensation on the mold surface. The preliminary interpolation result is Laplace smoothed to eliminate possible local mutations or discontinuities and obtain the smoothed compensation distribution. Laplace smoothing makes the interpolation result smoother and more uniform by adjusting the values between each point. Based on the smoothed compensation distribution, the entire mold surface is processed continuously to make the compensation distribution more natural and accurate, and finally the compensation distribution on the mold surface is obtained.
[0042] S7, according to the distribution of the compensation amount on the mold surface, the three-dimensional model of the hot pressing mold is corrected to generate a compensated mold processing model.
[0043] Specifically, the compensation distribution of the mold surface is gridded to generate compensation grid data. The continuous compensation distribution is converted into a set of discrete grid points, which represent the compensation values at different positions on the mold surface. The obtained compensation grid data is grid-matched with the three-dimensional model of the hot pressing mold to establish the corresponding relationship between the model grid and the compensation grid. The corresponding relationship between the model grid and the compensation grid is interpolated and the discrete compensation data is smoothly transferred to the entire model surface to ensure that each grid node can accurately obtain the corresponding compensation information and obtain the compensation vector of each node on the model surface. According to the calculated compensation vector, the nodes on the model surface are coordinate-shifted to generate the model data after preliminary correction. The coordinate shift directly reflects the adjustment of the model surface contour, so that the model surface is closer to the design requirements. The model data after preliminary correction is reconstructed to generate a continuous compensation model surface by reorganizing the discrete node data into a smooth surface. Feature recognition is performed based on the continuous compensation model surface to extract key geometric features in the model. Geometric features may include boundaries, surface intersections, areas with significant curvature changes, etc. The extracted key geometric features of the model are parametrically modeled to generate a parametric compensation model. The advantage of parametric modeling is that it not only makes the model easier to adjust and optimize, but also can impose geometric constraints on the model to ensure that the model maintains structural integrity during the adjustment process. The parametric compensation model is subjected to geometric constraint analysis to determine the topological structure relationship between the various parts within the model. Geometric constraint analysis can identify possible geometric conflicts or unreasonable structures in the model. The topological structure relationship of the model is optimized to eliminate possible geometric conflicts or improve the unreasonableness of the structure. Based on the optimized compensation model structure, a compensated mold processing model is generated.
[0044] The compensation distribution on the mold surface is processed by isoparameterization, and the complex compensation distribution is converted into a uniform parameterized compensation distribution field. The initial compensation grid is obtained by meshing according to the parameterized compensation distribution field. The mesh quality of the initial compensation grid is evaluated to identify the defects and unreasonableness. Through optimization, the possible distortion or discontinuity in the grid is eliminated to obtain the optimized compensation grid. At the same time, the three-dimensional model of the hot pressing mold is feature extracted to obtain the key geometric features in the model, such as boundaries, cusps, surfaces, etc. The three-dimensional model of the hot pressing mold is parametrically reconstructed to convert the three-dimensional model into a parameterized model that is easy to adjust and match. This model can be flexibly connected with the compensation grid. The main curvature direction analysis is performed on the parameterized model and the optimized compensation grid to obtain the curvature field distribution, which reflects the curvature characteristics of each point on the model surface. According to the curvature field distribution, the parameterized model and the compensation grid are roughly matched, and the correspondence between the model surface and the compensation grid is preliminarily established. The iterative closest point algorithm (ICP algorithm) is used to optimize the preliminary correspondence. The iterative closest point algorithm gradually reduces the error by continuously adjusting the distance between matching points to obtain an accurate point-to-point mapping relationship. Based on the accurate point-to-point mapping relationship, a continuous mapping function is constructed to make the relationship between the model grid and the compensation grid more stable and continuous. The mapping function can ensure that the corresponding compensation amount can be accurately applied to each grid point of the three-dimensional model, realize accurate compensation of the model surface, and finally obtain the corresponding relationship between the model grid and the compensation grid.
[0045] In one example, a three-dimensional model of a hot pressing mold is meshed to obtain mold surface mesh data, including:
[0046] Extract surface features of the three-dimensional model of the hot pressing mold to obtain geometric feature data of the mold surface;
[0047] Divide the mold surface into regions according to the geometric feature data to obtain multiple sub-regions, and calculate the curvature of each sub-region to obtain the curvature distribution data of each sub-region;
[0048] According to the curvature distribution data, the mesh density of each sub-area is allocated to obtain a mesh density distribution scheme, and based on the mesh density distribution scheme, the mold surface is initially meshed to obtain initial mesh data;
[0049] Performing mesh quality assessment on the initial mesh data to obtain mesh quality assessment results, and locally refining the mesh units based on the mesh quality assessment results to obtain refined mesh data;
[0050] The refined mesh data is subjected to mesh smoothing processing to obtain smoothed mesh data, and the smoothed mesh data is subjected to topological structure optimization and boundary adaptability adjustment to obtain mold surface mesh data.
[0051] In this example, surface feature extraction is performed on the three-dimensional model of the mold to identify and extract the geometric feature data of the mold surface, including geometric features such as curved surfaces, boundaries, cusps, and concave and convex parts. Through feature extraction, the complex three-dimensional model is decomposed into multiple regions with specific geometric features. Based on the extracted geometric feature data, the mold surface is divided into regions. The mold surface is divided into multiple sub-regions, and each sub-region has a certain homogeneity in geometric characteristics. For example, if a mold has a complex curved surface and some relatively flat areas, the curved surface part can be divided into one sub-region, and the flat part is divided into another sub-region. The curvature is calculated for each sub-region to obtain the curvature distribution data of each sub-region. The curvature calculation can be achieved using the following formula:
[0052] ;
[0053] in, represents the curvature, is the radius of the surface. The curvature reflects the degree of curvature of the surface in different areas. A larger curvature value corresponds to a part where the surface changes more dramatically, and vice versa, a smaller curvature value corresponds to a flatter part of the surface. According to the curvature distribution data, the mesh density is allocated to each sub-area to obtain a mesh density distribution scheme. A higher mesh density is allocated in a high curvature area, and a lower mesh density is allocated in a low curvature area. The allocation strategy can be expressed by the following formula:
[0054] ;
[0055] in, Indicates The grid density of each sub-region is Indicates The curvature value of each sub-region, It is a monotonically increasing function, which means that the larger the curvature value, the higher the mesh density. The mold surface is initially meshed based on the mesh density distribution scheme to obtain the initial mesh data. The mesh quality of the initial mesh data is evaluated to identify possible defects or unreasonableness in the mesh, such as overstretched mesh units or irregular shapes. The quality of the mesh can be measured by the shape parameters of the mesh, such as the angle and area ratio of the mesh unit. If the evaluation results show that the mesh quality in some areas does not meet the standard, these areas need to be locally refined. The principle of local refinement is to improve the quality of mesh units with poor quality by increasing the number of mesh units or adjusting the mesh shape to obtain refined mesh data. For example, in a high curvature area, if the unit shape of the initial mesh is too stretched, it may lead to a decrease in calculation accuracy. At this time, the mesh can be refined by increasing the number of mesh nodes to make the unit shape closer to the ideal state. The quality of the refined mesh data is mesh smoothed. By adjusting the position of the mesh nodes, the transition between adjacent units is made more natural, eliminating possible mutations or discontinuities. Smoothing usually uses the Laplace smoothing algorithm, which is implemented by the following formula:
[0056] ;
[0057] in, After smoothing, The new position of the node, Indicates the smoothing The location of the nodes, Indicates The set of neighbor nodes of a node, is the smoothing coefficient, which usually takes a value between 0 and 1. Through this process, the smoothness of the mesh is significantly improved, and the smoothed mesh data is obtained. For the smoothed mesh data, topology optimization and boundary adaptability adjustment are performed to ensure the rationality of the mesh structure and the precise alignment with the actual boundary of the mold, and the mold surface mesh data is obtained. Topology optimization includes adjusting the connection relationship between mesh units to make the entire mesh structure more stable and reasonable, while boundary adaptability adjustment adjusts the position of the mesh nodes at the boundary to make the mesh more consistent with the actual geometric boundary of the mold.
[0058] In one example, curvature analysis is performed on the mold surface mesh data, and the mold surface is divided into high curvature areas and low curvature areas by setting a curvature threshold, including:
[0059] The Gaussian curvature and average curvature of the mold surface mesh data are calculated to obtain the curvature value of each mesh node, and the mesh nodes are clustered according to the curvature value to obtain the preliminary curvature distribution area;
[0060] Perform boundary detection on the preliminary curvature distribution area to obtain the boundary contour, and merge adjacent areas according to the boundary contour to obtain the optimized curvature distribution area;
[0061] Performing statistical analysis on the optimized curvature distribution area to obtain a curvature distribution histogram, and calculating the optimal curvature threshold according to the curvature distribution histogram to obtain an initial curvature threshold;
[0062] Perform local sensitivity analysis on the initial curvature threshold to obtain the threshold adjustment coefficient, and modify the initial curvature threshold according to the threshold adjustment coefficient to obtain the target curvature threshold;
[0063] The mold surface is binarized based on the target curvature threshold to obtain the preliminary division results of high and low curvature areas. Morphological operations are performed on the preliminary division results to divide the mold surface into high curvature areas and low curvature areas.
[0064] In this example, the Gaussian curvature and mean curvature are calculated for the mold surface mesh data to obtain the curvature value of each mesh node. Gaussian curvature and mean curvature are two important geometric quantities that describe the surface, reflecting the local curvature and shape characteristics of the surface respectively. ) can be calculated by the following formula:
[0065] ;
[0066] in, and The sign and magnitude of Gaussian curvature reveal the concavity and curvature of the surface at a certain point: positive values indicate an elliptical surface, negative values indicate a hyperboloid, and zero indicates a flat or saddle-shaped surface. On the other hand, the mean curvature ( ) represents the overall curvature of the surface at that point and is defined as follows:
[0067] ;
[0068] Cluster analysis is performed on the grid nodes according to the curvature value. According to the curvature characteristics of the nodes, nodes with similar geometric properties are classified into the same group to obtain the preliminary curvature distribution area. The boundary detection is performed on the preliminary curvature distribution area to accurately identify and divide the boundary contour of each area. According to the boundary contour, the adjacent curvature areas are merged to effectively reduce the over-segmentation of the area and obtain a more reasonable and optimized curvature distribution area. The optimized curvature distribution area is statistically analyzed to generate a curvature distribution histogram. The curvature distribution histogram is a tool that reflects the distribution of curvature values on the entire mold surface. By analyzing the histogram, the frequency and distribution trend of different curvature values are reflected. The peak and shape of the histogram can help determine the optimal curvature threshold and obtain the initial curvature threshold. A local sensitivity analysis is performed on the initial curvature threshold to evaluate the applicability of the initial curvature threshold in different areas and identify areas that may need to be adjusted. Through sensitivity analysis, the threshold adjustment coefficient is obtained, which is used to accurately correct the initial curvature threshold to obtain the final target curvature threshold. The entire mold surface is binarized based on the target curvature threshold. The curvature area of the mold surface is divided into two categories: high curvature area and low curvature area. Morphological operations are performed on the preliminary division results, including expansion, erosion, opening operation and closing operation, so as to further optimize the binarized area, making the boundary of the area smoother and the interior more coherent. For example, small isolated points can be removed through opening operation, and the gaps in the boundary can be filled through closing operation, so as to obtain a smoother and coherent high and low curvature area division result.
[0069] In one example, high-density sampling is performed on high-curvature areas, and low-density sampling is performed on low-curvature areas, to obtain a sampling point set including:
[0070] Extracting the boundaries of the high curvature region and the low curvature region respectively to obtain the regional boundary contour line, and performing mesh subdivision on the high curvature region and the low curvature region according to the regional boundary contour line to obtain the mesh data after subdivision;
[0071] Performing curvature gradient analysis on the subdivided grid data to obtain a curvature gradient distribution map, and setting sampling density coefficients for high curvature areas and low curvature areas respectively according to the curvature gradient distribution map to obtain a sampling density distribution scheme;
[0072] Based on the sampling density distribution scheme, initial sampling points are generated for the high curvature area and the low curvature area to obtain multiple initial sampling points;
[0073] The spatial distribution uniformity of multiple initial sampling points is analyzed to obtain sampling point distribution evaluation results, and the sampling points are optimized and adjusted according to the sampling point distribution evaluation results to obtain a sampling point set.
[0074] In this example, the curvature gradient refers to the rate of change of the curvature value in space. The boundary contours of these areas are obtained by extracting the boundaries of high curvature areas and low curvature areas respectively. Based on the extracted regional boundary contours, the high curvature areas and low curvature areas are meshed separately to increase the mesh density inside the area to capture finer geometric features. For high curvature areas, since the surface changes more dramatically, a higher mesh density is required to ensure accuracy, while for low curvature areas, a lower mesh density can be used to save computing resources. The curvature gradient analysis is performed on the subdivided mesh data to obtain a curvature gradient distribution map. The curvature gradient distribution map can reflect the changing trend of curvature in different areas. Areas with large rate gradients mean that the surface changes dramatically there, and a higher sampling density is required to capture details. In areas with smaller curvature gradients, the sampling density can be reduced accordingly. This principle can be expressed by the following formula:
[0075] ;
[0076] in, Indicates The sampling density coefficient of the grid points is Indicates The curvature gradient of a point, is an adjustment coefficient used to control the range of the overall sampling density. Based on the sampling density coefficient calculated from the curvature gradient distribution map, a sampling density distribution scheme is formed to ensure that a higher sampling density is set in the high curvature gradient area and a lower sampling density is set in the low curvature gradient area, thereby optimizing the distribution of the sampling points. The initial sampling points are generated for the high curvature area and the low curvature area based on the sampling density distribution scheme. Multiple sampling points are randomly or regularly generated on the grid according to the sampling density coefficient of each grid point. Each sampling point represents a sampling position on the mold surface, which will be used for subsequent measurement and analysis. The sampling points are analyzed for spatial distribution uniformity to evaluate the distribution of the initial sampling points on the entire mold surface. Uniform distribution ensures that the sampling points cover all important areas of the mold surface without being too concentrated or missing some areas. The uniformity of the distribution is evaluated by counting the distances between the neighboring points of each sampling point. If the sampling points in some areas are too dense or sparse, optimization adjustments are required. Based on the results of the spatial distribution uniformity analysis, the sampling points are optimized and adjusted to obtain a more reasonable set of sampling points. Optimization and adjustment methods can include redistributing overly dense sampling points or increasing the number of sampling points in sparse areas to ensure that the final set of sampling points is evenly distributed on the mold surface. For example, in high curvature areas, if the initial sampling points are too dense, data redundancy may occur. In this case, the distribution can be optimized by reducing the number of sampling points; in low curvature areas, if there are too few sampling points in some areas, the number of points can be increased to supplement and obtain a more even distribution.
[0077] In one example, a three-dimensional coordinate measuring machine is used to measure the three-dimensional coordinates of a sampling point set to obtain surface profile data of an actual molded part, including:
[0078] Perform spatial distribution analysis on the sampling point set to obtain the spatial distribution characteristics of the sampling points, and plan the measurement path based on the spatial distribution characteristics of the sampling points to obtain an optimized measurement path;
[0079] Calibrate and compensate the coordinate measuring machine, build the error model of the measurement system, and set the motion control parameters of the coordinate measuring machine according to the optimized measurement path and error model to obtain the measurement control instructions;
[0080] Based on the measurement control instruction, the sampling point set is measured point by point to obtain the original measurement data, and the original measurement data is subjected to noise filtering and outlier detection to obtain the measurement data after preliminary processing;
[0081] The weighted average and interpolation processing are performed on the measured data after preliminary processing to obtain continuous surface profile data, and the continuous surface profile data are compressed and format converted to obtain the surface profile data of the actual molded part.
[0082] In this example, the spatial distribution analysis of the sampling point set is performed to obtain the distribution characteristics of the sampling points in three-dimensional space, including their density, uniformity, and coverage on the mold surface. Through analysis, areas where the sampling points are concentrated or sparse are identified. Measurement path planning is a key step in optimizing the measurement efficiency of a three-dimensional coordinate measuring machine. Reasonable path planning can minimize the measurement time while ensuring measurement accuracy and data integrity. In order to achieve optimized measurement path planning, an optimization algorithm is used to design a measurement path based on the spatial distribution characteristics of the sampling points. For example, the traveling salesman problem algorithm or the nearest neighbor algorithm is used for path optimization. The goal of the algorithm is to find a shortest path so that the measuring machine can efficiently traverse all sampling points. Assume that the length of the measurement path is expressed as ,in Indicates sampling points and The distance between sampling points, the optimization objective can be expressed as:
[0083] ;
[0084] Through the optimization process, the optimal solution of the measurement path is obtained, which guides the three-dimensional coordinate measuring machine to perform measurement operations in the order of the shortest path. The three-dimensional coordinate measuring machine is calibrated and error compensated. The purpose of calibration is to ensure the accuracy of the measuring machine in actual operation, while error compensation corrects the systematic errors that may occur during the measurement process by constructing an error model of the measurement system. The error model usually considers factors such as the geometric error of the measuring machine, the error caused by temperature, and the nonlinear error of the sensor. Through calibration and compensation, the accuracy consistency of the measuring machine under different conditions is ensured, and the influence of the systematic error on the measurement results is minimized. Based on the optimized measurement path and the constructed error model, the motion control parameters of the three-dimensional coordinate measuring machine are set and the measurement control instructions are generated. The motion control parameter settings include the speed, acceleration, arrangement order of the measurement points of the measuring machine, and the sampling frequency of the sensor during the measurement process. The setting of these parameters needs to take into account the complexity of the measurement path and the dynamic characteristics of the measuring machine to ensure that the data of each sampling point can be accurately and stably captured during the measurement process. After the motion control instructions are set, the three-dimensional coordinate measuring machine will measure the sampling point set point by point according to these instructions. In the process of point-by-point measurement, the measuring machine reaches each sampling point position in turn according to the optimized path and records the corresponding three-dimensional coordinate data, which constitutes the original measurement data. The original measurement data is subjected to noise filtering and outlier detection. The purpose of noise filtering is to eliminate random noise caused by equipment or environment in the measurement data, which can be processed by low-pass filter or Kalman filter and other technologies. Outlier detection is used to identify and eliminate those measurement data points that obviously deviate from the true value, which can usually be achieved through statistical analysis or model-based detection methods. For example, the residual of the measurement data point is calculated to determine whether it is an outlier. If the residual of a data point exceeds the set threshold, it is regarded as an outlier and eliminated. After noise filtering and outlier detection, the measurement data after preliminary processing is obtained. The measurement data after preliminary processing is subjected to weighted averaging and interpolation processing. The weighted averaging processing smoothes the measurement data by weighted averaging adjacent data points to reduce the impact of measurement errors on the overall surface. The interpolation processing fills the gaps between discrete points through mathematical methods to generate continuous surface data. For example, bilinear interpolation or cubic spline interpolation methods are used for interpolation processing. Assume that on a two-dimensional plane, the coordinates of the known points are and The corresponding measurement value is and , then for any point The interpolated value It can be calculated by the following formula:
[0085] ;
[0086] Through weighted averaging and interpolation processing, more continuous and accurate surface profile data can be obtained. The continuous surface profile data is compressed and format converted. Data compression can reduce the amount of data storage, usually using principal component analysis or Fourier transform technology, while format conversion ensures that the data can be compatible with different systems or software. The surface profile data of the actual molded part is obtained.
[0087] In one example, the surface profile data of the actual molded part is compared and analyzed with the theoretical model, and the profile error of each sampling point is calculated to obtain the profile error distribution, including:
[0088] The surface contour data of the actual molded part and the theoretical model are aligned in coordinate system to obtain a data set in a unified coordinate system. Based on the data set in the unified coordinate system, the surface contour data of the actual molded part is projected using the nearest point projection algorithm to obtain a corresponding point set on the surface of the theoretical model.
[0089] The vector difference between the surface contour data of the actual molded part and the corresponding point set on the theoretical model surface is calculated to obtain the initial contour error vector field. Based on the initial contour error vector field, the principal curvature direction decomposition algorithm is used to decompose the error vector to obtain the normal error and tangential error components.
[0090] Perform statistical analysis on the normal error and tangential error components to obtain error distribution characteristic parameters, and perform error distribution probability density modeling based on the error distribution characteristic parameters to obtain an error distribution probability model;
[0091] Perform outlier detection and elimination on the error distribution probability model to obtain a corrected contour error data set, and perform discrete error point interpolation processing on the corrected contour error data set to obtain a continuous contour error distribution field;
[0092] The continuous contour error distribution field is subjected to spectral analysis to obtain the frequency spectrum characteristics of the error distribution. According to the frequency spectrum characteristics, the contour error distribution field is subjected to multi-scale decomposition to obtain the contour error distribution.
[0093] In this example, the coordinate systems of the surface contour data of the actual molded part and the theoretical model are aligned. The measured data of the actual molded part and the data of the theoretical model are placed in the same coordinate system for direct comparison. Coordinate system alignment is achieved through a feature point-based alignment method or an iterative closest point (ICP) algorithm. The ICP algorithm adjusts the position and orientation of the two point sets by minimizing the distance between corresponding points, aligning the actual measured data with the theoretical model in a unified coordinate system. The surface contour data of the actual molded part is projected using the nearest point projection algorithm. The actual measured point set is projected onto the surface of the theoretical model to find the closest point of each measured point on the theoretical model. For each measured point of the actual molded part, find its nearest point on the surface of the theoretical model and project the measured point onto the nearest point. It is expressed by the following formula:
[0094] ;
[0095] in, It is the first Points, is the set of points on the surface of the theoretical model, is the closest point on the theoretical model. The projection operation will generate a corresponding point set on the theoretical model surface, thereby establishing a point-to-point correspondence between the actual molded part data and the theoretical model data. The vector difference calculation is performed on the surface contour data of the actual molded part and the corresponding point set on the theoretical model surface to obtain the initial contour error vector field. The purpose of the vector difference calculation is to determine the deviation direction and size of each measurement point between the actual molded part and the theoretical model. Error vector It can be calculated by the following formula:
[0096] ;
[0097] in, It is The error vector of the point, is the measuring point on the actual molded part, is the corresponding projection point on the theoretical model. The error vector field contains the deviation information of all measured points relative to the theoretical model. Matrix, decompose the error vector in the direction of the principal curvature. The principal curvature direction decomposition algorithm is used to decompose the initial contour error vector field into normal error and tangential error components. Normal error refers to the component of the error vector in the direction of the surface normal, while tangential error refers to the component of the error vector in the direction of the surface tangent. Normal error usually reflects the deviation of the surface in the normal direction, while tangential error reflects the offset of the surface in the tangent direction. This decomposition can be achieved by the following formula:
[0098] ;
[0099] in, represents the normal error component, represents the tangential error component. Through this decomposition, the source and nature of the error can be analyzed more clearly. Statistical analysis is performed on the normal error and tangential error components to obtain the distribution characteristic parameters of the error, such as mean, variance, skewness and kurtosis. These parameters reflect the distribution law of the error on the entire surface. Based on the distribution characteristic parameters, a probability density model of the error distribution is constructed. The error distribution probability density model describes the probability of error occurring at different locations. Usually, this model can be implemented by estimating the probability density function of each error component. In order to improve the accuracy of error analysis, outlier detection and elimination are performed on the error distribution probability model. These outliers are identified and eliminated by statistical methods or model-based methods to obtain a corrected contour error data set. Based on the corrected contour error data set, interpolation processing of discrete error points is performed to generate a continuous contour error distribution field. The purpose of interpolation processing is to generate a smooth error distribution between measurement points to more accurately describe the error situation on the entire surface. Spectral analysis is performed on the continuous contour error distribution field to extract the spectral characteristics of the error distribution. Spectral analysis is used to identify periodic or frequency components in the error distribution, which may reflect specific characteristics of the surface shape or periodic errors generated during the processing process. Through Fourier transform, the error distribution is converted from the spatial domain to the frequency domain to obtain the spectral representation of the error distribution. The spectral characteristics help to understand the source and nature of the error. According to the spectral characteristics, the contour error distribution field is decomposed at multiple scales to obtain the error distribution at different scales. The multi-scale decomposition process can reveal the variation law of errors at different scales, such as the relationship between detail errors and overall deviations. Through techniques such as wavelet transform, the error distribution is decomposed into multiple scale levels, each level corresponds to different frequency components, and a more comprehensive error analysis result is obtained.
[0100] In one example, based on the contour error distribution, the inverse distance weighted interpolation algorithm is used to perform interpolation operation on the entire mold surface to obtain the mold surface compensation amount distribution, including:
[0101] Perform spatial discretization on the contour error distribution to obtain a discrete error point set, and construct the topological relationship of the error points based on the discrete error point set;
[0102] Perform boundary detection on the topological relationship of the error points to obtain the boundary contour of the mold surface, and re-mesh the mold surface according to the boundary contour of the mold surface to obtain evenly distributed target grid points;
[0103] A spatial index is constructed for the target grid points and the discrete error point set to obtain a fast retrieval structure, and based on the fast retrieval structure, the error sampling points within the influence domain are determined for each target grid point to obtain a local interpolation data set;
[0104] Perform reverse distance weight calculation on each error sampling point in the local interpolation data set to obtain a weight coefficient matrix, and perform weighted average calculation on each target grid point based on the weight coefficient matrix and the local interpolation data set to obtain a preliminary interpolation result;
[0105] The preliminary interpolation result is subjected to Laplace smoothing to obtain the smoothed compensation amount distribution, and according to the smoothed compensation amount distribution, the mold surface is subjected to continuous processing to obtain the mold surface compensation amount distribution.
[0106] In this example, the continuous error distribution is converted into a discrete error point set. The continuous error information in the error distribution field is represented as a set of discrete points, each of which represents the error value at a specific position on the mold surface. The topological relationship of the error points is constructed based on the discrete error point set. The topological relationship reflects the proximity and connectivity of the error points in space. By constructing the topological relationship of the error points, it is determined which error points are adjacent to each other and the geometric relationship between them. For example, the error point set is connected into a network structure using algorithms such as Delaunay triangulation or Voronoi diagram to describe the relative position relationship between the error points. The topological relationship of the error points is subjected to boundary detection to identify the boundary contour on the mold surface. The goal of boundary detection is to extract the boundary contour line of the area where the error points on the mold surface are concentrated, so as to clearly divide the inner and outer boundaries of the mold surface. The mold surface is re-meshed according to the mold surface boundary contour obtained by boundary detection. Through homogenization, a set of uniformly distributed target grid points are generated on the entire mold surface. The uniform distribution of grid points can improve the accuracy of interpolation calculation and ensure the accuracy and continuity of compensation amount distribution. Mesh re-division usually adopts quadrilateral or triangular mesh generation algorithm to generate a new mesh structure according to boundary conditions and internal node density. Spatial index is constructed for target grid points and discrete error point sets to establish a fast retrieval structure. Spatial index structure makes the search and matching process between a large number of data points more efficient. Common spatial index methods include kd tree and R tree, etc., which quickly locate and retrieve error sampling points adjacent to each target grid point by constructing a hierarchical index structure. Through spatial index, the set of error sampling points in the influence domain of each target grid point is determined to form a local interpolation data set. The local interpolation data set includes all error sampling points associated with the target grid point. When calculating the inverse distance weight for each error sampling point in the local interpolation data set, the inverse distance weighted interpolation method is usually used. The basic idea of inverse distance weight is that the closer the error sampling point is to the target grid point, the greater its influence and the greater its weight. The formula for calculating inverse distance weight is as follows:
[0107] ;
[0108] in, Indicates The weight of the error sampling point, Represents the distance from the sampling point to the target grid point, is a distance decay exponent, usually taking a value of 2 or greater. The weight coefficient matrix is calculated to perform weighted average calculation on the error sampling points in the local interpolation data set to obtain the preliminary interpolation result of each target grid point. The preliminary interpolation result is subjected to Laplace smoothing. Laplace smoothing makes the grid surface smoother in space by iteratively adjusting the position of the grid points. The Laplace smoothing algorithm is usually iteratively calculated using the following formula:
[0109] ;
[0110] in, represents the position of a grid point in the preliminary interpolation result, is the smoothing coefficient, which usually takes a value between 0 and 1. is the Laplace operator result of the point, which indicates the average position difference between the point and its neighboring points. Through multiple iterations, the smoothed compensation distribution is obtained to eliminate the surface mutation or discontinuity caused by local errors. Based on the smoothed compensation distribution, the entire mold surface is processed continuously to generate a complete mold surface compensation distribution. The continuous processing realizes a smooth transition of the mold surface compensation by interpolating between discrete grid points, ensuring that the compensation result can accurately reflect the shape requirements of the mold and provide accurate data required for processing.
[0111] In one example, according to the distribution of the compensation amount on the mold surface, the three-dimensional model of the hot pressing mold is corrected to generate a compensated mold processing model, including:
[0112] Gridding the compensation distribution on the mold surface to obtain compensation grid data, and grid matching the three-dimensional model of the hot pressing mold according to the compensation grid data to obtain the corresponding relationship between the model grid and the compensation grid;
[0113] Perform interpolation calculation on the correspondence between the model grid and the compensation grid to obtain the compensation vector of each node on the model surface, and perform coordinate offset on the model surface node according to the compensation vector to obtain the model data after preliminary correction;
[0114] Performing surface reconstruction on the model data after preliminary correction to obtain a continuous compensation model surface, and performing feature recognition based on the continuous compensation model surface to obtain key geometric features of the model;
[0115] Perform parametric modeling on the key geometric features of the model to obtain a parametric compensation model, and perform geometric constraint analysis based on the parametric compensation model to obtain the model topological structure relationship;
[0116] The model topological structure relationship is optimized and adjusted to obtain an optimized compensation model structure, and a compensated mold processing model is generated according to the optimized compensation model structure.
[0117] In this example, the compensation distribution on the mold surface is gridded. The continuous compensation distribution data is discretized into a set of regular grid point data to obtain compensation grid data. The gridding process usually involves dividing the mold surface into a series of small grid units, each unit corresponding to a compensation value. The compensation grid data is grid matched with the three-dimensional model of the hot pressing mold. A one-to-one correspondence is established between the compensation grid and the model grid so that each model grid point can obtain the corresponding compensation. The matching process can be achieved through nearest neighbor search or mapping function. For each grid point of the model, find its nearest point in the compensation grid data, and assign the compensation value of the point to the model grid point. This process can be expressed by the following formula:
[0118] ;
[0119] in, are the coordinates of the initial model grid points, is the corresponding compensation vector, is the coordinate of the grid point corrected after compensation. Through this formula, the compensation vector in the compensation amount grid data is applied to each grid point of the model to obtain the preliminary corrected model data. The model data after preliminary correction is reconstructed to reorganize the discrete corrected grid points into a continuous surface model. This process usually uses mathematical tools such as NURBS (non-uniform rational B-spline) or Bezier surface. Through surface reconstruction, a smooth compensation model surface is generated to avoid the phenomenon of uneven or discontinuous surface caused by the deviation of discrete points. Feature recognition is performed on the continuous compensation model surface. Key geometric features are extracted from the compensation model surface. These features usually include boundaries, surface intersections, convex and concave parts, etc. Feature recognition can be achieved by analyzing curvature changes, gradient information, and geometric discontinuities. After completing feature recognition, the key geometric features of the model are parametrically modeled, and the compensated geometric features are represented by mathematical functions or parameters, making the model more flexible and easy to operate in subsequent design and adjustment. Through parametric modeling, the geometric shape of the model is directly associated with the design parameters, which makes it easy to make design changes or optimization adjustments. For example, a surface is represented by control points and weight parameters, so that when the control point position or weight is adjusted, the surface shape will change accordingly, realizing flexible model optimization. After the parametric model is generated, geometric constraint analysis is performed based on the parametric model. The purpose of geometric constraint analysis is to ensure that the model always meets the geometric conditions and constraint relationships of the design during the modification or optimization process. By analyzing the relationship between different geometric features in the model, possible geometric conflicts or unreasonableness can be identified and adjusted during the optimization process. Geometric constraint analysis usually involves the analysis and optimization of topological structures to ensure that the various parts of the model have the correct connection relationship and relative position. The topological structure relationship of the model is optimized and adjusted. The goal of topological structure optimization is to eliminate geometric conflicts, simplify the model structure, and improve the processability and stability of the model. Through optimization, a more reasonable and concise compensation model structure is generated. For example, when optimizing a complex surface, the topological structure of the surface is simplified by adjusting the grid density and the control point position, making it easier to manufacture and process. The compensated mold processing model is generated based on the optimized compensation model structure. The generation of a processing model usually needs to take into account the actual processing technology and equipment constraints to ensure that the model can be successfully implemented in actual production. For example, when generating a processing model for a car body mold, factors such as the mold casting process, cooling system layout, and assembly tolerance need to be considered to ensure the manufacturing accuracy and functionality of the mold.
[0120] In one example, the compensation amount distribution on the mold surface is gridded to obtain compensation amount grid data, and the three-dimensional model of the hot pressing mold is grid matched according to the compensation amount grid data to obtain the corresponding relationship between the model grid and the compensation amount grid, including:
[0121] Performing isoparametric processing on the compensation amount distribution of the mold surface to obtain a parameterized compensation amount distribution field, and performing grid division of the compensation amount distribution according to the parameterized compensation amount distribution field to obtain an initial compensation amount grid;
[0122] The mesh quality of the initial compensation mesh is evaluated and optimized to obtain the optimized compensation mesh, and the features of the three-dimensional model of the hot pressing mold are extracted to obtain the target model features;
[0123] According to the characteristics of the target model, the three-dimensional model of the hot pressing mold is parametrically reconstructed to obtain a parametric model, and the main curvature direction of the parametric model and the optimized compensation grid is analyzed to obtain the curvature field distribution;
[0124] According to the curvature field distribution, the parameterized model and the compensation grid are roughly matched to obtain a preliminary corresponding relationship;
[0125] The preliminary correspondence is optimized by iterative nearest point algorithm to obtain an accurate point-to-point mapping relationship. Based on the point-to-point mapping relationship, a continuous mapping function is constructed to obtain the correspondence between the model grid and the compensation grid.
[0126] In this example, the compensation distribution on the mold surface is parametrized to transform the complex and irregular compensation distribution field into a regular and uniform parameterized space for subsequent meshing and model matching. In this process, techniques such as B-splines or NURBS (non-uniform rational B-splines) are used to represent the compensation distribution field to obtain a parameterized compensation distribution field. The parameterized compensation distribution field is meshed to generate an initial compensation mesh. The parameterized compensation distribution field is divided into a series of small mesh units, each of which represents the compensation value of a local area. Usually, meshing can be achieved through standard mesh generation algorithms, such as quadrilateral mesh generation or triangular mesh generation. The initial compensation mesh is quality evaluated and optimized to detect whether the shape and distribution of the mesh meet the expected requirements, mainly checking whether the shape of the mesh is regular, whether there is a large size difference between the mesh units, and whether there is stretching or distortion. Quality evaluation can be achieved by calculating the shape parameters of the mesh units (such as angle, area ratio, side length ratio, etc.). If the mesh quality is found to be substandard, it needs to be improved through mesh optimization algorithms, such as eliminating irregular mesh units through local refinement or re-division to obtain an optimized compensation mesh. Feature extraction is performed on the three-dimensional model of the hot pressing mold to identify and extract key geometric features on the mold surface, such as boundary lines, surface intersections, convex and concave parts, etc. The location and shape of these key features are determined by analyzing the curvature, normal vector and other geometric properties of the model. Based on the extracted target model features, the three-dimensional model of the mold is parametrically reconstructed. The process of parametric reconstruction is to convert the original three-dimensional model into a parametric model so that its geometric shape can be described and controlled by a set of parameters. The advantage of the parametric model is that it can achieve precise control of the model shape by adjusting parameters, which is of great significance in model optimization and matching. In this process, NURBS surfaces or other parametric modeling techniques are used to construct the model so that the complex shape of the model surface can be accurately described by parametric representation. The main curvature direction analysis is performed on the parametric model and the optimized compensation mesh to determine the curvature direction and size of each point on the model surface. The principal curvature directions are usually determined by calculating the directions of the maximum and minimum curvatures on the model surface, which describe the degree of curvature of the surface in different directions. Through the principal curvature direction analysis, a curvature field distribution map is generated, which reflects the curvature changes of various parts of the model surface. According to the curvature field distribution map, the parameterized model and the compensation grid are roughly matched to preliminarily determine the correspondence between the two. This process can be achieved through nearest neighbor search or other geometric matching algorithms, pairing each grid point on the parameterized model with the point with the closest curvature in the compensation grid to obtain a preliminary point-to-point correspondence. The preliminary correspondence is optimized by the iterative closest point algorithm (ICP).The ICP algorithm repeatedly adjusts the point-to-point correspondence relationship, gradually reduces the error between the two, and obtains an accurate point-to-point mapping relationship. The basic principle of the ICP algorithm is to minimize the distance between corresponding points, and its objective function can be expressed as:
[0127] ;
[0128] in, represents the grid points of the parameterized model, represents the corresponding point in the compensation grid, is the rotation matrix, is the translation vector, is the distance error between points. and , which can make the error function Minimize and obtain an accurate mapping relationship. A continuous mapping function is constructed based on the accurate point-to-point mapping relationship. The continuous mapping function describes the spatial transformation relationship between the parameterized model grid and the compensation grid, so that the two can correspond continuously and smoothly on the entire surface. Through this mapping function, accurate adjustment and compensation of the model surface are achieved, so that the model can accurately reflect the design requirements and meet the needs of actual processing.
[0129] Reference Figure 2 , this embodiment provides a contour accuracy compensation system for a precision hot pressing mold, comprising:
[0130] A meshing module 1 is used to mesh the three-dimensional model of the hot pressing mold to obtain mesh data of the mold surface;
[0131] Curvature analysis module 2, used to perform curvature analysis on the mold surface mesh data, and divide the mold surface into high curvature areas and low curvature areas by setting a curvature threshold;
[0132] Sampling module 3, used for performing high-density sampling on high-curvature areas and low-density sampling on low-curvature areas to obtain a sampling point set;
[0133] The measuring module 4 is used to measure the three-dimensional coordinates of the sampling point set using a three-dimensional coordinate measuring machine to obtain the surface profile data of the actual molded part;
[0134] The calculation module 5 is used to compare and analyze the surface profile data of the actual molded part with the theoretical model, calculate the profile error of each sampling point, and obtain the profile error distribution;
[0135] An interpolation operation module 6 is used to perform interpolation operation on the entire mold surface based on the contour error distribution by using a reverse distance weighted interpolation algorithm to obtain a mold surface compensation amount distribution;
[0136] The generating module 7 is used to modify the three-dimensional model of the hot pressing mold according to the distribution of the compensation amount of the mold surface, and generate a compensated mold processing model.
[0137] In this embodiment, for the specific implementation of each unit in the above system embodiment, please refer to the above method embodiment, which will not be repeated here.
[0138] Reference Figure 3 In an embodiment of the present invention, a computer device is also provided. The computer device may be a server, and its internal structure may be as follows: Figure 3 As shown. The computer device includes a processor, a memory, a display screen, an input device, a network interface and a database connected through a system bus. Among them, the processor designed by the computer is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding data in this embodiment. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0139] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0140] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.
[0141] In summary, a method for compensating the contour accuracy of a precision hot pressing mold is proposed in an embodiment of the present invention.
[0142] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided by the present invention and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM.
[0143] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, system, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, system, article or method. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, system, article or method including the element.
[0144] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for compensating the contour accuracy of a precision hot pressing mold. It is characterized in that The following steps are involved: Meshing the three-dimensional model of the hot pressing mold to obtain mesh data of the mold surface; specifically comprising: extracting surface features of the three-dimensional model of the hot pressing mold to obtain geometric feature data of the mold surface; dividing the mold surface into regions according to the geometric feature data to obtain multiple sub-regions, and calculating the curvature of each sub-region to obtain curvature distribution data of each sub-region; allocating mesh density to each sub-region according to the curvature distribution data to obtain a mesh density distribution scheme, and based on the mesh density distribution scheme, performing initial meshing on the mold surface to obtain initial mesh data; performing mesh quality evaluation on the initial mesh data to obtain a mesh quality evaluation result, and locally refining the mesh units according to the mesh quality evaluation result to obtain refined mesh data; performing mesh smoothing on the refined mesh data to obtain smoothed mesh data, and performing topological structure optimization and boundary adaptability adjustment on the smoothed mesh data to obtain mesh data of the mold surface; Performing curvature analysis on the mold surface mesh data, and dividing the mold surface into high curvature areas and low curvature areas by setting a curvature threshold; specifically comprising: performing Gaussian curvature and average curvature calculations on the mold surface mesh data to obtain a curvature value of each mesh node, and performing cluster analysis on the mesh nodes according to the curvature value to obtain a preliminary curvature distribution area; performing boundary detection on the preliminary curvature distribution area to obtain a boundary contour, and merging adjacent areas according to the boundary contour to obtain an optimized curvature distribution area; performing cluster analysis on the optimized curvature The method comprises the following steps: performing statistical analysis on the distribution area to obtain a curvature distribution histogram, and calculating an optimal curvature threshold according to the curvature distribution histogram to obtain an initial curvature threshold; performing local sensitivity analysis on the initial curvature threshold to obtain a threshold adjustment coefficient, and correcting the initial curvature threshold according to the threshold adjustment coefficient to obtain a target curvature threshold; performing binarization processing on the mold surface based on the target curvature threshold to obtain a preliminary division result of high and low curvature areas, and performing morphological operations on the preliminary division result to divide the mold surface into a high curvature area and a low curvature area; The high curvature region is sampled with high density, and the low curvature region is sampled with low density to obtain a sampling point set; specifically, the method comprises: extracting boundaries of the high curvature region and the low curvature region respectively to obtain a region boundary contour line, and performing grid subdivision on the high curvature region and the low curvature region according to the region boundary contour line to obtain subdivided grid data; performing curvature gradient analysis on the subdivided grid data to obtain a curvature gradient distribution map, and setting sampling density coefficients for the high curvature region and the low curvature region respectively according to the curvature gradient distribution map to obtain a sampling density distribution scheme; based on the sampling density distribution scheme, initial sampling points are generated for the high curvature region and the low curvature region to obtain a plurality of initial sampling points; performing spatial distribution uniformity analysis on the plurality of initial sampling points to obtain a sampling point distribution evaluation result, and performing sampling point optimization adjustment according to the sampling point distribution evaluation result to obtain a sampling point set; The three-dimensional coordinate measurement of the sampling point set is performed using a three-dimensional coordinate measuring machine to obtain the surface contour data of the actual molded part; specifically, the method includes: performing spatial distribution analysis on the sampling point set to obtain the spatial distribution characteristics of the sampling points, and performing measurement path planning according to the spatial distribution characteristics of the sampling points to obtain an optimized measurement path; calibrating and error compensating the three-dimensional coordinate measuring machine to construct an error model of the measurement system, and setting motion control parameters of the three-dimensional coordinate measuring machine according to the optimized measurement path and the error model to obtain measurement control instructions; based on the measurement control instructions, the sampling point set is measured point by point to obtain raw measurement data, and the raw measurement data is subjected to noise filtering and outlier detection to obtain preliminarily processed measurement data; weighted averaging and interpolation processing are performed according to the preliminarily processed measurement data to obtain continuous surface contour data, and data compression and format conversion are performed on the continuous surface contour data to obtain surface contour data of the actual molded part; The surface contour data of the actual molded part is compared and analyzed with the theoretical model, and the contour error of each sampling point is calculated to obtain the contour error distribution; specifically, the following steps are performed: the surface contour data of the actual molded part and the theoretical model are aligned in coordinate system to obtain a data set in a unified coordinate system, and the surface contour data of the actual molded part is projected by a nearest point projection algorithm based on the data set in the unified coordinate system to obtain a corresponding point set on the surface of the theoretical model; vector difference calculation is performed on the surface contour data of the actual molded part and the corresponding point set on the surface of the theoretical model to obtain an initial contour error vector field, and the principal curvature direction decomposition algorithm is used to perform the initial contour error vector field. Decomposing the error vector to obtain normal error and tangential error components; performing statistical analysis on the normal error and the tangential error components to obtain error distribution characteristic parameters, and performing error distribution probability density modeling based on the error distribution characteristic parameters to obtain an error distribution probability model; performing outlier detection and elimination on the error distribution probability model to obtain a corrected contour error data set, and performing discrete error point interpolation processing based on the corrected contour error data set to obtain a continuous contour error distribution field; performing spectral analysis on the continuous contour error distribution field to obtain the frequency spectrum characteristics of the error distribution, and performing multi-scale decomposition on the contour error distribution field based on the frequency spectrum characteristics to obtain a contour error distribution; Based on the contour error distribution, an inverse distance weighted interpolation algorithm is used to perform interpolation operation on the entire mold surface to obtain a mold surface compensation amount distribution; According to the compensation amount distribution of the mold surface, the three-dimensional model of the hot pressing mold is corrected to generate a compensated mold processing model.
2. The contour accuracy compensation method of the precision hot pressing mold according to claim 1, It is characterized in that Based on the contour error distribution, the inverse distance weighted interpolation algorithm is used to perform interpolation operation on the entire mold surface to obtain the mold surface compensation amount distribution, including: Performing spatial discretization processing on the contour error distribution to obtain a discrete error point set, and constructing a topological relationship of the error points based on the discrete error point set; Performing boundary detection on the topological relationship of the error points to obtain a mold surface boundary contour, and re-meshing the mold surface according to the mold surface boundary contour to obtain evenly distributed target grid points; Performing spatial index construction on the target grid points and the discrete error point set to obtain a fast retrieval structure, and determining error sampling points within an influence domain for each target grid point according to the fast retrieval structure to obtain a local interpolation data set; Performing reverse distance weight calculation on each error sampling point in the local interpolation data set to obtain a weight coefficient matrix, and performing weighted average calculation on each target grid point based on the weight coefficient matrix and the local interpolation data set to obtain a preliminary interpolation result; The preliminary interpolation result is subjected to Laplace smoothing processing to obtain a smoothed compensation amount distribution, and the mold surface is subjected to continuity processing according to the smoothed compensation amount distribution to obtain a mold surface compensation amount distribution.
3. The contour accuracy compensation method of the precision hot pressing mold according to claim 1, It is characterized in that The method of modifying the three-dimensional model of the hot pressing mold according to the mold surface compensation amount distribution to generate a compensated mold processing model includes: Gridding the compensation amount distribution on the mold surface to obtain compensation amount grid data, and grid matching the three-dimensional model of the hot pressing mold according to the compensation amount grid data to obtain a corresponding relationship between the model grid and the compensation amount grid; Performing interpolation calculation on the correspondence between the model grid and the compensation amount grid to obtain a compensation vector for each node on the model surface, and performing coordinate shifting on the model surface nodes according to the compensation vector to obtain preliminarily corrected model data; Performing surface reconstruction on the model data after the preliminary correction to obtain a continuous compensation model surface, and performing feature recognition based on the continuous compensation model surface to obtain key geometric features of the model; Performing parameterized modeling on key geometric features of the model to obtain a parameterized compensation model, and performing geometric constraint analysis based on the parameterized compensation model to obtain a topological structural relationship of the model; The model topological structure relationship is optimized and adjusted to obtain an optimized compensation model structure, and a compensated mold processing model is generated according to the optimized compensation model structure.
4. The contour accuracy compensation method of the precision hot pressing mold according to claim 3, It is characterized in that The gridding process is performed on the compensation amount distribution of the mold surface to obtain compensation amount grid data, and grid matching is performed on the three-dimensional model of the hot pressing mold according to the compensation amount grid data to obtain the corresponding relationship between the model grid and the compensation amount grid, including: Performing isoparametric processing on the compensation amount distribution on the mold surface to obtain a parameterized compensation amount distribution field, and performing grid division of the compensation amount distribution according to the parameterized compensation amount distribution field to obtain an initial compensation amount grid; Performing mesh quality evaluation and optimization on the initial compensation mesh to obtain an optimized compensation mesh, and performing feature extraction on the three-dimensional model of the hot pressing mold to obtain target model features; According to the target model characteristics, the three-dimensional model of the hot pressing mold is parameterized and reconstructed to obtain a parameterized model, and the parameterized model and the optimized compensation amount grid are analyzed in the main curvature direction to obtain a curvature field distribution; According to the curvature field distribution, the parameterized model and the compensation amount grid are roughly matched to obtain a preliminary corresponding relationship; The preliminary corresponding relationship is optimized by an iterative closest point algorithm to obtain an accurate point-to-point mapping relationship, and based on the point-to-point mapping relationship, a continuous mapping function is constructed to obtain a corresponding relationship between the model grid and the compensation amount grid.
5. A contour accuracy compensation system for precision hot pressing molds, It is characterized in that A method for compensating the contour accuracy of a precision hot pressing mold according to any one of claims 1 to 4, the system comprising: A mesh division module is used to mesh the three-dimensional model of the hot pressing mold to obtain mesh data of the mold surface; specifically comprising: extracting surface features of the three-dimensional model of the hot pressing mold to obtain geometric feature data of the mold surface; dividing the mold surface into regions according to the geometric feature data to obtain multiple sub-regions, and calculating the curvature of each sub-region to obtain curvature distribution data of each sub-region; allocating mesh density to each sub-region according to the curvature distribution data to obtain a mesh density distribution scheme, and based on the mesh density distribution scheme, performing initial mesh division on the mold surface to obtain initial mesh data; performing mesh quality evaluation on the initial mesh data to obtain a mesh quality evaluation result, and locally refining the mesh units according to the mesh quality evaluation result to obtain refined mesh data; performing mesh smoothing on the refined mesh data to obtain smoothed mesh data, and performing topological structure optimization and boundary adaptability adjustment on the smoothed mesh data to obtain mesh data of the mold surface; The curvature analysis module is used to perform curvature analysis on the mold surface mesh data, and divide the mold surface into high curvature areas and low curvature areas by setting a curvature threshold; specifically, the module comprises: performing Gaussian curvature and average curvature calculations on the mold surface mesh data to obtain the curvature value of each mesh node, and performing cluster analysis on the mesh nodes according to the curvature value to obtain a preliminary curvature distribution area; performing boundary detection on the preliminary curvature distribution area to obtain a boundary contour, and merging adjacent areas according to the boundary contour to obtain an optimized curvature distribution area; and performing cluster analysis on the optimized curvature distribution area. The curvature distribution area after the mold is subjected to statistical analysis to obtain a curvature distribution histogram, and the optimal curvature threshold is calculated according to the curvature distribution histogram to obtain an initial curvature threshold; a local sensitivity analysis is performed on the initial curvature threshold to obtain a threshold adjustment coefficient, and the initial curvature threshold is corrected according to the threshold adjustment coefficient to obtain a target curvature threshold; based on the target curvature threshold, the mold surface is binarized to obtain a preliminary division result of high and low curvature areas, and a morphological operation is performed on the preliminary division result to divide the mold surface into a high curvature area and a low curvature area; The sampling module is used to perform high-density sampling on the high curvature area and low-density sampling on the low curvature area to obtain a sampling point set; specifically comprising: extracting the boundaries of the high curvature area and the low curvature area respectively to obtain the area boundary contour line, and performing grid subdivision on the high curvature area and the low curvature area according to the area boundary contour line to obtain the subdivided grid data; performing curvature gradient analysis on the subdivided grid data to obtain a curvature gradient distribution map, and setting sampling density coefficients for the high curvature area and the low curvature area respectively according to the curvature gradient distribution map to obtain a sampling density distribution scheme; based on the sampling density distribution scheme, generating initial sampling points for the high curvature area and the low curvature area to obtain multiple initial sampling points; performing spatial distribution uniformity analysis on the multiple initial sampling points to obtain sampling point distribution evaluation results, and performing sampling point optimization adjustment according to the sampling point distribution evaluation results to obtain a sampling point set; The measuring module is used to perform three-dimensional coordinate measurement on the sampling point set by using a three-dimensional coordinate measuring machine to obtain surface profile data of the actual molded part; specifically comprising: performing spatial distribution analysis on the sampling point set to obtain spatial distribution characteristics of the sampling points, and performing measurement path planning according to the spatial distribution characteristics of the sampling points to obtain an optimized measurement path; calibrating and error compensating the three-dimensional coordinate measuring machine to construct an error model of the measurement system, and setting motion control parameters of the three-dimensional coordinate measuring machine according to the optimized measurement path and the error model to obtain measurement control instructions; based on the measurement control instructions, performing point-by-point measurement on the sampling point set to obtain raw measurement data, and performing noise filtering and outlier detection on the raw measurement data to obtain initially processed measurement data; performing weighted averaging and interpolation processing on the initially processed measurement data to obtain continuous surface profile data, and performing data compression and format conversion on the continuous surface profile data to obtain surface profile data of the actual molded part; The calculation module is used to compare and analyze the surface contour data of the actual molded part with the theoretical model, calculate the contour error of each sampling point, and obtain the contour error distribution; specifically, it includes: aligning the coordinate system of the surface contour data of the actual molded part and the theoretical model to obtain a data set in a unified coordinate system, and according to the data set in the unified coordinate system, using the nearest point projection algorithm to project the surface contour data of the actual molded part to obtain a corresponding point set on the surface of the theoretical model; performing vector difference calculation on the surface contour data of the actual molded part and the corresponding point set on the surface of the theoretical model to obtain an initial contour error vector field, and according to the initial contour error vector field, using the principal curvature direction decomposition The algorithm performs error vector decomposition to obtain normal error and tangential error components; performs statistical analysis on the normal error and the tangential error components to obtain error distribution characteristic parameters, and performs error distribution probability density modeling based on the error distribution characteristic parameters to obtain an error distribution probability model; performs outlier detection and elimination on the error distribution probability model to obtain a corrected contour error data set, and performs discrete error point interpolation processing based on the corrected contour error data set to obtain a continuous contour error distribution field; performs spectral analysis on the continuous contour error distribution field to obtain the frequency spectrum characteristics of the error distribution, and performs multi-scale decomposition on the contour error distribution field based on the frequency spectrum characteristics to obtain a contour error distribution; An interpolation operation module is used to perform interpolation operation on the entire mold surface based on the contour error distribution by using a reverse distance weighted interpolation algorithm to obtain a mold surface compensation amount distribution; A generating module is used to correct the three-dimensional model of the hot pressing mold according to the distribution of the compensation amount of the mold surface, and generate a compensated mold processing model.
Citation Information
Patent Citations
Contour offset compensation method for multi-station precision hot press forming mold of small-caliber glass lens
CN113343515A
Display method and device of three-dimensional model, electronic equipment and readable storage medium
CN118132517A
