Spatial geometry evaluation method and device, computer device, storage medium and computer program product
By generating geometric evaluation instructions to construct a reference coordinate system and performing coordinate transformation and alignment, the problem of low accuracy in traditional workpiece spatial geometric evaluation is solved, and high-precision automated evaluation is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHOTEST TECH INC
- Filing Date
- 2026-03-25
- Publication Date
- 2026-07-21
AI Technical Summary
Traditional workpiece spatial geometry evaluation methods rely on manual evaluation, which involves subjective factors and results in low accuracy. Furthermore, existing coordinate measuring systems cannot perform diverse coordinate measurements and spatial geometry evaluations.
By generating geometric evaluation instructions, constructing a reference coordinate system, performing coordinate transformation and alignment, obtaining measured and theoretical coordinate values, and calculating dimensional deviation values, the spatial geometric evaluation of the workpiece is realized.
It improves the accuracy of workpiece spatial geometry evaluation, eliminates systematic errors caused by coordinate system mismatch, avoids errors caused by human intervention, and ensures the accuracy of evaluation results.
Smart Images

Figure CN121904174B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a spatial geometry evaluation method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] In industrial manufacturing, accurate spatial geometric evaluation of workpieces is crucial for verifying machining accuracy and controlling production quality.
[0003] In traditional techniques, spatial geometric evaluation of workpieces is generally performed manually. However, this method is subject to subjective factors and prone to errors, resulting in low accuracy in spatial geometric evaluation. This is particularly true in the field of coordinate measuring machines (CMMs), where most current CMM systems only have measurement functions or basic spatial geometric evaluation capabilities, making them unsuitable for handling diverse CMM measurement results and various spatial geometric evaluation indices. Summary of the Invention
[0004] Therefore, it is necessary to provide a spatial geometry evaluation method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the accuracy of workpiece spatial geometry evaluation in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a spatial geometry evaluation method, including:
[0006] Based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0007] Based on the geometric evaluation instructions and the reference features, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
[0008] Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system;
[0009] Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical values, determine the dimensional deviation value of the evaluation feature.
[0010] Based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained.
[0011] In one embodiment, the reference features include a first reference feature and a second reference feature of the workpiece to be evaluated;
[0012] The step of constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features includes:
[0013] When the directions corresponding to the first reference feature and the second reference feature are not orthogonal to each other, the target reference feature with the highest priority is determined from the first reference feature and the second reference feature.
[0014] Based on the first direction corresponding to the target reference feature, from the candidate directions of other reference features, the candidate direction with the smallest direction deviation value between it and the initial direction corresponding to the other reference feature is selected as the second direction corresponding to the other reference feature; the candidate direction is used to represent the direction that is orthogonal to the first direction; the other reference features are used to represent the reference features other than the target reference feature among the first reference feature and the second reference feature.
[0015] Obtain the first origin position corresponding to the target reference feature and the second origin position of the other reference features, and construct the reference coordinate system corresponding to the workpiece to be evaluated based on the first direction, the second direction, the first origin position and the second origin position.
[0016] In one embodiment, the priority of the first reference feature is greater than the priority of the second reference feature;
[0017] The step of performing coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system includes:
[0018] Obtain the first measurement point coordinate value and the first theoretical coordinate value of the first reference feature in the measurement coordinate system, and the second measurement point coordinate value and the second theoretical coordinate value of the second reference feature in the measurement coordinate system.
[0019] The coordinate values of the first measurement point and the coordinate values of the second measurement point are respectively fitted to obtain the first fitted feature coordinate value corresponding to the coordinate value of the first measurement point and the second fitted feature coordinate value corresponding to the coordinate value of the second measurement point;
[0020] Based on the coordinate value difference between the first fitted feature coordinate value and the first theoretical coordinate value, the initial coordinate transformation relationship between the reference coordinate system and the measurement coordinate system is determined;
[0021] Based on the coordinate difference between the second fitted feature coordinate value and the second theoretical coordinate value, the initial coordinate transformation relationship is adjusted to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0022] In one embodiment, determining the dimensional deviation value under the evaluation feature based on the coordinate transformation relationship, the measured coordinate value, and the theoretical coordinate value includes:
[0023] When the coordinate transformation relationship is unique, the measured coordinate values are transformed according to the coordinate transformation relationship to obtain the first processed measured coordinate values of the evaluation feature in the reference coordinate system. The first processed measured coordinate values are fitted to obtain the first fitted feature corresponding to the evaluation feature. Based on the first size deviation value between the size parameters of the first fitted feature and the theoretical size parameters, the size deviation value under the evaluation feature is obtained.
[0024] or,
[0025] When the coordinate transformation relationship is not unique, the measured coordinate values are transformed according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system. The second processed measured coordinate values are fitted to obtain the second fitted feature. The second size deviation value between the size parameter of the second fitted feature and the theoretical size parameter is determined. The initial coordinate transformation relationship is iteratively adjusted according to the second size deviation value until the obtained second size deviation value is the minimum size deviation value. Then, the minimum size deviation value is taken as the size deviation value under the evaluation feature.
[0026] In one embodiment, constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features further includes:
[0027] Obtain the three-axis orientation and origin position of the measurement coordinate system;
[0028] Based on the direction corresponding to the reference feature, the three-axis direction, and the origin position, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
[0029] In one embodiment, generating geometric evaluation instructions for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters includes:
[0030] Obtain the determined workpiece information of the workpiece to be evaluated; the determined workpiece information is used to represent any one of the reference feature, the evaluation feature, and the setting parameter;
[0031] Based on the determined workpiece information, the selection range corresponding to the workpiece information to be determined for the workpiece to be evaluated is determined; the workpiece information to be determined is used to represent workpiece information other than the determined workpiece information among the benchmark features, the evaluation features, and the setting parameters.
[0032] From the various workpiece information to be determined, select the workpiece information that meets the corresponding selection range and use it as the target workpiece information to be determined.
[0033] Based on the determined workpiece information and the target workpiece information to be determined, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0034] Secondly, this application also provides a spatial geometry evaluation device, comprising:
[0035] The instruction generation module is used to generate geometric evaluation instructions for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters.
[0036] The coordinate system construction module is used to construct the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features according to the geometric evaluation instructions.
[0037] The relationship determination module is used to obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and to perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0038] The deviation value determination module is used to obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system, and determine the size deviation value of the evaluation feature based on the coordinate transformation relationship, the measured coordinate values and the theoretical values;
[0039] The workpiece evaluation module is used to obtain the spatial geometric evaluation result of the workpiece to be evaluated based on the dimensional deviation value.
[0040] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0041] Based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0042] Based on the geometric evaluation instructions and the reference features, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
[0043] Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system;
[0044] Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical values, determine the dimensional deviation value of the evaluation feature.
[0045] Based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained.
[0046] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0047] Based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0048] Based on the geometric evaluation instructions and the reference features, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
[0049] Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system;
[0050] Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical values, determine the dimensional deviation value of the evaluation feature.
[0051] Based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained.
[0052] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0053] Based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0054] Based on the geometric evaluation instructions and the reference features, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
[0055] Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system;
[0056] Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical values, determine the dimensional deviation value of the evaluation feature.
[0057] Based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained.
[0058] The aforementioned spatial geometric evaluation method, apparatus, computer equipment, storage medium, and computer program product first generate a geometric evaluation instruction for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters. Then, using the geometric evaluation instruction, a reference coordinate system corresponding to the workpiece to be evaluated is constructed based on the reference features. Next, the measurement coordinate system corresponding to the workpiece to be evaluated is obtained, and coordinate transformation and alignment processing is performed on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system. Then, the measured coordinate values of the evaluation features in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system are obtained. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical coordinate values, the dimensional deviation value of the evaluation features is determined. Finally, based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained. In this way, when performing spatial geometric evaluation of a workpiece, precise geometric evaluation instructions are first generated based on the workpiece's datum features, evaluation features, and parameters. Then, a standardized datum coordinate system is constructed using the datum features. Through coordinate transformation, precise alignment between the datum coordinate system and the measurement coordinate system is achieved, eliminating systematic errors caused by coordinate system mismatch. Furthermore, by combining the measured coordinate values and theoretical coordinate values of the evaluation features in both coordinate systems, and relying on reliable coordinate transformation relationships, dimensional deviations are accurately calculated. From coordinate system establishment and alignment to deviation calculation, interference factors such as inconsistent datums and coordinate misalignment are avoided throughout the entire process, which helps improve the accuracy of workpiece spatial geometric evaluation. Moreover, the entire process does not require manual intervention, avoiding the subjective factors and errors inherent in manual evaluation methods, which can lead to lower accuracy in workpiece spatial geometric evaluation. This further improves the accuracy of workpiece spatial geometric evaluation. Attached Figure Description
[0059] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0060] Figure 1 This is a flowchart illustrating a spatial geometry evaluation method in one embodiment;
[0061] Figure 2 This is a schematic diagram of the baseline features, evaluation features, and setting parameters in one embodiment;
[0062] Figure 3 This is a schematic diagram of a reference coordinate system in one embodiment;
[0063] Figure 4 This is a schematic diagram of coordinate transformation alignment processing in one embodiment;
[0064] Figure 5 This is a schematic diagram illustrating the determination of dimensional deviation values in one embodiment;
[0065] Figure 6 This is a flowchart illustrating the spatial geometry evaluation method in another embodiment;
[0066] Figure 7 This is a structural block diagram of a spatial geometry evaluation device in one embodiment;
[0067] Figure 8 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0068] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0069] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0070] In one exemplary embodiment, such as Figure 1As shown, a spatial geometric evaluation method is provided. This embodiment illustrates the application of this method to a server; it is understood that the method can also be applied to a terminal, or to a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, smartphones, and tablets; the server can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. Furthermore, the spatial geometric evaluation method can be used in coordinate measuring machines (CMMs), thereby enabling the evaluation of the measurement results of the CMM.
[0071] In this embodiment, the method includes the following steps:
[0072] Step S101: Generate geometric evaluation instructions for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters.
[0073] Among them, the workpiece to be evaluated refers to the machined parts or products that need to be tested for spatial geometric accuracy and evaluated for dimensional deviations by a coordinate measuring machine.
[0074] Among them, the reference feature refers to the geometric features on the workpiece to be evaluated that are used to determine the reference coordinate system and serve as a reference for measurement and evaluation, such as planes, cylindrical surfaces, circular holes, axes, straight lines, etc., to provide a unified position and orientation reference for the entire spatial geometric evaluation.
[0075] Among them, the evaluation features refer to the geometric features on the workpiece to be evaluated that require actual calculation of dimensions, form and position tolerances, and positional deviations, such as the circular holes, planes, contours, axes, and stepped surfaces to be inspected.
[0076] Among them, the setting parameters refer to the relevant parameters set when performing spatial geometric evaluation of the workpiece to be evaluated, including but not limited to feature fitting method, size type (distance, diameter, position, height, etc.), tolerance zone, datum priority, coordinate system establishment rules, calculation accuracy, etc.
[0077] Among them, geometric evaluation instructions refer to evaluation control instructions that can be executed by the system, formed based on datum features, evaluation features and setting parameters; they are also called dimensional calculation and evaluation instructions.
[0078] For example, see reference. Figure 2The system presents a comprehensive geometric evaluation configuration interface, comprised of a selection area on the left, a reference standard module at the top, a parameter configuration bar in the middle, and a fitting settings unit in the lower right. Users can first select the baseline features for establishing the system on the left, then specify at least one target feature to be evaluated. Subsequently, the specific dimensions, tolerance requirements, and fitting methods for evaluation are set in the parameter area. The reference standard module is used to define the theoretical basis for the evaluation. Finally, the entire configuration transmits instructions to the core evaluation elements, achieving a standardized operation from interface configuration to the generation of geometric evaluation instructions.
[0079] For example, in response to a geometric evaluation request for a workpiece to be evaluated, the server obtains the reference features, evaluation features, and setting parameters of the workpiece to be evaluated. Then, based on the reference features, the server generates a first geometric evaluation instruction for the workpiece to be evaluated; based on the evaluation features, it generates a second geometric evaluation instruction; and based on the setting parameters, it generates a third geometric evaluation instruction. The first geometric evaluation instruction is a sub-instruction generated based on the reference features of the workpiece to be evaluated, used to define and construct the workpiece's reference coordinate system. The second geometric evaluation instruction is a sub-instruction generated based on the evaluation features of the workpiece to be evaluated, used to calculate the dimensions, position, and form and position errors of the workpiece's evaluation features. The third geometric evaluation instruction is a sub-instruction generated based on the setting parameters of the workpiece to be evaluated, used to configure the evaluation algorithm, evaluation accuracy, output format, and other operating parameters. Finally, the first, second, and third geometric evaluation instructions are fused to obtain the geometric evaluation instruction for the workpiece to be evaluated.
[0080] Step S102: Using geometric evaluation instructions, construct the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features.
[0081] The reference coordinate system refers to an orthogonal coordinate system constructed with reference to the reference features, used to uniformly determine the reference corresponding to the workpiece to be evaluated, including the three axes and the origin position.
[0082] For example, the server extracts the datum sequence corresponding to the datum feature from the geometric evaluation instruction; then, based on the datum feature and the datum sequence corresponding to the datum feature, it constructs the datum coordinate system corresponding to the workpiece to be evaluated.
[0083] Step S103: Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0084] The measurement coordinate system refers to the coordinate system preset by the coordinate measuring machine itself, used to collect the original measurement data of the geometric features of the workpiece to be evaluated.
[0085] The coordinate transformation relationship refers to the set of transformation parameters used to describe the spatial position and orientation relationship between the two coordinate systems in order to achieve precise alignment between the reference coordinate system and the measurement coordinate system. These parameters typically include translation parameters, rotation parameters, etc. The set of transformation parameters can convert the measured coordinate values in the measurement coordinate system into coordinate values in the reference coordinate system, providing a unified coordinate reference for subsequent calculation of the dimensional deviation of the evaluation features.
[0086] For example, the server invokes the local coordinate system of the coordinate measuring machine (CMM) to establish and obtain the measurement coordinate system corresponding to the workpiece to be evaluated, using the CMM's own mechanical origin, orthogonal three-axis directions, and spatial positioning reference. Next, the coordinate system parameters of the reference coordinate system and the measurement coordinate system are extracted respectively. Based on these parameters, the translation and rotation parameters between the reference and measurement coordinate systems are determined. Then, based on these parameters, the coordinate transformation relationship between the reference and measurement coordinate systems is constructed. The coordinate system parameters refer to the set of parameters used to describe the spatial attitude and position of the coordinate system, including the orthogonal three-axis directions, the origin spatial coordinates, the coordinate axis unit vectors, and the spatial positioning reference.
[0087] Step S104: Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values and the theoretical coordinate values, determine the dimensional deviation value of the evaluation feature.
[0088] Among them, the measured coordinate values refer to the spatial coordinate values actually collected by each sampling point on the evaluation feature under the measurement coordinate system of the coordinate measuring machine, reflecting the true processing position of the evaluation feature.
[0089] Among them, theoretical coordinate values refer to the ideal spatial coordinate values of the evaluation features as specified in the design drawings, located in the reference coordinate system, and serve as a reference standard for geometric evaluation.
[0090] Among them, the size deviation value refers to the spatial position difference obtained by comparing the measured coordinate values with the theoretical coordinate values after the coordinate transformation relationship is used to transform the measured coordinate values to the reference coordinate system. It is used to characterize the actual processing error of the evaluation feature.
[0091] For example, the server collects the measured coordinate values of each sampling point on the evaluation feature in the measurement coordinate system using a coordinate measuring machine, and retrieves the theoretical coordinate values of the evaluation feature in the reference coordinate system from the preset design parameters; then, through coordinate transformation relationships, the measured coordinate values are transformed to the reference coordinate system to obtain the actual coordinate values of the evaluation feature in the reference coordinate system; then, the actual coordinate values and theoretical coordinate values are calculated to obtain the coordinate difference between the actual coordinate values and the theoretical coordinate values, which is used as the dimensional deviation value of the evaluation feature.
[0092] Step S105: Based on the dimensional deviation value, obtain the spatial geometric evaluation result of the workpiece to be evaluated.
[0093] Among them, the spatial geometric evaluation result refers to the evaluation result of the machining accuracy of the workpiece to be evaluated after comparing the dimensional deviation value with the preset dimensional deviation value.
[0094] For example, if the dimensional deviation value is less than a preset dimensional deviation value, the server determines that the spatial geometric evaluation result of the workpiece to be evaluated is qualified; if the dimensional deviation value is greater than or equal to the preset dimensional deviation value, the server determines that the spatial geometric evaluation result of the workpiece to be evaluated is unqualified.
[0095] In the aforementioned spatial geometric evaluation method, firstly, a geometric evaluation instruction for the workpiece to be evaluated is generated based on the reference features, evaluation features, and setting parameters. Then, using the geometric evaluation instruction, a reference coordinate system corresponding to the workpiece to be evaluated is constructed based on the reference features. Next, the measurement coordinate system corresponding to the workpiece to be evaluated is obtained, and coordinate transformation and alignment processing is performed on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system. Then, the measured coordinate values of the evaluation features in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system are obtained. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical coordinate values, the dimensional deviation value under the evaluation features is determined. Finally, based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained. In this way, when performing spatial geometric evaluation of a workpiece, precise geometric evaluation instructions are first generated based on the workpiece's datum features, evaluation features, and parameters. Then, a standardized datum coordinate system is constructed using the datum features. Through coordinate transformation, precise alignment between the datum coordinate system and the measurement coordinate system is achieved, eliminating systematic errors caused by coordinate system mismatch. Furthermore, by combining the measured coordinate values and theoretical coordinate values of the evaluation features in both coordinate systems, and relying on reliable coordinate transformation relationships, dimensional deviations are accurately calculated. From coordinate system establishment and alignment to deviation calculation, interference factors such as inconsistent datums and coordinate misalignment are avoided throughout the entire process, which helps improve the accuracy of workpiece spatial geometric evaluation. Moreover, the entire process does not require manual intervention, avoiding the subjective factors and errors inherent in manual evaluation methods, which can lead to lower accuracy in workpiece spatial geometric evaluation. This further improves the accuracy of workpiece spatial geometric evaluation.
[0096] In one exemplary embodiment, the reference features include a first reference feature and a second reference feature of the workpiece to be evaluated.
[0097] Therefore, step S102 above, which constructs a reference coordinate system corresponding to the workpiece to be evaluated based on the reference features, specifically includes the following: when the directions corresponding to the first reference feature and the second reference feature are not orthogonal to each other, the target reference feature with the highest priority is determined from the first reference feature and the second reference feature; based on the first direction corresponding to the target reference feature, the candidate direction with the smallest directional deviation value between the initial directions corresponding to other reference features is selected from the candidate directions of other reference features, and this candidate direction is used as the second direction corresponding to other reference features; the first origin position corresponding to the target reference feature and the second origin position of other reference features are obtained; and the reference coordinate system corresponding to the workpiece to be evaluated is constructed based on the first direction, the second direction, the first origin position, and the second origin position.
[0098] The first and second reference features are used to represent different reference features.
[0099] Among them, the non-orthogonal direction is used to indicate that the direction corresponding to the first reference feature and the direction corresponding to the second reference feature do not satisfy the perpendicular relationship.
[0100] Among them, priority is used to indicate the benchmark order corresponding to the benchmark feature.
[0101] Among them, the target reference feature refers to the reference feature with the highest priority selected from multiple reference features, which is used to preferentially determine the principal axis direction of the coordinate system.
[0102] The first direction refers to the direction corresponding to the target reference feature.
[0103] Among them, other reference features are used to represent the reference features other than the target reference feature in the first reference feature and the second reference feature.
[0104] The candidate direction is used to represent a direction that is orthogonal to the first direction.
[0105] The initial direction refers to the original direction corresponding to the second reference feature itself.
[0106] The direction deviation value refers to the angular difference between each candidate direction and the initial direction.
[0107] The second direction refers to the direction that is orthogonal to the first direction and has the smallest directional deviation from the initial direction.
[0108] The first origin position refers to the origin position of the reference coordinate system determined based on the target reference features.
[0109] The second origin position refers to the reference position used to assist in locating the origin of the coordinate system by combining the position information of other reference features.
[0110] For example, when the directions corresponding to the first reference feature and the second reference feature are not orthogonal to each other, the server determines the target reference feature with the highest priority from the first and second reference features according to the priority preset in the geometric evaluation instruction. Then, among the multiple candidate directions that are orthogonal to the first direction corresponding to the target reference feature, the direction deviation value between each candidate direction and the initial direction corresponding to the second reference feature itself is calculated, and the candidate direction with the smallest direction deviation value between the initial direction corresponding to the other reference features is selected from the candidate directions of other reference features as the second direction corresponding to the other reference features. Then, the first origin position of the reference coordinate system is determined according to the spatial position of the target reference feature, and the second origin position for auxiliary positioning is determined in combination with the spatial position of the second reference feature. Finally, the reference coordinate system corresponding to the workpiece to be evaluated is constructed according to the first direction, the second direction, the first origin position, and the second origin position.
[0111] Furthermore, when the directions corresponding to the first reference feature and the second reference feature are orthogonal to each other, a reference coordinate system corresponding to the workpiece to be evaluated is constructed based on the direction corresponding to the first reference feature and the origin position, as well as the direction corresponding to the second reference feature and the origin position.
[0112] For example, see reference. Figure 3 The diagram clearly illustrates the construction logic of the reference coordinate system. The left side shows two spatial directions defined by the first and second reference features, respectively, while the right side shows the final reference coordinate system. This coordinate system is based on geometric evaluation instructions. When the directions defined by the first and second reference features are not orthogonal, the target reference feature with the highest priority is selected to determine its one-axis direction. Then, the orthogonal direction with the smallest deviation from the initial direction of the other reference is selected as the second axis direction. Finally, the coordinate system is constructed by combining the origin positions of the two references. This realizes the transformation from non-orthogonal reference directions to a standard orthogonal reference coordinate system, ensuring that the coordinate reference for subsequent measurement and evaluation is unified and accurate.
[0113] Furthermore, if the system includes a first reference feature, a second reference feature, and a third reference feature, the first direction, the second direction, and the third direction are determined sequentially using the method described above. The second direction is the direction orthogonal to the first direction and has the smallest directional deviation value between it and the initial direction corresponding to the second reference feature. The third direction is the direction orthogonal to the first and second directions and has the smallest directional deviation value between it and the initial direction corresponding to the third reference feature. Here, the first reference feature, the second reference feature, and the third reference feature are used to represent different reference features.
[0114] For ease of explanation, the priority of the first, second, and third reference features will decrease sequentially, which is to say, let the first reference feature be the target reference coordinate system.
[0115] In this embodiment, the principal axes of the coordinate system are determined by prioritizing high-priority reference features, and the coordinate system is constructed by automatically selecting the orthogonal direction with the smallest deviation from the initial direction of the low-priority reference when multiple reference directions are not orthogonal. This ensures that the reference coordinate system always meets the orthogonality specification, while preserving the actual position information of each reference feature to the greatest extent, which significantly improves the stability and accuracy of the reference coordinate system construction.
[0116] In one exemplary embodiment, the priority of the first reference feature is greater than the priority of the second reference feature.
[0117] Therefore, step S103 above, which involves performing coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system, specifically includes the following: obtaining the coordinate values of the first measurement point of the first reference feature in the measurement coordinate system and the first theoretical coordinate value in the reference coordinate system, as well as the coordinate values of the second measurement point of the second reference feature in the measurement coordinate system and the second theoretical coordinate value in the reference coordinate system; performing fitting processing on the first measurement point coordinate value and the second measurement point coordinate value respectively to obtain the first fitted feature coordinate value corresponding to the first measurement point coordinate value and the second fitted feature coordinate value corresponding to the second measurement point coordinate value; determining the initial coordinate transformation relationship between the reference coordinate system and the measurement coordinate system based on the coordinate value difference between the first fitted feature coordinate value and the first theoretical coordinate value; and adjusting the initial coordinate transformation relationship based on the coordinate value difference between the second fitted feature coordinate value and the second theoretical coordinate value to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0118] Furthermore, if the system includes a first reference feature, a second reference feature, and a third reference feature, it is also necessary to obtain the coordinate values of the third measurement point in the measurement coordinate system and the third theoretical coordinate value in the reference coordinate system for the third reference feature. The coordinate values of the third measurement point are then fitted to obtain the third fitted feature coordinate values corresponding to the third measurement point coordinate values. Based on the coordinate value difference between the first fitted feature coordinate values and the first theoretical coordinate values, the initial coordinate transformation relationship between the reference coordinate system and the measurement coordinate system is determined. Based on the coordinate value difference between the second fitted feature coordinate values and the second theoretical coordinate values, the initial coordinate transformation relationship is adjusted to obtain the adjusted coordinate transformation relationship between the reference coordinate system and the measurement coordinate system. Based on the coordinate value difference between the third fitted feature coordinate values and the third theoretical coordinate values, the adjusted coordinate transformation relationship is adjusted again to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0119] The first measurement coordinate value refers to the coordinate value of the measurement point of the first reference feature in the measurement coordinate system.
[0120] The first fitted feature coordinate value refers to the feature coordinate value obtained after fitting the coordinate value of the first measurement point of the first reference feature, which is used to characterize the actual position of the first reference feature. It includes feature position coordinates such as the center of the circle, the direction of the axis, the endpoints, the center point, and the center of the plane.
[0121] The first theoretical coordinate value refers to the theoretical coordinate value of the first fitted feature coordinate value in the reference coordinate system.
[0122] The second measurement coordinate value refers to the coordinate value of the measurement point of the second reference feature in the measurement coordinate system.
[0123] The second fitted feature coordinate value refers to the feature coordinate value obtained after fitting the coordinate value of the second measurement point of the second reference feature, which is used to characterize the actual position of the second reference feature. It includes feature position coordinates such as the center of the circle, the direction of the axis, the endpoints, the center point, and the center of the plane.
[0124] The second theoretical coordinate value refers to the theoretical coordinate value of the second fitted feature coordinate value in the reference coordinate system.
[0125] The third measurement coordinate value refers to the coordinate value of the measurement point of the third reference feature in the measurement coordinate system.
[0126] Among them, the third fitted feature coordinate value refers to the feature coordinate value obtained after fitting the coordinate value of the third measurement point of the third reference feature, which is used to characterize the actual position of the third reference feature, including the feature position coordinates such as the center of the circle, the direction of the axis, the endpoints, the center point, and the center of the plane.
[0127] The third theoretical coordinate value refers to the theoretical coordinate value of the third fitted feature coordinate value in the reference coordinate system.
[0128] The initial coordinate transformation relationship refers to the set of transformation parameters (including translation and rotation parameters) that are initially calculated based solely on the difference between the theoretical coordinate values and the measured coordinate values of the first reference feature, and are used to describe the spatial position and orientation relationship between the reference coordinate system and the measured coordinate system.
[0129] For example, the server retrieves the first theoretical coordinate value of the first reference feature in the reference coordinate system and the second theoretical coordinate value of the second reference feature in the reference coordinate system from preset design parameters. A coordinate measuring machine (CMM) acquires the first measurement point coordinate value of the first reference feature in the measurement coordinate system and the second measurement point coordinate value of the second reference feature in the measurement coordinate system. Then, least squares fitting or geometric feature fitting is performed on the first and second measurement point coordinate values respectively to eliminate abnormal errors at the measurement points, resulting in the first fitted feature coordinate value representing the actual position of the first reference feature and the second fitted feature coordinate value representing the actual position of the second reference feature. Next, based on the coordinate difference between the first fitted feature coordinate value and the first theoretical coordinate value, the translation and rotation components between the reference coordinate system and the measurement coordinate system are calculated and determined to obtain the initial coordinate transformation relationship between them. Finally, based on the coordinate difference between the second fitted feature coordinate value and the second theoretical coordinate value, attitude fine-tuning and error correction are performed on the basis of the initial coordinate transformation relationship to further optimize the translation and rotation parameters between the coordinate systems, thus obtaining the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0130] For example, see reference. Figure 4 First, the actual measured values and theoretical values A' and B' of datum features A and B are obtained in the measurement coordinate system. Then, when creating the datum coordinate system, the higher-priority datum feature A is aligned first, and its measured value is matched with the theoretical value to initially establish the initial coordinate transformation relationship between the datum coordinate system and the measurement coordinate system. Finally, while keeping the alignment constraint of datum feature A unchanged, the measured value and theoretical value of datum feature B are optimized for secondary alignment, and the initial coordinate transformation relationship is fine-tuned. Finally, a coordinate transformation relationship that is more in line with the actual processing state of the workpiece and has higher accuracy is obtained, providing a reliable coordinate reference for subsequent geometric evaluation.
[0131] In this embodiment, by first establishing a preliminary coordinate transformation relationship using the highest priority first reference feature, and then introducing a second reference feature to precisely adjust and optimize the initial relationship, the influence of measurement errors or installation deviations of a single reference feature on the transformation relationship can be effectively eliminated, thereby achieving iterative correction and accuracy improvement of the coordinate transformation relationship.
[0132] In an exemplary embodiment, step S104, which determines the dimensional deviation value under the evaluation feature based on the coordinate transformation relationship, measured coordinate values, and theoretical coordinate values, specifically includes the following: When the coordinate transformation relationship is unique, the measured coordinate values are transformed according to the coordinate transformation relationship to obtain the first processed measured coordinate values of the evaluation feature in the reference coordinate system. The first processed measured coordinate values are then fitted to obtain the first fitted feature corresponding to the evaluation feature. The first dimensional deviation value between the dimensional parameters of the first fitted feature and the theoretical dimensional parameters is determined and used as the dimensional deviation value under the evaluation feature. Alternatively, when the coordinate transformation relationship is not unique, the measured coordinate values are transformed according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system. The second processed measured coordinate values are then fitted to obtain the second fitted feature. The second dimensional deviation value between the dimensional parameters of the second fitted feature and the theoretical dimensional parameters is determined. The initial coordinate transformation relationship is iteratively adjusted according to the second dimensional deviation value until the obtained second dimensional deviation value is the minimum dimensional deviation value. The minimum dimensional deviation value is then used as the dimensional deviation value under the evaluation feature.
[0133] Among them, the measured coordinate value after the first processing refers to the actual spatial coordinate value obtained after transforming the measured coordinate value of the evaluation feature to the reference coordinate system through the unique coordinate transformation relationship when the coordinate transformation relationship is unique.
[0134] The first fitting feature refers to the geometric feature that represents the actual geometric shape and position of the evaluation feature by fitting the measured coordinate values after the first processing of the evaluation feature after coordinate transformation when the coordinate transformation relationship is unique.
[0135] Among them, dimensional parameters refer to parameters used to characterize the size and shape of geometric features, which are calculated by fitting features. These include radius, diameter, length, angle, profile, position, coaxiality, etc.
[0136] Theoretical dimensional parameters refer to the theoretical dimensions and theoretical form and position parameters corresponding to the fitted features, given by the workpiece design drawings, design models, or evaluation standards.
[0137] The first size deviation value refers to the deviation between the size parameters of the first fitted feature and the theoretical size parameters. It is the size deviation value directly used when the coordinate transformation relationship is unique.
[0138] The second processed measured coordinate value refers to the actual spatial coordinate value obtained after transforming the measured coordinate values to the reference coordinate system through the initial coordinate transformation relationship when the coordinate transformation relationship is not unique.
[0139] The second fitting feature refers to the geometric feature that represents the actual geometric shape and position of the evaluation feature when the coordinate transformation relationship is not unique. This feature is obtained by fitting the measured coordinate values of the evaluation feature after the second processing following the initial coordinate transformation.
[0140] The second size deviation value refers to the deviation between the size parameters of the second fitted feature and the theoretical size parameters. The coordinate transformation relationship can be adjusted until the second size deviation value is minimized to determine the final evaluation result.
[0141] It should be noted that whether the coordinate transformation relationship is unique or not depends mainly on the constraint strength of the reference features and the spatial dimensional relationship. When there are enough reference features and their spatial orientation and position information can uniquely determine the attitude and origin of the coordinate system, the rigid body transformation relationship between the reference coordinate system and the measurement coordinate system can be uniquely solved, and the transformation relationship is unique. Conversely, when there are insufficient reference features or redundancy, and when all transformation parameters cannot be locked in low-dimensional space using only some features, there will be multiple transformation combinations that satisfy the same optimal conditions, resulting in a non-unique coordinate transformation relationship.
[0142] For example, when the coordinate transformation relationship is unique, the server performs coordinate transformation on the measured coordinate values of the evaluation feature in the measurement coordinate system according to the unique coordinate transformation relationship, and uniformly transforms them to the reference coordinate system to obtain the first processed measured coordinate value of the evaluation feature in the reference coordinate system. According to the fitting method corresponding to the evaluation feature (the fitting method is determined in the geometric evaluation instruction), the first processed measured coordinate value is fitted to obtain the first fitted feature corresponding to the evaluation feature. Then, the difference between the size parameter of the first fitted feature and the theoretical size parameter corresponding to the first fitted feature is calculated to obtain the first size deviation value, and the first size deviation value is directly used as the final size deviation value of the evaluation feature.
[0143] Furthermore, when the coordinate transformation relationship is not unique, the measured coordinate values are transformed according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system. The second processed measured coordinate values are then fitted according to the fitting method corresponding to the evaluation feature to obtain the second fitted feature. The second dimensional deviation value between the dimensional parameters of the second fitted feature and the theoretical dimensional parameters is determined. The initial coordinate transformation relationship is iteratively adjusted according to the second dimensional deviation value to obtain the adjusted coordinate transformation relationship. This adjusted coordinate transformation relationship is used as the new initial coordinate transformation relationship, and the process jumps to the step of transforming the measured coordinate values according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system. This process continues until the obtained second dimensional deviation value is the minimum dimensional deviation value, which is then used as the final dimensional deviation value of the evaluation feature.
[0144] For example, see reference. Figure 5 First, the measured fitted values of the benchmark feature A and the evaluation feature M, as well as the corresponding theoretical values A' and M”, are obtained in the benchmark coordinate system. The measured value of the benchmark feature A is aligned with the theoretical value to establish an initial coordinate transformation relationship. Then, while keeping the alignment constraint of the benchmark feature A unchanged, the coordinate transformation relationship is continuously adjusted to transform the measured value of the evaluation feature M to the benchmark coordinate system and calculate the deviation with the theoretical value M” until the minimum size deviation between the evaluation feature M and the theoretical value is obtained. Finally, this minimum deviation is used as the final deviation result of the evaluation feature, which not only ensures the stability of the benchmark constraint but also minimizes the evaluation deviation and ensures the reliability of the result.
[0145] In this embodiment, by distinguishing the uniqueness of the coordinate transformation relationship, different size deviation calculation strategies are adopted respectively. This ensures efficient calculation and result certainty when the transformation relationship is unique, and also minimizes the impact of coordinate transformation uncertainty on the evaluation result by selecting the minimum deviation value when the transformation relationship is not unique. This effectively improves the robustness and accuracy of size deviation calculation.
[0146] In an exemplary embodiment, step S102 above, which constructs a reference coordinate system corresponding to the workpiece to be evaluated based on the reference features, specifically includes the following: obtaining the three-axis directions and origin position of the measurement coordinate system; and constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the directions, three-axis directions, and origin position corresponding to the reference features.
[0147] Among them, the three-axis direction refers to the spatial direction corresponding to the three mutually orthogonal coordinate axes in the measurement coordinate system.
[0148] The origin position refers to the spatial coordinates corresponding to the intersection of the three coordinate axes in the measurement coordinate system.
[0149] For example, the server reads the three-axis directions and origin position of the measurement coordinate system from the system parameters of the coordinate measuring machine; then, it corrects the three-axis directions of the measurement coordinate system through the directions corresponding to the reference features to obtain the corrected three-axis directions of the reference coordinate system; then, combining the spatial position of the reference features with the origin position of the measurement coordinate system, it fine-tunes the origin position through the spatial position of the reference features to determine the final origin position of the reference coordinate system; finally, based on the corrected principal axis directions and the final origin position of the reference coordinate system, it constructs the reference coordinate system corresponding to the workpiece to be evaluated.
[0150] In this embodiment, a reference coordinate system is constructed based on the three axes of the measurement coordinate system and the origin position, combined with the actual directional constraints of the reference features. This ensures that the final constructed reference coordinate system not only meets the orthogonal requirements of the specification, but also closely matches the actual processing state of the workpiece. This effectively improves the construction efficiency and positioning accuracy of the reference coordinate system, providing a more reliable coordinate reference for subsequent geometric evaluation.
[0151] In an exemplary embodiment, step S101 above, which generates a geometric evaluation instruction for the workpiece to be evaluated based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, specifically includes the following: obtaining the determined workpiece information of the workpiece to be evaluated; determining the selection range corresponding to the workpiece information to be determined of the workpiece to be evaluated based on the determined workpiece information; selecting the workpiece information that meets the corresponding selection range from each workpiece information to be determined as the target workpiece information to be determined; and generating a geometric evaluation instruction for the workpiece to be evaluated based on the determined workpiece information and the target workpiece information to be determined.
[0152] Among them, the workpiece information has been determined to represent any one of the reference features, evaluation features, and setting parameters.
[0153] The selection range refers to the legal range and optional set of allowed values, types, and parameter configurations of the workpiece information to be determined, based on the already determined workpiece information.
[0154] Among them, the workpiece information to be determined is used to represent workpiece information other than the workpiece information that has been determined in the reference features, evaluation features and setting parameters.
[0155] Among them, the target workpiece information to be determined refers to the workpiece information to be determined that is ultimately used to generate geometric evaluation instructions, based on the selection range.
[0156] For example, the server obtains pre-input workpiece information from the user, which is any one or more of the baseline features, evaluation features, and setting parameters. Then, based on the constraints corresponding to the pre-input workpiece information, the server automatically analyzes and determines the optional types, value ranges, and configuration constraints corresponding to the workpiece information to be determined, as the selection range corresponding to the workpiece information to be determined. Then, among the workpiece information to be determined, the server filters out the workpiece information that meets the corresponding selection range and satisfies the workpiece geometric evaluation logic and parameter matching requirements, as the target workpiece information to be determined. Finally, the pre-input workpiece information and the target workpiece information to be determined are combined and integrated, and a geometric evaluation instruction for the workpiece to be evaluated is generated according to a preset instruction format.
[0157] In this embodiment, by intelligently filtering out legally compatible target information based on the determined workpiece information and generating geometric evaluation instructions, not only is manual input and repetitive configuration reduced, and operational complexity and parameter setting errors decreased, but logical consistency and constraint matching between evaluation parameters are also ensured, significantly improving the efficiency, standardization and reliability of geometric evaluation instruction generation.
[0158] In one exemplary embodiment, such as Figure 6 As shown, another spatial geometry evaluation method is provided. Taking the application of this method to a server as an example, the specific steps include:
[0159] Step S601: Obtain the determined workpiece information of the workpiece to be evaluated; the determined workpiece information is used to represent any one of the reference features, evaluation features, and setting parameters; the reference features include the first reference feature and the second reference feature of the workpiece to be evaluated.
[0160] Step S602: Based on the determined workpiece information, determine the selection range corresponding to the workpiece information to be determined for the workpiece to be evaluated; the workpiece information to be determined is used to represent the workpiece information other than the determined workpiece information in the reference features, evaluation features and setting parameters.
[0161] Step S603: Select the workpiece information that meets the corresponding selection range from the workpiece information to be determined, and use it as the target workpiece information to be determined.
[0162] Step S604: Generate a geometric evaluation instruction for the workpiece to be evaluated based on the determined workpiece information and the target workpiece information to be determined.
[0163] Step S605: Using a geometric evaluation instruction, when the directions corresponding to the first reference feature and the second reference feature are not orthogonal to each other, determine the target reference feature with the highest priority from the first reference feature and the second reference feature.
[0164] Step S606: Based on the first direction corresponding to the target reference feature, select the candidate direction with the smallest direction deviation value between the initial direction corresponding to the other reference features from the candidate directions of other reference features, and use it as the second direction corresponding to the other reference features; the candidate direction is used to represent the direction that is orthogonal to the first direction; the other reference features are used to represent the reference features other than the target reference feature among the first reference feature and the second reference feature.
[0165] Step S607: Obtain the first origin position corresponding to the target reference feature and the second origin position of other reference features. Based on the first direction, the second direction, the first origin position and the second origin position, construct the reference coordinate system corresponding to the workpiece to be evaluated.
[0166] Step S608: Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0167] Step S609: Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values and the theoretical coordinate values, determine the dimensional deviation value of the evaluation feature.
[0168] Step S610: Based on the dimensional deviation value, obtain the spatial geometric evaluation result of the workpiece to be evaluated.
[0169] In the aforementioned spatial geometric evaluation method, when evaluating a workpiece, a precise geometric evaluation command is first generated based on the workpiece's datum features, evaluation features, and parameters. Then, a standardized datum coordinate system is constructed using the datum features. Through coordinate transformation, the datum coordinate system and the measurement coordinate system are precisely aligned, eliminating systematic errors caused by coordinate system mismatch. Furthermore, by combining the measured coordinate values and theoretical coordinate values of the evaluation features in both coordinate systems, and relying on reliable coordinate transformation relationships, the dimensional deviation is accurately calculated. From coordinate system establishment and alignment to deviation calculation, the entire process avoids interference factors such as inconsistent datums and misaligned coordinates, which helps improve the accuracy of workpiece spatial geometric evaluation. Moreover, the entire process requires no manual intervention, avoiding the subjective factors and errors inherent in manual evaluation methods, which can lead to lower accuracy in workpiece spatial geometric evaluation. This further improves the accuracy of workpiece spatial geometric evaluation.
[0170] In one exemplary embodiment, to more clearly illustrate the spatial geometry evaluation method provided by the embodiments of this application, the following specific embodiment will be used to describe the spatial geometry evaluation method in detail. In one embodiment, this application also provides another spatial geometry evaluation method, which specifically includes the following:
[0171] Step 1: Import drawings or 3D (Three Dimensional) models. Import drawings, 3D models, or DMIS (Dimensional Measuring Interface Standard) language programs.
[0172] Step 2, measure the features.
[0173] Step 3: Create dimension calculation and evaluation instructions.
[0174] Step 4: The geometric evaluation system begins execution after receiving the dimensional calculation and evaluation instructions.
[0175] Step 5: Output the calculation results and detailed report information.
[0176] Step 2, which involves measuring features based on a measurement procedure, also includes:
[0177] Features can include point features, line features, or surface features, etc.
[0178] A measurement program is used to measure features. A measurement program refers to a measurement system that, after creating at least one feature, can determine the measurement points of that feature and the movement path of the probe.
[0179] Features can be created in two ways: selection and construction. Selection refers to choosing features directly from imported drawings or models, while construction refers to using existing features to form new features (such as the intersection of two lines, perpendicular bisectors, intersection lines, etc.).
[0180] Measurement characteristics refer to running a measurement program, controlling the position of the probe in contact with the measurement point on the workpiece, and obtaining the measurement coordinate value of the measurement point.
[0181] For example, to measure a circular feature, a circular feature can be selected or constructed on the workpiece first. The measurement system will then measure multiple points on the circle using a route measurement program. Subsequently, the measurement program will be executed, and the probe will move to multiple corresponding positions and contact the workpiece. The coordinates of the measurement points obtained when contacting the workpiece will be recorded. A circle will be fitted to the coordinates of multiple measurement points, thereby realizing the measurement of the circular feature.
[0182] Step 3, the creation of dimension calculation and evaluation instructions, also includes:
[0183] The geometric evaluation system can accept dimensional calculation and evaluation commands to calculate dimensions and assess whether they meet drawing requirements. Before this step, the specific dimensional calculation and evaluation commands must be determined. These commands are used to measure dimensional information related to the shape or position of the workpiece, such as distance, radius, and profile, after feature measurement is completed. For example, a distance tool can be used to calculate the distance between the centers of two circles, or to confirm the profile of a surface feature. Then, the acquired dimensional information is evaluated to determine whether it meets machining requirements. The dimensional calculation and evaluation commands can be set directly in the measurement program or executed separately after running the measurement program; there is no limitation on this.
[0184] Setting up dimensional calculation and evaluation instructions can include configuring datum elements, evaluation elements, and setting parameters, such as... Figure 2 As shown.
[0185] The datum elements include features used to determine the datum (calculate the datum coordinate system), which will be referred to as datum features from now on. The number of datum elements is not limited. The calculation and evaluation of some dimensions may be performed without a datum or with multiple datums. The datum features can be determined by selecting features that have already been measured. The measured features will be presented in a list. A datum label can be assigned to a feature (indicating that the feature can be used as a datum). After receiving the datum elements, the geometric evaluation system can obtain the feature type of the datum feature (obtained in step 2), the measurement points used (obtained in step 2; the coordinate system of these measurement points may be a coordinate system created during the measurement process. If the coordinate system is not recreated during the measurement process, the machine coordinate system (world coordinate system) will be used by default. For ease of explanation, the coordinate system of the measurement points will be described as the measurement coordinate system in the following descriptions), the measured coordinate values of each measurement point (obtained in step 2), and the theoretical coordinate values of each measurement point (obtained from drawings / CAD).
[0186] The evaluation elements include the features being evaluated, which will be referred to as evaluation features from now on. Evaluation features are determined by directly selecting features. The evaluation elements include the feature type of the evaluation feature (obtained in step 2), the measurement points used (obtained in step 2), the measured coordinate values of each measurement point (obtained in step 2), and the theoretical coordinate values of each measurement point (obtained from drawings / CAD).
[0187] The parameters to be set include other parameters related to the evaluation, such as size type (size type can be distance, radius, profile, position, etc., which involve the shape or position of the workpiece), evaluation index (upper and lower tolerances, etc., and may also include special symbols), fitting method of reference features and evaluation features, filtering method, filtering parameters, etc.
[0188] The input of dimension calculation and evaluation instructions can be done manually by the operator. For further improvement, after importing the drawing in step 1, the geometric evaluation system can automatically extract the workpiece machining requirement information from the drawing, analyze the machining requirement information, and associate it with datum elements, evaluation elements, and setting parameters, which can effectively improve measurement efficiency.
[0189] The input order of the datum element, evaluation element, and setting parameters can be arbitrary, allowing users to freely adjust them. However, the selectable content is interconnected (dynamically updated). If the user inputs the evaluation element first, they can choose any feature that has already been measured. But subsequent inputs, such as dimension types, will be constrained by the evaluation element. For example, if the user inputs a line feature first, only dimensions related to line features, such as parallelism, perpendicularity, distance, and line profile, can be selected. Dimension types unrelated to line features, such as roundness and radius, will not appear in the options. Similarly, if the user inputs roundness first, only features that can be measured as roundness, such as circles, arcs, and cylinders, can be selected as evaluation elements. Simultaneously, the datum elements that can be selected are locked (because roundness does not require a datum). Since the measurement of complex workpieces involves a large number of dimensional types and features, this method can effectively simplify the operation and improve the system's flexibility, allowing users to quickly create effective dimensional calculation and evaluation instructions, improve measurement efficiency, reduce the user's learning cost, and avoid users creating incorrect dimensional calculation and evaluation instructions due to unfamiliarity with the system.
[0190] Therefore, generating calculation and evaluation instructions can include:
[0191] Step 31: Input any one of the following: benchmark element, evaluation element, or setting parameter.
[0192] Step 32: The geometric evaluation system confirms any one of the input benchmark elements, evaluation elements, or setting parameters as the determined item.
[0193] Step 33: Based on the determined items, obtain the dynamic selection range of other input items (note that input items are used here, not un-inputted items. This is because each input item can be adjusted, so even after the baseline element and evaluation element have been selected, the baseline element can be changed again. Therefore, the impact of the evaluation element on the dynamic selection range of the baseline element should also be considered).
[0194] Step 34: Repeat step 32 until all determined items limit the dynamic selection range (because there may be multiple determined items, and the baseline element and setting parameters will limit the selectable range of the evaluation element).
[0195] Step 35: Determine the range of possible input items by means of at least one dynamic selection range of undetermined items (e.g., by means of intersection).
[0196] Step 36: Enter undetermined items or adjust determined items according to the selectable range (the system allows users to continue entering unfilled content or change filled content, and will adjust the selection range of undetermined items in real time, which should be noted).
[0197] Step 37: Repeat steps 32 to 36 until the baseline element, evaluation element, or setting parameters are confirmed.
[0198] Step 38: Generate calculation and evaluation instructions based on the baseline element, evaluation element, and setting parameter dimensions.
[0199] Step 4, the geometric evaluation system, begins execution after receiving dimensional calculation and evaluation instructions, and also includes:
[0200] Step 41, Create a datum coordinate system based on the datum features:
[0201] During the measurement process, although the reference feature has been fitted to the measurement coordinate system, the fitting method of the feature will be limited during size calculation and evaluation. The original fitting method may not meet the evaluation requirements. Therefore, it is necessary to refit the reference feature in the measurement coordinate system based on the measurement coordinate values of each measurement point of the reference feature and the set parameters.
[0202] When creating a reference coordinate system, reference features are needed to determine the three axes and the origin position of the reference coordinate system.
[0203] Generally, datum features include positional or directional information. For example, a circle feature defines the center position and normal direction; a line feature defines the line position and direction, and so on. Therefore, a datum coordinate system can be created using the positional or directional information defined by the datum features. For instance, when defining a datum coordinate system using circle feature A and surface feature B, the normal of the circle feature can be used to define the Z-axis direction, and the normal of surface feature B can be used to define the X-axis direction. The Y-axis direction, which is orthogonal to the Z and X axes, can then be obtained. Finally, the position of the origin can be determined using the center position of the circle or the position of surface feature B.
[0204] Furthermore, if the directions defined by the two datum features are not orthogonal, then the direction defined by the first datum feature (datum features have an order, and the first datum is more important) can be used as one direction of the datum coordinate system. Then, another direction orthogonal to this first direction and closest to the direction defined by the second datum feature can be determined as the other direction of the datum coordinate system. Figure 3 As shown.
[0205] In some cases, if the selected datum feature cannot uniquely create a datum coordinate system, it can be combined with the three-axis orientation or origin position of the measurement coordinate system (see description of datum elements) where the measurement point is located to form a datum coordinate system. For example, if the datum feature is only a planar feature, the normal of the planar feature can be used to define one direction of a datum coordinate system, and then the orientation of the remaining two axes and the origin position of the measurement coordinate system can be combined to define a datum coordinate system.
[0206] Step 42, aligning the reference features:
[0207] After determining the transformation relationship between the reference coordinate system and the measurement coordinate system, in the reference coordinate system, the measured coordinate values of each measurement point of the reference feature and the set parameters are used to fit the reference feature A. In the measurement coordinate system, the theoretical coordinate values of each measurement point of the reference feature and the set parameters are used to fit the reference feature A'.
[0208] The datum feature A and datum feature A' are aligned to determine the coordinate transformation relationship (including rotation or translation) between the datum coordinate system and the measurement coordinate system.
[0209] It should be noted that aligning datum feature A and datum feature A' means making them coincide as much as possible. Since there are certain differences between measured and theoretical coordinate values, the shape, size, position, and orientation of datum feature A and datum feature A' will differ, and therefore they may not perfectly coincide. Taking a circular feature as an example, aligning datum feature A and datum feature A' means aligning the center of datum feature A' with the center of datum feature A', and using this as a condition to obtain the coordinate transformation relationship between the datum coordinate system and the measured coordinate system. Alignment can be achieved through SVD (Singular Value Decomposition) or other coordinate transformation alignment methods.
[0210] If there are multiple different datum features, such as datum feature A, datum feature B, and datum feature C, then the datum features are aligned according to their order in the dimension calculation and evaluation instructions. For example, datum feature A and datum feature A' are aligned first, then datum feature B and datum feature B' are aligned as much as possible, and then datum feature C and datum feature C' are aligned as much as possible. For example, the expression of the coordinate transformation relationship can be limited under the premise of ensuring the alignment of datum feature A, and then the expression of the coordinate transformation relationship can be limited under the condition of minimizing the alignment error of datum feature B, and then the coordinate transformation relationship can be calculated under the condition of minimizing the alignment error of datum feature C.
[0211] For example, if datum feature A is a circle and datum feature B is a line, first align datum feature A. Then, the datum coordinate system can still rotate freely within that plane and move along the plane's normal direction. At this point, datum feature B can be aligned by rotating the coordinate system, such as... Figure 4 As shown.
[0212] It is understandable that if there are few reference features, the coordinate transformation relationship determined during the alignment process may not be unique.
[0213] Step 43: Project the theoretical and measured values of the evaluation elements onto the reference coordinate system and fit the evaluation features:
[0214] The theoretical and measured coordinate values of each measurement point of the evaluation feature in the measurement coordinate system are transformed to the reference coordinate system using coordinate transformation relationships. In the reference coordinate system, the evaluation feature M is fitted using the measured coordinate values and set parameters.
[0215] Step 44: Calculate the dimensions of evaluation feature M and evaluation feature M” based on the baseline feature and the set parameter size type.
[0216] Step 45: If the coordinate transformation relationship is unique, output the dimensions of evaluation feature M and evaluation feature M”, and the difference between the dimensions of evaluation feature M and evaluation feature M”.
[0217] Step 46: If the coordinate transformation relationship is not unique (movement or rotation of the reference coordinate system or measurement coordinate system in a certain direction does not affect the reference alignment), then calculate the difference between the dimensions of evaluation feature M and evaluation feature M”, and adjust the coordinate transformation relationship by moving or rotating the reference coordinate system or measurement coordinate system until the difference between the dimensions of evaluation feature M and evaluation feature M” is minimized. Figure 5 As shown.
[0218] In the above embodiments, when performing spatial geometric evaluation of a workpiece, a precise geometric evaluation command is first generated based on the workpiece's datum features, evaluation features, and parameters. Then, a standardized datum coordinate system is constructed using the datum features. Through coordinate transformation, the datum coordinate system and the measurement coordinate system are precisely aligned, eliminating systematic errors caused by coordinate system mismatch. Furthermore, by combining the measured coordinate values and theoretical coordinate values of the evaluation features in the two coordinate systems, and relying on reliable coordinate transformation relationships, the dimensional deviation is accurately calculated. From coordinate system establishment and coordinate alignment to deviation calculation, interference factors such as inconsistent datums and coordinate misalignment are avoided throughout the entire process, which helps improve the accuracy of workpiece spatial geometric evaluation. Moreover, the entire process does not require manual intervention, avoiding the subjective factors and errors that can easily occur in manual evaluation, which leads to lower accuracy in workpiece spatial geometric evaluation, thus further improving the accuracy of workpiece spatial geometric evaluation.
[0219] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0220] Based on the same inventive concept, this application also provides a spatial geometry evaluation apparatus for implementing the spatial geometry evaluation method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more embodiments of the spatial geometry evaluation apparatus provided below can be found in the limitations of the spatial geometry evaluation method described above, and will not be repeated here.
[0221] In one exemplary embodiment, such as Figure 7 As shown, a spatial geometry evaluation device is provided, comprising: an instruction generation module 701, a coordinate system construction module 702, a relationship determination module 703, a deviation value determination module 704, and a workpiece evaluation module 705, wherein:
[0222] The instruction generation module 701 is used to generate geometric evaluation instructions for the workpiece to be evaluated based on the reference features, evaluation features and setting parameters of the workpiece to be evaluated.
[0223] The coordinate system construction module 702 is used to construct the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features through geometric evaluation instructions.
[0224] The relationship determination module 703 is used to obtain the measurement coordinate system corresponding to the workpiece to be evaluated, perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system, and obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0225] The deviation value determination module 704 is used to obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system, and determine the dimensional deviation value of the evaluation feature based on the coordinate transformation relationship, the measured coordinate values and the theoretical coordinate values.
[0226] The workpiece evaluation module 705 is used to obtain the spatial geometric evaluation results of the workpiece to be evaluated based on the dimensional deviation value.
[0227] In an exemplary embodiment, the coordinate system construction module 702 is further configured to: determine the highest priority target reference feature from the first reference feature and the second reference feature, provided that the directions corresponding to the first reference feature and the second reference feature are not orthogonal to each other; select the candidate direction with the smallest directional deviation value between the initial directions corresponding to other reference features from the candidate directions of other reference features according to the first direction corresponding to the target reference feature, and use it as the second direction corresponding to other reference features; the candidate direction is used to represent the direction orthogonal to the first direction; the other reference features are used to represent the reference features other than the target reference feature among the first reference feature and the second reference feature; obtain the first origin position corresponding to the target reference feature and the second origin position of other reference features; and construct the reference coordinate system corresponding to the workpiece to be evaluated according to the first direction, the second direction, the first origin position and the second origin position.
[0228] In an exemplary embodiment, the relationship determination module 703 is further configured to: acquire the coordinate values of a first measurement point of a first reference feature in the measurement coordinate system and the first theoretical coordinate value in the reference coordinate system; acquire the coordinate values of a second measurement point of a second reference feature in the measurement coordinate system and the second theoretical coordinate value in the reference coordinate system; perform fitting processing on the first measurement point coordinate values and the second measurement point coordinate values respectively to obtain the first fitted feature coordinate values corresponding to the first measurement point coordinate values and the second fitted feature coordinate values corresponding to the second measurement point coordinate values; determine the initial coordinate transformation relationship between the reference coordinate system and the measurement coordinate system based on the coordinate value difference between the first fitted feature coordinate values and the first theoretical coordinate values; and adjust the initial coordinate transformation relationship based on the coordinate value difference between the second fitted feature coordinate values and the second theoretical coordinate values to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
[0229] In an exemplary embodiment, the deviation value determination module 704 is further configured to, when the coordinate transformation relationship is unique, perform coordinate transformation processing on the measured coordinate values according to the coordinate transformation relationship to obtain the first processed measured coordinate values of the evaluation feature in the reference coordinate system, perform fitting processing on the first processed measured coordinate values to obtain the first fitted feature corresponding to the evaluation feature, and obtain the size deviation value under the evaluation feature based on the first size deviation value between the size parameter of the first fitted feature and the theoretical size parameter; or, when the coordinate transformation relationship is not unique, perform coordinate transformation processing on the measured coordinate values according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system, perform fitting processing on the second processed measured coordinate values to obtain the second fitted feature, determine the second size deviation value between the size parameter of the second fitted feature and the theoretical size parameter, and iteratively adjust the initial coordinate transformation relationship according to the second size deviation value until the obtained second size deviation value is the minimum size deviation value, and then use the minimum size deviation value as the size deviation value under the evaluation feature.
[0230] In an exemplary embodiment, the coordinate system construction module 702 is further configured to obtain the three-axis direction and origin position of the measurement coordinate system; and construct a reference coordinate system corresponding to the workpiece to be evaluated based on the direction, three-axis direction and origin position corresponding to the reference feature.
[0231] In an exemplary embodiment, the instruction generation module 701 is further configured to obtain determined workpiece information of the workpiece to be evaluated; the determined workpiece information is used to represent any one of the reference feature, evaluation feature, and setting parameters; based on the determined workpiece information, the selection range corresponding to the workpiece information to be determined of the workpiece to be evaluated is determined; the workpiece information to be determined is used to represent workpiece information other than the determined workpiece information among the reference feature, evaluation feature, and setting parameters; from each workpiece information to be determined, the workpiece information to be determined that satisfies the corresponding selection range is selected as the target workpiece information to be determined; based on the determined workpiece information and the target workpiece information to be determined, a geometric evaluation instruction for the workpiece to be evaluated is generated.
[0232] Each module in the aforementioned spatial geometry evaluation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.
[0233] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 8As shown, this computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores baseline features, evaluation features, and other data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a spatial geometry evaluation method.
[0234] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0235] In one exemplary embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0236] In one exemplary embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0237] In one exemplary embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0238] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0239] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0240] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A spatial geometry evaluation method, characterized in that, The method includes: Based on the reference features, evaluation features, and setting parameters of the workpiece to be evaluated, a geometric evaluation instruction for the workpiece to be evaluated is generated; the reference features include the first reference feature and the second reference feature of the workpiece to be evaluated. Based on the geometric evaluation instructions and the reference features, a reference coordinate system corresponding to the workpiece to be evaluated is constructed. Obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system; Obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system. Based on the coordinate transformation relationship, the measured coordinate values, and the theoretical values, determine the dimensional deviation value of the evaluation feature. Based on the dimensional deviation value, the spatial geometric evaluation result of the workpiece to be evaluated is obtained; The step of constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features includes: when the directions corresponding to the first reference feature and the second reference feature are non-orthogonal to each other, determining the highest priority target reference feature from the first reference feature and the second reference feature; based on the first direction corresponding to the target reference feature, selecting the candidate direction with the smallest directional deviation value from the candidate directions of other reference features as the second direction corresponding to the other reference features; the candidate direction is used to represent the direction orthogonal to the first direction; the other reference features are used to represent the reference features other than the target reference feature among the first reference features and the second reference features; obtaining the first origin position corresponding to the target reference feature and the second origin position of the other reference features; and constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the first direction, the second direction, the first origin position, and the second origin position.
2. The method according to claim 1, characterized in that, The priority of the first reference feature is greater than the priority of the second reference feature; The step of performing coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system includes: Obtain the first measurement point coordinate value and the first theoretical coordinate value of the first reference feature in the measurement coordinate system, and the second measurement point coordinate value and the second theoretical coordinate value of the second reference feature in the measurement coordinate system. The coordinate values of the first measurement point and the coordinate values of the second measurement point are respectively fitted to obtain the first fitted feature coordinate value corresponding to the coordinate value of the first measurement point and the second fitted feature coordinate value corresponding to the coordinate value of the second measurement point; Based on the coordinate value difference between the first fitted feature coordinate value and the first theoretical coordinate value, the initial coordinate transformation relationship between the reference coordinate system and the measurement coordinate system is determined; Based on the coordinate difference between the second fitted feature coordinate value and the second theoretical coordinate value, the initial coordinate transformation relationship is adjusted to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system.
3. The method according to claim 1, characterized in that, The step of determining the dimensional deviation value under the evaluation feature based on the coordinate transformation relationship, the measured coordinate value, and the theoretical coordinate value includes: When the coordinate transformation relationship is unique, the measured coordinate values are transformed according to the coordinate transformation relationship to obtain the first processed measured coordinate values of the evaluation feature in the reference coordinate system. The first processed measured coordinate values are fitted to obtain the first fitted feature corresponding to the evaluation feature. Based on the first size deviation value between the size parameters of the first fitted feature and the theoretical size parameters, the size deviation value under the evaluation feature is obtained. or, When the coordinate transformation relationship is not unique, the measured coordinate values are transformed according to the initial coordinate transformation relationship to obtain the second processed measured coordinate values of the evaluation feature in the reference coordinate system. The second processed measured coordinate values are fitted to obtain the second fitted feature. The second size deviation value between the size parameter of the second fitted feature and the theoretical size parameter is determined. The initial coordinate transformation relationship is iteratively adjusted according to the second size deviation value until the obtained second size deviation value is the minimum size deviation value. Then, the minimum size deviation value is taken as the size deviation value under the evaluation feature.
4. The method according to claim 1, characterized in that, The step of constructing the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features further includes: Obtain the three-axis orientation and origin position of the measurement coordinate system; Based on the direction corresponding to the reference feature, the three-axis direction, and the origin position, a reference coordinate system corresponding to the workpiece to be evaluated is constructed.
5. The method according to any one of claims 1 to 4, characterized in that, The step of generating geometric evaluation instructions for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters includes: Obtain the determined workpiece information of the workpiece to be evaluated; the determined workpiece information is used to represent any one of the reference feature, the evaluation feature, and the setting parameter; Based on the determined workpiece information, the selection range corresponding to the workpiece information to be determined for the workpiece to be evaluated is determined; the workpiece information to be determined is used to represent workpiece information other than the determined workpiece information among the benchmark features, the evaluation features, and the setting parameters. From the various workpiece information to be determined, select the workpiece information that meets the corresponding selection range and use it as the target workpiece information to be determined. Based on the determined workpiece information and the target workpiece information to be determined, a geometric evaluation instruction for the workpiece to be evaluated is generated.
6. A spatial geometry evaluation device, characterized in that, The device includes: The instruction generation module is used to generate geometric evaluation instructions for the workpiece to be evaluated based on its reference features, evaluation features, and setting parameters. The coordinate system construction module is used to construct the reference coordinate system corresponding to the workpiece to be evaluated based on the reference features according to the geometric evaluation instructions. The relationship determination module is used to obtain the measurement coordinate system corresponding to the workpiece to be evaluated, and to perform coordinate transformation and alignment processing on the reference coordinate system and the measurement coordinate system to obtain the coordinate transformation relationship between the reference coordinate system and the measurement coordinate system. The deviation value determination module is used to obtain the measured coordinate values of the evaluation feature in the measurement coordinate system and the theoretical coordinate values in the reference coordinate system, and determine the size deviation value of the evaluation feature based on the coordinate transformation relationship, the measured coordinate values and the theoretical values; The workpiece evaluation module is used to obtain the spatial geometric evaluation result of the workpiece to be evaluated based on the dimensional deviation value.
7. The apparatus according to claim 6, characterized in that, The deviation value determination module is further configured to, when the coordinate transformation relationship is unique, perform coordinate transformation processing on the measured coordinate values according to the coordinate transformation relationship to obtain a first processed measured coordinate value of the evaluation feature in the reference coordinate system, perform fitting processing on the first processed measured coordinate value to obtain a first fitted feature corresponding to the evaluation feature, and obtain a size deviation value under the evaluation feature based on a first size deviation value between the size parameter of the first fitted feature and the theoretical size parameter; or, when the coordinate transformation relationship is not unique, perform coordinate transformation processing on the measured coordinate values according to the initial coordinate transformation relationship to obtain a second processed measured coordinate value of the evaluation feature in the reference coordinate system, perform fitting processing on the second processed measured coordinate value to obtain a second fitted feature, determine a second size deviation value between the size parameter of the second fitted feature and the theoretical size parameter, and iteratively adjust the initial coordinate transformation relationship according to the second size deviation value until the obtained second size deviation value is the minimum size deviation value, and then use the minimum size deviation value as the size deviation value under the evaluation feature.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method for establishing workpiece measurement coordinate system based on curved surface benchmark
CN106403873A