A method, system and device for automatically analyzing electrode model coordinate system points
By analyzing the base graphics in the electrode model file, the coordinates of the geometric element points of the coordinate system are obtained, and combined with the three-coordinate measuring instrument for detection, the problem of the lack of automatic analysis of the coordinate system points of the electrode base and abutment in the existing technology is solved, and the realization It provides automated inspection of electrode processing and usage processes, improving detection efficiency and accuracy.
Patent Information
- Application Number
- CN202110763978.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-07-06
AI Technical Summary
The existing technology lacks automatic analysis and inspection methods for the coordinate system points of the electrode base and abutment, resulting in strict process requirements that cannot be effectively met during electrode processing and use.
By determining the base graphics in the electrode model file, analyzing the datum elements inside the base graphics, obtaining the coordinates of the plane points, and determining the coordinates of the geometric element points of the coordinate system based on these coordinates, measuring with a three-coordinate measuring instrument, and establishing a product inspection coordinate system. Determine whether the deviation of the coordinate system points is within the preset error range.
It realizes automatic analysis and inspection of electrode base coordinate system points, improves the automation of the inspection process, meets the requirements of electrode processing and use technology, and ensures the quality of electrode products.
Smart Images

Figure CN113342354B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data analysis, and in particular to an automatic analysis method, system and device for electrode model coordinate system points. Background Art
[0002] In the mold manufacturing process, the production of a precision mold requires the processing of hundreds of electrodes; the raw material for the electrode product is a whole cubic piece of copper or graphite. The length and width of the entire cube are first processed into the length and width of the preset processing electrode base, and the height is the electrode processing size and the base height. Then it is installed on the CNC lathe and the electrode usage contour is processed according to the electrode CAD drawing.
[0003] Due to the large batch size, all processing and use of electrodes have strict process requirements, especially the electrode base, which must be a regular hexahedron and have a cut corner (marking the front of the base): during processing, it is the installation method for electrode processing, and its center is used as the center position for processing and contour processing; when in use, its center is used as the alignment center position for installation and use. Therefore, the inspection of the coordinate system points on the base of the actual electrode product is very important. There is no method for automatically parsing and inspecting the coordinate system points on the base in the prior art. Based on this, the development of a mature technology for automatically parsing the coordinate system points on the base has become an urgent problem to be solved. Summary of the invention
[0004] The object of the present invention is to provide a method, system and device for automatically analyzing the coordinate system points of an electrode model, which can automatically analyze the coordinate system points on a base pedestal.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] An automatic parsing method for electrode model coordinate system points, comprising:
[0007] Determine the base graphics in the electrode model file;
[0008] Analyzing the reference elements inside the base figure to obtain a plurality of analyzed plane points;
[0009] The coordinates of the coordinate system geometric element points are determined according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the upper top surface geometric element points and the side surface geometric element points.
[0010] Preferably, the base graphics in the model file of the electrode are determined, including:
[0011] Obtaining a CAD drawing according to the model file of the electrode;
[0012] Determine the minimum circumscribed cubic figure of the CAD figure; the minimum circumscribed cubic figure is composed of 6 enclosing plane figures;
[0013] Traversing the geometric information of the CAD graphic to determine all first plane graphics in the CAD graphic;
[0014] Obtaining a plane normal vector of the first plane figure;
[0015] Determine a plane with a positive area value whose plane normal vector is in the same direction as the normal vector of each of the enclosing plane figures, to obtain a plane set;
[0016] Determine a second plane figure in the plane set whose plane area is closest to the area of the enclosing plane figure that is consistent with the direction of the plane; the second plane figure is the lower bottom surface figure of the base figure;
[0017] Determine five side graphics of the base graphic according to the lower bottom surface graphic;
[0018] The upper top surface graphic of the base graphic is determined according to any one of the side graphics.
[0019] Preferably, the step of determining the base graphic in the electrode model file further includes:
[0020] Storing the base graphic;
[0021] It is determined whether the number of graphics of the base graphics is the same as the actual number of graphics of the base in the model file. If not, the detection process is terminated.
[0022] Preferably, the step of determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic comprises:
[0023] Determine the three plane points closest to the vertices of the upper top surface figure, record them as the upper top surface geometric element points, and obtain the coordinates of the upper top surface geometric element points according to the positions of the upper top surface geometric element points; the plane points are obtained by parsing the upper top surface figure of the base figure according to a preset step distance;
[0024] Obtain four intersecting line segments of the side surface figure of the base figure and the upper top surface figure;
[0025] The intersecting line segment is translated in the corresponding side figure in the opposite direction of the normal vector of the side figure, and the intersecting line segment is indented according to a preset indentation step to obtain an indented line segment;
[0026] The endpoint of the indented line segment is obtained and recorded as the side surface geometric element point, and the coordinates of the side surface geometric element point are obtained according to the position of the side surface geometric element point.
[0027] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0028] It is determined whether the number of geometric element points in the coordinate system is the same as the preset number. If not, the detection process is terminated.
[0029] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0030] Using the geometric element points of the coordinate system to measure the electrode to be measured on a three-coordinate measuring machine to obtain measurement points;
[0031] Using the four-sided centering method, a product inspection coordinate system is established according to the measuring points;
[0032] Obtaining the corresponding Z-axis value of the upper top surface geometric element point on the base of the electrode to be tested according to the product detection coordinate system;
[0033] It is determined whether the deviation of each Z-axis value is within a preset error range. If not, the test result is unqualified.
[0034] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0035] Obtain the corresponding X-axis value and Y-axis value of the side geometric element point according to the product detection coordinate system;
[0036] It is determined whether the deviation of the corresponding X-axis value or Y-axis value of the side geometric element point on the corresponding surface is symmetrical and within a preset error range. If not, the test result is unqualified.
[0037] An automatic parsing system for electrode model coordinate system points, comprising:
[0038] A graphics determination module, used for determining a base graphics in a model file of an electrode;
[0039] A parsing module, used for parsing the reference elements inside the base graphic to obtain a plurality of parsed plane points;
[0040] A coordinate determination module is used to determine the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the upper top surface geometric element points and the side surface geometric element points.
[0041] An electronic device comprises a processor and a memory, wherein the memory stores an executable computer program, and the processor can read the computer program in the memory and run it to realize an automatic analysis method of electrode model coordinate system points.
[0042] A computer-readable storage medium stores an executable computer program, and when the computer program is run, a method for automatically parsing points in an electrode model coordinate system can be implemented.
[0043] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0044] The present invention provides an automatic analysis method, system and device for electrode model coordinate system points. The detection method includes: determining the base figure in the electrode model file; analyzing the reference elements inside the base figure to obtain multiple plane points after analysis; determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the coordinate system geometric element points including the top surface geometric element points and the side surface geometric element points. The present invention analyzes the coordinate system points of the electrode base according to the electrode processing and use process requirements combined with the CAD model, and determines the coordinates of the coordinate system geometric element points according to the analyzed plane points, thereby realizing the automatic analysis process of the electrode processing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0046] Figure 1 A flow chart of the analysis method in the embodiment provided by the present invention;
[0047] Figure 2 A schematic diagram of the parsing process in the embodiment provided by the present invention;
[0048] Figure 3 This is a structural diagram of the analysis system in the embodiment provided by the present invention. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] The object of the present invention is to provide a method, system and device for automatically analyzing the coordinate system points of an electrode model, which can automatically analyze the coordinate system points on a base pedestal.
[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0052] Figure 1 The flowchart of the analysis method in the embodiment provided by the present invention is as follows: Figure 1 As shown, an automatic parsing method of electrode model coordinate system points in this embodiment includes:
[0053] Step 100: Determine the base graphics in the electrode model file;
[0054] Step 200: parsing the reference elements inside the base graphic to obtain a plurality of parsed plane points;
[0055] Step 300: Determine the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the upper top surface geometric element points and the side surface geometric element points.
[0056] Preferably, the base graphics in the model file of the electrode are determined, including:
[0057] Obtaining a CAD drawing according to the model file of the electrode;
[0058] Determine the minimum circumscribed cubic figure of the CAD figure; the minimum circumscribed cubic figure is composed of 6 enclosing plane figures;
[0059] The geometric information of the CAD graphic is traversed to determine all the first plane graphics in the CAD graphic;
[0060] Obtaining a plane normal vector of the first plane figure;
[0061] Determine a plane with a positive area value whose plane normal vector is in the same direction as the normal vector of each of the enclosing plane figures, to obtain a plane set;
[0062] Determine a second plane figure in the plane set whose plane area is closest to the area of the enclosing plane figure that is consistent with the direction of the plane; the second plane figure is the lower bottom surface figure of the base figure;
[0063] Determine five side graphics of the base graphic according to the lower bottom surface graphic;
[0064] The upper top surface graphic of the base graphic is determined according to any one of the side graphics.
[0065] Specifically, the process of determining the base graphics in the electrode model file is as follows:
[0066] 1) Read the electrode CAD model file and display it graphically.
[0067] 2) Obtain the bounding box of the CAD figure; the bounding box can be decomposed into 6 axial bounding planes.
[0068] 3) Traverse the CAD drawing to obtain all the plane graphics in the drawing.
[0069] 4) Obtain the normal vectors of all plane figures and find the planes whose normal vectors have extreme values in the six axes. There are at most six planes that meet this condition.
[0070] 5) Since there must be an actual electrode pattern on the base, we look for the plane pattern that is closest to the enclosing plane among the six faces, which has the same size and direction, that is, the lowest plane of the base.
[0071] 6) By obtaining the adjacent faces associated with the lowest plane of the base, the other five face figures except the upper and lower table surfaces can be obtained.
[0072] 7) The upper plane of the base can be obtained by obtaining the adjacent surface associated with any side surface.
[0073] 8) Store the upper and lower surfaces and the five sides of the two bases separately.
[0074] 9) Determine whether the recognized base pattern is correct: the upper and lower planes and the five side surfaces of the two table tops; if correct, continue with the subsequent steps, otherwise end.
[0075] Preferably, the step of determining the base graphic in the electrode model file further includes:
[0076] Storing the base graphic;
[0077] It is determined whether the number of graphics of the base graphics is the same as the actual number of graphics of the base in the model file. If not, the detection process is terminated.
[0078] Preferably, the step of determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic comprises:
[0079] Determine the three plane points that are closest to the vertices of the upper top surface figure, record them as the upper top surface geometric element points, and obtain the coordinates of the upper top surface geometric element points according to the positions of the upper top surface geometric element points; the plane points are obtained by parsing the upper top surface figure of the base figure according to a preset step distance.
[0080] Obtain four intersecting line segments of the side surface figure of the base figure and the upper top surface figure.
[0081] The intersecting line segment is translated in the corresponding side figure in the opposite direction of the normal vector of the side figure, and the intersecting line segment is indented according to a preset indentation step to obtain an indented line segment.
[0082] The endpoint of the indented line segment is obtained and recorded as the side surface geometric element point, and the coordinates of the side surface geometric element point are obtained according to the position of the side surface geometric element point.
[0083] Specifically, the process of determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane point and the base graphic is as follows:
[0084] 1) Analyze the reference geometric elements of the electrode base graphic and select points.
[0085] 2) Take at least 3 points on the upper table plane to form plane geometric elements, a total of one plane.
[0086] 3) For the four positive side faces, take at least two points on each side face to form straight line geometric elements, for a total of four straight lines.
[0087] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0088] It is determined whether the number of geometric element points in the coordinate system is the same as the preset number. If not, the detection process is terminated.
[0089] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0090] Using the geometric element points of the coordinate system to measure the electrode to be measured on a three-coordinate measuring machine to obtain measurement points;
[0091] Using the four-sided centering method, a product inspection coordinate system is established according to the measuring points;
[0092] Obtain the corresponding Z-axis value of the upper top surface geometric element point on the base of the electrode to be tested according to the product detection coordinate system
[0093] It is determined whether the deviation of each Z-axis value is within a preset error range. If not, the test result is unqualified.
[0094] Preferably, after determining the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base graphic, the method further comprises:
[0095] Obtain the corresponding X-axis value and Y-axis value of the side geometric element point according to the product detection coordinate system;
[0096] It is determined whether the deviation of the corresponding X-axis value or Y-axis value of the side geometric element point on the corresponding surface is symmetrical and within a preset error range. If not, the test result is unqualified.
[0097] Specifically, the four-side centering method is as follows: in order to ensure the consistency between the center of the CAD base and the center of the actual product base, it is required that when establishing a coordinate system using four side surfaces, every two relative corresponding surfaces are used to find the symmetry surface, and the two symmetry surfaces are intersected to obtain the intersection line, and the intersection line is intersected with the upper plane to obtain the intersection point, which is the center point of the symmetry; in order to reduce the measuring points, that is, to reduce the measuring time and improve the measuring efficiency, the use of the four side surfaces is simplified to four lines of the four side surfaces in this article, and every two relative corresponding lines are used to find the symmetry line, and the two symmetry lines are intersected to obtain the intersection point, and the intersection point is projected onto the upper plane as the center point.
[0098] Figure 2 Schematic diagram of the parsing process in the embodiment provided by the present invention, such as Figure 2 As shown, the parsing process of this embodiment is as follows:
[0099] 1) Import CAD files and display them graphically.
[0100] 2) Get the bounding box of the CAD figure and decompose it into 6 axial bounding planes:
[0101] X positive plane: (28.2, 0, 0) (1, 0, 0), area (3285.1);
[0102] X negative plane: (-28.2, 0, 0) (-1, 0, 0), area (3285.1);
[0103] Y positive plane: (0, 24.7, 0) (0, 1, 0), area (3750.6);
[0104] Y negative plane: (0, -24.7, 0) (0, -1, 0), area (3750.6);
[0105] Z positive plane: (0, 0, 45.1) (0, 0, 1), area (2786.16);
[0106] Z negative plane: (0, 0, -21.4) (0, 0, -1), area (2786.16);
[0107] 3) Traverse the CAD graphics to obtain all plane graphics, that is, graphics whose graphic attributes are plane;
[0108] 4) Find a plane among all plane figures whose plane normal vector is consistent with the six axial directions and whose plane point coordinates are extreme values in this axial direction, including: an extreme value surface consistent with the X-axis vector direction, an extreme value surface consistent with the Y-axis vector direction, and an extreme value surface consistent with the Z-axis vector direction.
[0109] 5) Get the areas of these 6 faces (directly obtained by the graphics function),
[0110] X-direction plane area: 1057.16.
[0111] X negative plane area: 950.16 (with inclined side).
[0112] Y positive plane area: 1099.96 (with inclined side).
[0113] Y negative plane area: 1206.96.
[0114] Z positive plane area: 34.8.
[0115] Z negative plane area: 2773.66.
[0116] If the area of the Z negative plane is closest to the area of the Z negative enclosing plane, then the bottommost plane of the base, Plane1, is this plane.
[0117] 6) Obtain the adjacent planes of Plane1 from the graph and obtain 5 side planes.
[0118] 7) From any side surface, obtain the adjacent plane, and obtain the plane opposite to the normal vector of Plane1, that is, the upper plane Plane2 of the base.
[0119] 8) Store the upper and lower table graphics and the five side graphics (the relationship between the graphics has been described in steps 6 and 7).
[0120] 9) If the graphics obtained after steps 2 to 8 are not 6 axial planes and 1 inclined surface, then the graphics processing is wrong, an error is reported and the process ends; otherwise, proceed to the subsequent steps.
[0121] 10) Analyze the reference elements of the figure and obtain four lines by intersecting the four side surfaces (excluding the oblique side surfaces) with the upper surface Plane2.
[0122] 11) Analyze the upper plane Plane2 and analyze it into plane points according to the specified step size (the step size can be the probe radius of the trigger probe related to the measurement or a fixed offset). Take the three closest to the four vertices:
[0123] 1. P0Z+X:26.7000,Y:-22.6000,Z:0.0000,l:0.0000,J:0.0000,K:1.0000.
[0124] 2. P1Z+X:26.0000,Y:23.2000,Z:0.00001:0.0000,J:0.0000,K:1.0000.
[0125] 3. P2Z+X:-24.4728, Y: 21.3059, Z: 0.0000, I: 0.0000, J: 0.0000, K: 1.0000.
[0126] 12) For the four positive side surfaces, take at least two points on each side surface; intersect one side surface with Plane2 to obtain the intersection line, translate the intersection line within the side surface in the opposite direction of the normal vector of Plane2 by a specified step distance, and at the same time indent the intersection line by the specified step distance, and then take out the endpoints of the intersection line as the point values of the straight line resolved by the side surface, otherwise the points resolved according to the theory may not be measured in the actual measurement process; the point taking method for the other three side surfaces is the same.
[0127] Finally, the geometric feature points are obtained: 3 points on the upper plane and 2 points on each side.
[0128] 13) Determine whether the points are normal, that is, 3 points on the upper plane and 2 points on each side; if not, an error message will be prompted and the process will end; if normal, proceed to the next step.
[0129] 14) Output the obtained point data:
[0130] POZ+X:26.7000,Y:-22.6000,Z:0.0001:0.0000,J:0.0000,K:1.0000.
[0131] P1Z+X:26.0000,Y:23.2000,Z:00001:0.0000,J:0.0000,K:1.0000.
[0132] P2Z+X:-24.4728,Y:21.3059,Z:0.0000,1:0.0000,J:0.0000,K:1.0000.
[0133] P3Y-X:-25.2000,Y:-24.000,Z:-1.5000,1:0.0000,J-1.0000,K:0.0000.
[0134] P4Y-X:24.3000,Y:24.7000,Z:-1.5000,1:0.0000,J1.0000,K:0.0000.
[0135] P5X+X:28.2000,Y:-21.1000,Z:-1.50001:1.0000,J:0.0000,K:0.0000.
[0136] P6X+X:28.2000,Y:20.9000,Z:1.5000,1:1.0000,J:0.0000,K:0.0000.
[0137] P7Y+X:24.5000,Y:24.7000,Z:1.5000,1:0.0000,J:1.0000,K:0.0000.
[0138] P8Y+X:-20.5000,Y:24.7000,Z:-1.50001:0.0000,J:10000,K:0.0000.
[0139] P9X-X:-28.2000,Y:17.4711,Z:-1.5000,1:-1.0000,J:0.0000,K:0.0000.
[0140] P10X-X:-28.2000,Y:-21.5289,Z:-1.5000,1-.000,:0.0000,K:0.0000.
[0141] The output points can be used to establish the theoretical geometric elements of the coordinate system: 1 plane, 4 lines, and four sides to establish the coordinate system. At the same time, these points are measured and tested to establish the actual coordinate system, and then two inspections of the base are performed:
[0142] 1. Is the base tilted? That is, the Z value deviation of the three plane points P0Z+, P1Z+, and P2Z+ should be within the tolerance range; otherwise, the electrode product is unqualified;
[0143] 2. Whether the side points are centered: If they are correctly centered, the deviations of P3Y-, P4Y-, P7Y+, and P8Y+ are symmetrical; similarly, the deviations of P5X+, P6X+, P9X-, and P10X- are also symmetrical; at the same time, their deviations should be within the tolerance range, otherwise if there is no symmetry or the deviation exceeds the tolerance, the electrode product is unqualified;
[0144] If the above two tests fail, the electrode product is unqualified. If qualified, subsequent tests of the electrode product are carried out, and the invention will not be described in detail.
[0145] The present invention establishes a coordinate system on a three-dimensional coordinate measuring machine for the points analyzed from the CAD model of the electrode, and outputs the measured points. The detection of electrode products has been recognized by the electrode manufacturers, and meets the requirements of the electrode production and use process for base inspection. The analytical method has universal applicability and good practicality.
[0146] Since the production and use of electrodes are both based on the base, there are fixed requirements for electrode detection and the establishment of a reference coordinate system. The reference coordinate system is divided into four sides: the upper surface of the base is spatially aligned to determine the spatial axis; four positive measuring surfaces, each opposite surface is used to find the symmetry surface, and two intersecting surfaces are obtained, and the plane axis is determined with any two of them as the axis; the two symmetry surfaces are intersected to obtain the intersection line, and the intersection line is then intersected with the upper surface to obtain the intersection point, which is the coordinate origin; this can ensure that the center of the electrode product is consistent and the device is symmetrical.
[0147] Figure 3 The structural diagram of the analysis system in the embodiment provided by the present invention is as follows: Figure 3 As shown, the present invention also provides an automatic parsing system for electrode model coordinate system points, comprising:
[0148] The graphics determination module is used to determine the base graphics in the electrode model file.
[0149] The parsing module is used to parse the reference elements inside the base graphic to obtain a plurality of parsed plane points.
[0150] A coordinate determination module is used to determine the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the upper top surface geometric element points and the side surface geometric element points.
[0151] The present invention also provides an electronic device, including a processor and a memory, wherein the memory stores an executable computer program, and the processor can read the computer program in the memory and run it to implement an automatic analysis method for electrode model coordinate system points.
[0152] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an executable computer program, and when the computer program is run, a method for automatically parsing points in an electrode model coordinate system can be implemented.
[0153] The beneficial effects of the present invention are as follows:
[0154] (1) The present invention meets the requirements of the electrode production and use process for base inspection, and improves the versatility and practicality of the analytical method.
[0155] (2) The present invention provides an automatic analysis method, which improves the degree of automation of the detection process.
[0156] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0157] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. An automatic analysis method for electrode model coordinate system points, characterized in that: include: Determine the base graphics in the electrode model file, including: Obtaining a CAD drawing according to the model file of the electrode; Determine the minimum circumscribed cubic figure of the CAD figure; the minimum circumscribed cubic figure includes 6 enclosing plane figures; The geometric information of the CAD graphic is traversed to determine all the plane graphics in the CAD graphic, which are recorded as first plane graphics; Obtaining a plane normal vector of the first plane figure; Determine a plane whose normal vector is in the same direction as the normal vectors of each of the enclosing planar figures and has the largest direction value of the normal vector, to obtain a plane set; Determine a plane figure in the plane set whose plane area is closest to the area of the enclosing plane figure that is consistent with the direction of the plane, and record it as a second plane figure; the second plane figure is the lower bottom surface figure of the base figure; Determine five side graphics of the base graphic according to the lower bottom surface graphic; Determine the top surface figure of the base figure according to any one of the side figures; parsing the base graphic into a plurality of plane points; Determine the coordinates of the coordinate system geometric element points according to the coordinates of the plane points and the base figure; the coordinate system geometric element points include the top surface geometric element points and the side surface geometric element points; the coordinate system geometric element points are the points constituting the geometric features of the electrode; The step of determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic comprises: Determine the three plane points closest to the vertices of the upper top surface figure, record them as the upper top surface geometric element points, and obtain the coordinates of the upper top surface geometric element points according to the positions of the upper top surface geometric element points; the plane points are obtained by parsing the upper top surface figure of the base figure according to a preset step distance; Obtain four intersecting line segments of the side surface figure of the base figure and the upper top surface figure; The intersecting line segment is translated in the corresponding side figure in the opposite direction of the normal vector of the side figure, and the intersecting line segment is indented according to a preset indentation step to obtain an indented line segment; The endpoint of the indented line segment is obtained and recorded as the side surface geometric element point, and the coordinates of the side surface geometric element point are obtained according to the position of the side surface geometric element point.
2. The automatic analysis method of electrode model coordinate system points according to claim 1, characterized in that: The step of determining the base graphics in the electrode model file further includes: Storing the base graphic; It is determined whether the number of graphics of the base graphic is the same as the actual number of graphics of the base in the model file. If not, the detection process is terminated.
3. The automatic analysis method of electrode model coordinate system points according to claim 1, characterized in that: After determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic, the method further includes: It is determined whether the number of geometric element points in the coordinate system is the same as the preset number. If not, the detection process is terminated.
4. The automatic analysis method of electrode model coordinate system points according to claim 1, characterized in that: After determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic, the method further includes: Using the geometric element points of the coordinate system to measure the electrode to be measured on a three-coordinate measuring machine to obtain measurement points; Using the four-sided centering method, a product inspection coordinate system is established according to the measuring points; Obtaining the corresponding Z-axis value of the upper top surface geometric element point on the base of the electrode to be tested according to the product detection coordinate system; It is determined whether the deviation of each Z-axis value is within a preset error range. If not, the test result is unqualified.
5. The automatic analysis method of electrode model coordinate system points according to claim 4, characterized in that: After determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic, the method further includes: Obtain the corresponding X-axis value and Y-axis value of the side geometric element point according to the product detection coordinate system; It is determined whether the deviation of the corresponding X-axis value or Y-axis value of the side geometric element point on the corresponding surface is symmetrical and within a preset error range. If not, the test result is unqualified.
6. An automatic analysis system for electrode model coordinate system points, characterized in that: include: The graphics determination module is used to determine the base graphics in the electrode model file, including: Obtaining a CAD drawing according to the model file of the electrode; Determine the minimum circumscribed cubic figure of the CAD figure; the minimum circumscribed cubic figure includes 6 enclosing plane figures; The geometric information of the CAD graphic is traversed to determine all the plane graphics in the CAD graphic, which are recorded as first plane graphics; Obtaining a plane normal vector of the first plane figure; Determine a plane whose normal vector is in the same direction as the normal vectors of each of the enclosing planar figures and has the largest direction value of the normal vector, to obtain a plane set; Determine a plane figure in the plane set whose plane area is closest to the area of the enclosing plane figure that is consistent with the direction of the plane, and record it as a second plane figure; the second plane figure is the lower bottom surface figure of the base figure; Determine five side graphics of the base graphic according to the lower bottom surface graphic; Determine the top surface figure of the base figure according to any one of the side figures; A parsing module, used for parsing the reference elements inside the base graphic to obtain a plurality of parsed plane points; A coordinate determination module, used to determine the coordinates of the coordinate system geometric element points according to the coordinates of the plane point and the base figure; the coordinate system geometric element points include the upper top surface geometric element points and the side surface geometric element points; The step of determining the coordinates of the geometric element points of the coordinate system according to the coordinates of the plane points and the base graphic comprises: Determine the three plane points closest to the vertices of the upper top surface figure, record them as the upper top surface geometric element points, and obtain the coordinates of the upper top surface geometric element points according to the positions of the upper top surface geometric element points; the plane points are obtained by parsing the upper top surface figure of the base figure according to a preset step distance; Obtain four intersecting line segments of the side surface figure of the base figure and the upper top surface figure; The intersecting line segment is translated in the corresponding side figure in the opposite direction of the normal vector of the side figure, and the intersecting line segment is indented according to a preset indentation step to obtain an indented line segment; The endpoint of the indented line segment is obtained and recorded as the side surface geometric element point, and the coordinates of the side surface geometric element point are obtained according to the position of the side surface geometric element point.
7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores an executable computer program, and the processor can read the computer program in the memory and run it to implement the automatic analysis method of the electrode model coordinate system points according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an executable computer program, and when the computer program is run, the automatic analysis method of the electrode model coordinate system points according to any one of claims 1 to 5 can be implemented.
