Electrode design method, device, equipment and computer-readable storage medium
By pre-establishing a library of electrode head design models and storing multiple electrode head types and their design strategies, the problems of long electrode design cycles and large workloads are solved, and the rapid design and consistent manufacturing of electrodes are achieved.
Patent Information
- Application Number
- CN202111502739.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-12-09
AI Technical Summary
The existing electrode design method has a long design cycle and a large workload, which requires high design level and experience.
Establish a pre-established electrode head design model library to store multiple electrode head types and their corresponding design strategies. By calling the model library, directly select the target electrode head type, and automatically complete the electrode head design through application programmatic purposes.
The electrode design steps are simplified, the electrode design is achieved quickly, and the manufacturing consistency of electrode design in the mold is ensured.
Smart Images

Figure CN114254496B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electrode design, and in particular relates to an electrode design method, device, equipment and computer-readable storage medium. Background Art
[0002] As an important process equipment in mold manufacturing, the efficiency and high quality of electrode design and processing will directly affect the manufacturing cycle and manufacturing quality of the mold.
[0003] Using traditional design models, the electrode design and manufacturing cycle is long and the workload is heavy, which greatly prolongs the production preparation cycle of the mold. Furthermore, designing electrodes requires a certain level of design skill and experience from the designer. The judgment of process and parameters in the design process requires manual judgment. To design an electrode that meets the requirements, it must be completed through a lot of human-computer interaction. With the continuous development of computer-aided design and manufacturing technology, and the continuous deepening of three-dimensional design ideas and technologies, parametric design has gradually developed. The development of a parametric design system for planar slot antennas allows users to quickly define the external dimensions of the electrode. By importing the parameter values of electrical design and simulation, the three-dimensional model of the required electrode structure can be quickly obtained. This has certain positive significance for the development of the electrode design industry. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide an electrode design method, device, equipment and computer-readable storage medium, aiming to solve the problems of the existing electrode design method, which has a long design cycle, a large workload and high requirements on the designer's design level and experience.
[0005] In order to solve the above technical problems, a first aspect of an embodiment of the present application provides an electrode design method, comprising:
[0006] Calling an electrode head design model library and obtaining a target electrode head type from the electrode head design model library; wherein the electrode head type is an electrode head type established based on model features of trimming and extending, surface stretching, block area, lasso area, inherited electrode block area, and inherited electrode lasso area, respectively;
[0007] Based on the three-dimensional model of the current part to be designed, the target electrode tip type is applied to generate an electrode tip model corresponding to the target electrode tip type;
[0008] Based on the electrode head model, an electrode reference seat model is created on the electrode head model to obtain a designed electrode model.
[0009] A second aspect of an embodiment of the present application provides an electrode design device for implementing the electrode design described above, comprising:
[0010] An acquisition module is used to call an electrode head design model library and acquire a target electrode head type from the electrode head design model library;
[0011] A first generating module is configured to generate an electrode tip model corresponding to the target electrode tip type based on a three-dimensional model of a current part to be designed and applying the target electrode tip type;
[0012] The second generation module is used to create an electrode reference seat model on the electrode head model based on the electrode head model to obtain a designed electrode model.
[0013] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements each step of the electrode design method provided in the first aspect of the embodiment of the present application.
[0014] The fourth aspect of the embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the electrode design method provided in the first aspect of the embodiment of the present application are implemented.
[0015] The electrode design method and device provided in the present invention, compared with the prior art, include the following methods: calling an electrode head design model library, obtaining a target electrode head type in the electrode head design model library; applying the target electrode head type based on the three-dimensional model of the current part to be designed, generating an electrode head model corresponding to the target electrode head type; creating an electrode reference seat model on the electrode head model based on the electrode head model, and obtaining a designed electrode model. The beneficial effect is that: the present invention pre-establishes an electrode head design model library, which can store a variety of electrode head types and electrode head design methods that establish a corresponding relationship with the electrode head types, so that when the user needs to design an electrode head for the current part, the electrode head design model library can be directly called to select the electrode head type corresponding to the desired design electrode head, and the design of the electrode head can be automatically completed after application; the user's electrode design steps are simplified, the rapid design function of the electrode is realized, and the consistency of electrode design and manufacturing in the mold is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a flow chart of the electrode design method in the first embodiment of the present invention;
[0017] Figure 2 Schematic diagram of the construction of the electrode head design model library in the first embodiment of the present invention;
[0018] Figure 3 is a flow chart of the electrode head design strategy in the first embodiment of the present invention;
[0019] Figure 4 is a schematic structural diagram of an electrode design device in a second embodiment of the present invention;
[0020] Figure 5 It is a schematic structural diagram of an electronic device provided in the third embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0022] The first embodiment of the present invention provides an electrode design method, such as Figure 1 The schematic diagram of the electrode design process shown includes:
[0023] Step 101: call the electrode head design model library and obtain the target electrode head type in the electrode head design model library.
[0024] It should be noted that the present invention is based on the data of the UG secondary development technology analysis model. On this basis, the structural characteristics of the electrode are deeply studied, and it is concluded that the concave area of the model needs to be designed with electrodes. According to different model characteristics, there are different rapid design methods for electrodes.
[0025] Before step 101, it is necessary to first construct an electrode head design model library based on the secondary development function of UG to make the electrode head design model library callable. The construction method of the electrode head design model library includes:
[0026] Step 201: construct an electrode head selection menu, which includes different electrode head types.
[0027] Among them, when constructing the electrode head selection menu, it is necessary to fully consider the existing model features, and then generate different electrode head types based on the existing model features. Preferably, considering the more conventional model features in electrode head design, different electrode head types are designed based on the conventional model features, and these conventional electrode head types are all included in the selection range of the electrode head selection menu of the present invention. For example, the electrode head type with the model feature of trimming and extending design, the electrode head type with the model feature of surface stretching design, including but not limited to the electrode head type formed by the model feature of square area, lasso area, inherited electrode square area, inherited electrode lasso area, etc.
[0028] Step 202: Setting a corresponding electrode head design strategy for each electrode head type.
[0029] In fact, when corresponding to different model features, some instructions cannot be generated on different model features. For each electrode head type, a corresponding electrode head design strategy is set to design an electrode design strategy based on the model features corresponding to the electrode head type.
[0030] Step 203: Establish a correspondence between electrode head types and electrode head design strategies to obtain an electrode head design model library.
[0031] That is, for each type of electrode head, a corresponding electrode head design strategy is designed. After the corresponding relationship is established, the electrode head type is selected, that is, the electrode head design strategy corresponding to the electrode head type is selected. The selected electrode head type is applied to complete the programmed operation of the design strategy.
[0032] As one implementation of the embodiment, the electrode head design strategy may generally include:
[0033] Step 301: For each electrode head type, obtain the region surface corresponding to each electrode head type.
[0034] Since different electrode head types are established based on different model features, electrode design strategies for different electrode head types are established in advance, and regional surfaces corresponding to each electrode head type are obtained on the part, where the regional surfaces contain model features.
[0035] Step 302: traverse the model boundary corresponding to the regional surface, extract the concave edges of the model boundary, and group the concave edges.
[0036] Among them, in the specific implementation, it is necessary to first traverse the model boundary corresponding to the regional surface, query the concavity and convexity of the model boundary, and then extract the concave edges of the model boundary based on the concavity and convexity; obtain the two endpoints of each concave edge, and based on the recursive algorithm, divide the connected concave edges into a group.
[0037] Step 303: Create a cube box entity model based on the grouped concave edges, and construct an outer ring boundary.
[0038] Specifically, the method includes obtaining adjacent faces of the concave edges based on the grouped concave edges; sorting and deduplicating the adjacent faces of the concave edges to extract the concave area; then creating a block box solid model based on the concave area and constructing the outer ring boundary.
[0039] Among them, when creating a square box entity model, the method adopted is: loop traversing each group of concave areas, analyzing and obtaining the corner points, length, width and height dimensions of each group of concave areas; then creating a square box entity model based on the corner points and the length, width and height dimensions, and the corner point is the minimum corner point.
[0040] Step 303 , trimming, extending or stretching the outer ring boundary to obtain a model that overlaps with the block box solid model, and trimming the model to obtain the electrode head model.
[0041] It should be noted that the above is only one of the electrode head design strategies provided by the present invention to achieve electrode head design. It should be understood that the use of other conventional electrode design strategies and their application in the electrode design method of this application are all within the scope of protection of the present invention.
[0042] The following uses the trim and extend model feature as an example to provide a specific electrode head design strategy:
[0043] 1.1 Group connected edges. Use the function UF_MODL_ask_edge_verts to obtain the two endpoints of the nth edge. Use a recursive algorithm to group each edge based on its two endpoints. Starting from the first edge, obtain the second edge that shares a point with the first edge. Remove the first edge and start again with the second edge. Repeat the recursive traversal until the end. Each recursive traversal ends in a group.
[0044] 1.2 Extract the adjacent faces of the concave edge. Based on the topological structure, each edge has only two adjacent faces. Use the function UF_MODL_ask_edge_faces to obtain the tags of the adjacent faces of the edge. Place the tags into a container, sort the container, and remove duplicate tags, retaining only unique tags. Then use the CreateExtractFaceBuilder function to extract faces based on the tags. Each group of extracted faces is considered a group.
[0045] 1.3 Create a minimum box solid model for each group of extracted faces. Use the function UF_MODL_ask_bounding_box_aligned to loop through each group of faces and determine the minimum corner points and dimensions of each group. Use the function UF_MODL_create_block1 to create a box based on these minimum corner points and dimensions.
[0046] 1.4 Get the outer ring boundary of the extracted face (group). Loop through a group of faces and use the function UF_MODL_ask_face_edges to get all the boundary tags for each face. Put the boundary tags into a container. Extract the only boundary tag from the container, which is the outer ring boundary of the group of faces.
[0047] Create trim and extend features based on the tags of each set of outer ring boundaries using the function UF_MODL_TREX_create_trex_feature.
[0048] 1.5 Trim and extend features with the minimum box. Use the function UF_MODL_trim_body with the box solid model as the target and the trim and extend features as the tool to trim and obtain the electrode head model.
[0049] Alternatively, taking the model feature of surface extrusion as an example, a specific electrode head design strategy is provided:
[0050] 2.1 Group connected concave edges and extract adjacent faces. Based on the topological structure, each edge has only two adjacent faces. Use the function UF_MODL_ask_edge_faces to obtain the tags of the adjacent faces of the edge. Place the tags into a container, sort the container, and remove duplicate tags, retaining only unique tags. Then use the CreateExtractFaceBuilder function to extract faces based on the tags.
[0051] 2.2 Create a minimum box solid model for this group of faces. Use the function UF_MODL_ask_bounding_box_aligned to loop through each group of faces and analyze the minimum corner points and dimensions of the group. Use the function UF_MODL_create_block1 to create a box based on these minimum corner points and dimensions.
[0052] 2.3 Using the function UF_MODL_TREX_create_trex_feature to trim and extend the outer ring boundary will fail. After capturing the trim and extension failure in 2.3, replace the function and use UF_MODL_create_extruded1 to stretch the outer ring boundary.
[0053] 2.4 The stretched surface and the extracted surface are stitched using the function UF_MODL_create_sew.
[0054] 2.5 Trimming the stitched surface with the minimum box. Use the function UF_MODL_trim_body to trim the box as the target and the stitched surface as the tool to obtain the electrode head model.
[0055] Among them, before the above steps 1.1 and 2.1, the following steps are also included:
[0056] Use the function UF_MODL_ask_body_edges to traverse the boundaries of the entity and obtain a linked list of boundaries. Use UF_MODL_ask_list_count to obtain the number of linked lists, and use UF_MODL_ask_list_item to loop through each edge and obtain the tag of each edge. Use PK_EDGE_ask_convexity to query the convexity of the boundary.
[0057] Table 1 - Convexity of returns
[0058]
[0059]
[0060] Take the edges of PK_EDGE_convexity_concave_c and PK_EDGN_convexity_smooth_cc_c.
[0061] The above are just exemplary design methods for two types of electrode heads. After determining the above different electrode head types, that is, electrode heads with different model features, a corresponding relationship between the target electrode head type and the electrode head design method is established.
[0062] Among them, in order to obtain the electrode head type intuitively and clearly, when constructing the electrode head selection menu, display images of different target electrode head types and text descriptions of different target electrode head types can be constructed; and a correspondence between the display image and the text description can be established, and then the electrode head can be described from both image and text description aspects.
[0063] Furthermore, the electrode head design model library is called, and the target electrode head type is selected in the electrode head design model library, that is, an electrode head selection menu is obtained, and the target electrode head type is selected from the electrode head types displayed in the electrode head selection menu.
[0064] Specifically, in actual application, the 3D model of the part to be designed needs to be appropriately enlarged or reduced to fit the current display window, and the display position of the 3D model needs to be adjusted to display the surface of the electrode head to be designed within the window. Based on the displayed 3D model, the area of the 3D model where the electrode head needs to be designed is obtained. Then, the obtained target electrode head type is used to quickly generate an electrode head corresponding to the target electrode head type.
[0065] After completing the establishment of the electrode head design model library, it also includes:
[0066] Step 102 : Based on the three-dimensional model of the current part to be designed, the target electrode tip type is applied to generate an electrode tip model corresponding to the target electrode tip type.
[0067] Specifically including: judging whether the regional surface can generate an electrode head corresponding to the target electrode head type;
[0068] If the judgment result is yes, then running the design method corresponding to the acquired target electrode head type to quickly generate an electrode head corresponding to the target electrode head type;
[0069] If the judgment result is no, it is necessary to re-acquire the target electrode head type and apply the re-acquired target electrode head type.
[0070] On the one hand, this design solution allows experienced designers to see the characteristics of the regional surface of the electrode head to be designed from the three-dimensional model of the current part to be designed. Therefore, when selecting the pre-selected electrode head type, the target electrode head type corresponding to the regional surface type can be selected to prevent the situation where the selected pre-selected electrode head type cannot be generated on the regional surface, saving time. On the other hand, for designers who have just entered the industry, due to lack of experience and knowledge reserves, they cannot confirm which target electrode head type to use to generate the electrode head corresponding to the regional surface. At this time, they only need to replace the selected target electrode head type when the selected target electrode head type cannot generate the electrode head, and apply the newly acquired target electrode head type. As long as the regional surface characteristics are the characteristics stored in the electrode head design model library of the present invention, the design of the electrode head can be completed. This reduces the design level of the designer and improves efficiency.
[0071] Step 103: Based on the electrode head model, an electrode reference seat model is created on the electrode head model to obtain a designed electrode model.
[0072] Among them, the design of the electrode reference seat can also adopt the component electrode reference seat model library method, which will not be repeated here.
[0073] As one implementation of this embodiment, a method for creating an electrode reference seat when the model feature is trimming and extending includes:
[0074] 1.6.1 Analyze the distances between trimmed entities. Entities within a group are considered to have distances between 3 and 10 mm. Use the UF_MODL_ask_body_faces function to loop through the faces of each entity in the group. Use UF_MODL_ask_face_type to query the face type. Select a face (plane) of type UF_MODL_PLANAR_FACE. Use UF_MODL_ask_face_data to query the face normal. Use UF_VEC3_is_equal to determine if the face normal is equal to the Z-axis vector. Obtain the face tag for faces whose normals are equal to the Z-axis vector. Use the CreateExtrudeBuilder function to create a face extrusion feature along the Z-axis. Perform a Boolean addition operation on the extrusion feature body and the trimmed body using the UF_MODL_unite_bodies_with_retained_options function.
[0075] 1.6.2 Use the above logic again to analyze the plane in the entity whose face normal is equal to the Z-axis vector after the Boolean addition operation.
[0076] 1.6.3 Use the function UF_MODL_create_block1(UF_FEATURE_SIGN sign, doublecorner_pt[3], char*edge_len[3], tag_t*blk_obj_id) to create the electrode base block.
[0077] 1.6.4 Where corner_pt[3] = {min_corner[0] - 3.0, min_corner[1] - 3.0, min_corner[2]}, the corner points of the block are offset by 3mm, length = distances[0] + 3.0 * 2 (mm), width = distances[1] + 3.0 * 2 (mm), height = 8mm to generate the electrode base block.
[0078] 1.6.5UF_MODL_ask_body_edges traverses the edges of the electrode base block. UF_MODL_ask_edge_verts(tag_t edge, double point1[3], double point2[3], int*vertex_count) queries the two endpoints of the edge. The edge vector edge_vec[3] = {point1[0] - point2[0], point1[1] - point2[1], point1[2] - point2[2]}. The Z-axis vector vec_z[3] = {0.0, 0.0, 1.0}. Use the UF_VEC3_is_parallel function to obtain the four edges whose edge vectors are parallel to the Z-axis vector.
[0079] 1.6.6 Use UF_MODL_create_blend to select three edges to create a fillet feature, and use UF_MODL_create_chamfer to select one edge to create a bevel feature.
[0080] 1.6.7 Use the UF_MODL_unite_bodies_with_retained_options function to perform a Boolean addition operation on the electrode base entity and the trimmed entity to complete the automatic electrode design.
[0081] Compared with the existing technology, the solution of the present invention pre-establishes an electrode head design model library, which can store a variety of electrode head types and electrode head design strategies corresponding to the electrode head types, so that when the user needs to design the electrode head of the current part, the electrode head design model library can be directly called to select the electrode head type corresponding to the required design electrode head. After application, the design of the electrode head is automatically completed by programming; it simplifies the user's electrode design steps, realizes the rapid design function of the electrode, and also ensures the consistency of electrode design and manufacturing in the mold.
[0082] The second embodiment of the present invention provides an electrode design device for implementing the electrode design method in the first embodiment. The specific method will not be described in detail here. Figure 4 The electrode design device shown in the figure includes:
[0083] An acquisition module 401 calls an electrode head design model library and acquires a target electrode head type from the electrode head design model library;
[0084] The first generation module 402 generates an electrode tip model corresponding to the target electrode tip type based on the three-dimensional model of the current part to be designed and applying the target electrode tip type;
[0085] The second generation module 403 creates an electrode reference seat model on the electrode head model based on the electrode head model to obtain a designed electrode model.
[0086] Furthermore, it also includes:
[0087] Construction module 404 is used to construct an electrode head selection menu, wherein the electrode head selection menu includes different electrode head type options; and is used to set a corresponding electrode head design strategy for each electrode head type; and is also used to establish a correspondence between the electrode head type and the electrode head design strategy to obtain an electrode head design model library.
[0088] Among them, the construction module 404 is specifically used to: obtain the area surface corresponding to each electrode head type for each electrode head type; traverse the model boundary corresponding to the area surface, extract the concave edges of the model boundary, and group the concave edges; create a square box solid model based on the grouped concave edges, and construct the outer ring boundary; trim, extend or stretch the outer ring boundary to obtain a model that overlaps with the square box solid model, trim the model, and complete the setting of the electrode head design strategy.
[0089] The construction module 404 is further specifically configured to: obtain adjacent faces of the concave edges based on the grouped concave edges; sort and deduplicate the adjacent faces of the concave edges to extract the concave regions; create a box solid model based on the concave regions; and construct an outer ring boundary. The box solid model creation method includes: looping through each group of concave regions, analyzing and obtaining corner points, as well as length, width, and height dimensions of each group of concave regions; and creating the box solid model based on the corner points and length, width, and height dimensions.
[0090] The first generation module 402 is specifically used to: determine whether the regional surface of the three-dimensional model can generate an electrode head corresponding to the target electrode head type; if the judgment result is yes, call the design strategy corresponding to the target electrode head type to generate an electrode head corresponding to the target electrode head type; if the judgment result is no, re-acquire the target electrode head type, and then return to execute the step of determining whether the regional surface can generate an electrode head corresponding to the target electrode head type.
[0091] The device provided by the present invention can realize a rapid design method for an electrode head, simplifies the electrode design steps for users, realizes a rapid design function of the electrode, and also ensures the consistency of the design and manufacture of the electrode in the mold.
[0092] See also Figure 5 , Figure 5 This is an electronic device provided in the third embodiment of the present application. This electronic device can be used to implement the electrode design method in the above embodiment. Figure 5 As shown, the electronic device mainly includes:
[0093] Memory 501, processor 502, bus 503, and a computer program stored in memory 501 and executable on processor 502. Memory 501 and processor 502 are connected via bus 503. When processor 502 executes the computer program, the electrode design method described in the aforementioned embodiment is implemented. The number of processors may be one or more.
[0094] The memory 501 can be a high-speed random access memory (RAM) memory or a non-volatile memory such as a disk drive. The memory 501 is used to store executable program codes. The processor 502 is coupled to the memory 501 .
[0095] Furthermore, the embodiment of the present application also provides a computer-readable storage medium, which can be provided in the electronic device in the above embodiments. The computer-readable storage medium can be the above Figure 5 Memory in the illustrated embodiment.
[0096] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the Internet diagnosis and treatment management method of the aforementioned embodiment. Furthermore, the computer-readable storage medium may be a USB flash drive, a mobile hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, among other media capable of storing program code.
[0097] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. An electrode design method, characterized in that: include: Constructing an electrode head selection menu, wherein the electrode head selection menu includes different electrode head type options; For each of the electrode head types, obtaining a region surface corresponding to each of the electrode head types; Traversing the model boundary corresponding to the regional surface, extracting the concave edges of the model boundary, and grouping the concave edges; Creating a box solid model and constructing an outer ring boundary according to the grouped concave edges; Trimming, extending or stretching the outer ring boundary to obtain a model that overlaps with the block box solid model, trimming the model to complete the setting of the electrode head design strategy; Establishing a correspondence between the electrode head type and the electrode head design strategy to obtain an electrode head design model library; Calling an electrode head design model library and obtaining a target electrode head type from the electrode head design model library; wherein the electrode head type is an electrode head type established based on model features of trimming and extending, surface stretching, block area, lasso area, inherited electrode block area, and inherited electrode lasso area, respectively; Based on the three-dimensional model of the current part to be designed, the target electrode tip type is applied to generate an electrode tip model corresponding to the target electrode tip type; Based on the electrode head model, an electrode reference seat model is created on the electrode head model to obtain a designed electrode model.
2. The electrode design method according to claim 1, characterized in that: The traversing the model boundary corresponding to the regional surface, extracting the concave edges of the model boundary, and grouping the concave edges includes: Traverse the model boundary corresponding to the regional surface and query the concavity and convexity of the model boundary. extracting a concave edge of the model boundary according to the concavity and convexity; The two endpoints of each concave edge are obtained, and the connected concave edges are grouped based on a recursive algorithm.
3. The electrode design method according to claim 1, characterized in that: The step of creating a box solid model and constructing an outer ring boundary according to the grouped concave edges includes: Acquire adjacent faces of the concave edges based on the grouped concave edges; Sorting and removing duplicates of adjacent faces of the concave edge to extract the concave region; A block box solid model is created according to the concave area, and an outer ring boundary is constructed.
4. The electrode design method according to claim 3, characterized in that: The step of creating a block box entity model according to the concave area includes: Loop through each group of concave areas, analyze and obtain the corner points, length, width and height of each group of concave areas; The block box entity model is created according to the corner points and the length, width and height dimensions.
5. The electrode design method according to claim 1, characterized in that: The target electrode head type obtained by the application is used to quickly generate an electrode head corresponding to the target electrode head type, including: Determining whether the region of the three-dimensional model can generate an electrode head corresponding to the target electrode head type; If the judgment result is yes, calling the design strategy corresponding to the target electrode head type to generate an electrode head corresponding to the target electrode head type; If the judgment result is no, the target electrode head type is acquired again, and then the process returns to the step of judging whether the regional surface can generate an electrode head corresponding to the target electrode head type.
6. An electrode design device for implementing the electrode design method according to any one of claims 1 to 5, characterized in that: include: An acquisition module is used to construct an electrode head selection menu, the electrode head selection menu including different electrode head type options; for each electrode head type, obtain a region surface corresponding to each electrode head type; traverse the model boundary corresponding to the region surface, extract the concave edges of the model boundary, and group the concave edges; create a box solid model based on the grouped concave edges, and construct an outer ring boundary; trim, extend, or stretch the outer ring boundary to obtain a model that overlaps with the box solid model, trim the model, and complete the setting of the electrode head design strategy; establish a correspondence between the electrode head type and the electrode head design strategy to obtain an electrode head design model library; calling an electrode head design model library, and obtaining a target electrode head type from the electrode head design model library; A first generating module is configured to generate an electrode tip model corresponding to the target electrode tip type based on a three-dimensional model of a current part to be designed and applying the target electrode tip type; The second generation module is used to create an electrode reference seat model on the electrode head model based on the electrode head model to obtain a designed electrode model.
7. An electronic device, characterized in that: include: Memory, processor, and bus; The bus is used to realize the connection and communication between the memory and the processor; The processor is configured to execute a computer program stored in the memory; When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.