Model processing method, electronic equipment and storage medium

By automatically identifying and merging parts in the finite element model, the problem of manual operation is solved, and the efficiency and accuracy of model processing is improved.

CN120012195APending Publication Date: 2025-05-16SANY HEAVY IND CO LTD (CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510095516.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-21
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art relies on manual operations in the pre-processing process of finite element analysis, which leads to time-consuming and labor-intensive and easy introduction of human errors, reducing model processing efficiency.

Method used

By obtaining a part list of geometric models, distinguishing parts with and without extensions, and creating corresponding lists based on part types, merging the same parts, reducing redundant information.

Benefits of technology

It improves the efficiency and accuracy of model processing, reduces the occurrence of human errors, and simplifies model management and operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012195A_ABST
    Figure CN120012195A_ABST
Patent Text Reader

Abstract

The invention provides a model processing method, electronic equipment and a storage medium. Relates to the technical field of computers. The method comprises the steps that a part list of a geometric model is obtained, the part list comprises a first type of parts with extension names and a second type of parts without extension names, and the extension names are used for distinguishing the same parts; respectively establishing a first part list and a second part list according to part types; and if the parts in the first list exist in the second list, merging the parts into the second list and deleting the parts from the first list. By means of the method, the same parts can be effectively distinguished through the extension names, and therefore accurate recognition and management of the types of the parts are achieved. The accuracy and efficiency of part merging are improved, and the processing efficiency of the whole model is further enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a model processing method, an electronic device and a storage medium. Background Art

[0002] As a powerful numerical calculation tool, finite element analysis has been widely used in the field of engineering design and analysis. It can divide a complex assembly into a limited number of simple geometric units, and predict the response of the overall structure by solving the behavior of these units.

[0003] However, as the complexity and precision requirements of product design continue to increase, the size and complexity of finite element models are also increasing significantly. This trend places higher demands on the pre-processing process of finite element analysis. The pre-processing process includes steps such as geometric model simplification, meshing, material property definition, and boundary condition setting, and is the basic link of finite element analysis.

[0004] In the related technology, traditional finite element model pre-processing usually relies on manual operation, especially in the simplification and merging of geometric models, which requires processing geometric models containing a large number of parts and components. However, this manual processing method is not only time-consuming and labor-intensive, but also prone to human errors, thereby reducing the processing efficiency of the model. Summary of the invention

[0005] The present application provides a model processing method, an electronic device and a storage medium to improve the processing efficiency of the model.

[0006] In a first aspect, the present application provides a model processing method, comprising:

[0007] Obtain a parts list of a geometric model, wherein the parts list includes first-category parts and second-category parts, wherein the part names of the first-category parts include extensions, and the part names of the second-category parts do not include extensions, and the extensions in the part names are used to distinguish identical parts;

[0008] Establish a first parts list based on the first category of parts, and establish a second parts list based on the second category of parts;

[0009] If any part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list, and the part is deleted from the first parts list.

[0010] In a possible implementation, the method further includes:

[0011] If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list, and the part name of the empty part includes the part name of the part in the first parts list without the extension name;

[0012] The parts in the first parts list are merged into the empty parts, and the parts are deleted from the first parts list.

[0013] In a possible implementation, if any part in the first parts list exists in the second parts list, merging the part into the corresponding part in the second parts list includes:

[0014] If any part in the first parts list has a part name that has the same name in the second parts list after removing the extension, it is determined that the part exists in the second parts list, and the part entity of the part is placed in the corresponding part entity in the second parts list.

[0015] In a possible implementation manner, the parts list includes at least one assembly group, and establishing a first parts list according to the first category of parts and establishing a second parts list according to the second category of parts includes:

[0016] For each assembly group, a first parts list is established according to the first type of parts in the assembly group, and a second parts list is established according to the second type of parts in the assembly group.

[0017] In a possible implementation, the method further includes:

[0018] If any part in the first parts list exists in the second parts list, merge the part into the corresponding part in the second parts list and delete the part from the first parts list;

[0019] The part names of the parts in the second parts list are renamed to obtain renamed part names, wherein the renamed part names include the part names and an identifier of the assembly group.

[0020] In a possible implementation, the method further includes:

[0021] If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list; the part name of the empty part includes the part name of the part after removing the extension and the identifier of the assembly group;

[0022] The part is merged into the empty part, and the part is deleted from the first part list.

[0023] In a possible implementation manner, the parts list includes mid-surface parts from which mid-planes can be extracted, and the method further includes:

[0024] Performing mid-surface extraction processing on the mid-surface part to obtain the part thickness of the mid-surface part;

[0025] Renaming the mid-surface part name of the mid-surface part to obtain a renamed mid-surface part name, wherein the renamed mid-surface part name includes the mid-surface part name and part thickness;

[0026] A third parts list is constructed according to the mid-surface parts corresponding to the renamed mid-surface part names, and the parts in the parts list except the mid-surface parts are put into a fourth parts list.

[0027] In a possible implementation, the method further includes:

[0028] If there are parts with the same thickness in the third parts list, merge the parts with the same thickness to obtain a merged part, put the merged part into the fourth parts list, and delete the parts before the merge from the third parts list, and the part name of the merged part includes the part thickness;

[0029] If there are parts of a single thickness in the third parts list, the parts of the single thickness are put into the fourth parts list and deleted from the third parts list, and the part name of the parts of the single thickness includes the part thickness.

[0030] In a second aspect, the present application provides a model processing device, comprising:

[0031] An acquisition module, used for acquiring a parts list of a geometric model, wherein the parts list includes first-category parts and second-category parts, wherein the part names of the first-category parts include extensions, and the part names of the second-category parts do not include extensions, and the extensions in the part names are used to distinguish identical parts;

[0032] A first processing module, used for establishing a first parts list according to the first category of parts, and establishing a second parts list according to the second category of parts;

[0033] The second processing module is used to merge any part in the first parts list into the corresponding part in the second parts list if the part exists in the second parts list, and delete the part from the first parts list.

[0034] In a third aspect, the present application provides an electronic device, including: a memory, a processor;

[0035] The memory stores computer-executable instructions;

[0036] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the model processing method as described in any one of the first aspects.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the model processing method described in any one of the first aspects.

[0038] In a fifth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, is used to implement the model processing method described in any one of the first aspects.

[0039] The model processing method, electronic device and storage medium provided by the present application obtain a parts list of a geometric model, which includes first-category parts with extensions and second-category parts without extensions, and the extensions are used to distinguish the same parts. A first and second parts list are established respectively according to the part type; if a part in the first list exists in the second list, it is merged into the second list and deleted from the first list. In the above process, the same parts can be distinguished by the extension, the part type can be effectively identified and managed, the accuracy and efficiency of part merging can be improved, and the processing efficiency of the model can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0041] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0042] Figure 2 A schematic diagram of the flow chart of the first embodiment of the model processing method provided in this application;

[0043] Figure 3 A schematic diagram of the flow chart of the second embodiment of the model processing method provided in this application;

[0044] Figure 4 A schematic diagram of the flow chart of the third embodiment of the model processing method provided in this application;

[0045] Figure 5 A flow chart of a first example of a model processing method provided in an embodiment of the present application;

[0046] Figure 6 A schematic diagram of a flow chart of a fourth embodiment of the model processing method provided in this application;

[0047] Figure 7 A schematic diagram of a flow chart of a second example of a model processing method provided in an embodiment of the present application;

[0048] Figure 8 A schematic diagram of a flow chart of a model processing method example 3 provided in an embodiment of the present application;

[0049] Fig. 9 A flow chart of a fourth example of a model processing method provided in an embodiment of the present application;

[0050] Fig.10 A schematic diagram of the structure of the first embodiment of the model processing device provided by the present application;

[0051] Fig.11 A schematic diagram of the structure of the second embodiment of the model processing device provided by the present application;

[0052] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0053] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0055] First, the terms involved in this application are explained:

[0056] Mid-surface part: A part model formed by extracting and simplifying the geometry of thin-walled structures (such as plates, shells, etc.) to improve the efficiency and accuracy of finite element analysis. It reduces the computational complexity by simplifying the thickness direction of a three-dimensional object into a two-dimensional surface while retaining key geometric characteristics.

[0057] In modern engineering design and analysis, finite element analysis (FEA) can be used to simulate and analyze complex structures to predict their performance under various load conditions, including stress distribution, deformation degree and potential failure points, thereby helping technicians optimize the design scheme to improve the structural safety and reliability of the product.

[0058] However, as user demands continue to grow, products need to meet higher accuracy standards and more complex design requirements, which puts higher demands on the pre-processing process of finite element analysis, especially in terms of model simplification. The simplified model is easier to visualize and understand, helping users to better identify and analyze key design issues. For example, by merging parts, the number of units in the model can be reduced, making the model easier to manage and process, thereby improving analysis efficiency.

[0059] In the related art, in terms of model simplification in the pre-processing process, models containing a large number of parts and components are usually simplified and merged manually. This manual processing method requires technicians to have rich experience to ensure that key parts are not lost during the simplification process. However, this manual operation method not only requires a lot of time and energy, but is also prone to human errors, thereby reducing the efficiency of model pre-processing.

[0060] In response to the above problems, the inventors considered that each part in the model can be automatically identified and merged. Specifically, a parts list of a geometric model can be obtained, and the parts list includes first-category parts with extensions and second-category parts without extensions, and the extensions are used to distinguish the same parts. A first parts list is generated based on the first-category parts, and a second parts list is generated based on the second-category parts. If a part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list and deleted from the first parts list to improve the efficiency of model simplification. Based on this, the present application proposes a model processing method, which aims to optimize parts management and thus improve the overall efficiency of model processing.

[0061] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of the present application. Figure 1 , including a first parts list and a second parts list, the part names of the parts in the first parts list include extensions, and the part names of the parts in the second parts list do not include extensions. Any part in the first parts list can be merged into the corresponding part in the second parts list based on its existence in the second parts list.

[0062] For example, the first parts list includes parts A.1 and A.2, and the second parts list includes part A, and ".1" and ".2" are extensions. Part A.1, part A.2, and part A are the same parts. Part A.1 and part A.2 in the first parts list can be merged into the corresponding part A in the second parts list based on the fact that they exist in the second parts list, i.e., part A.

[0063] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0064] Figure 2 This is a flow chart of the first embodiment of the model processing method provided in this application. Figure 2 , the method comprising:

[0065] S201. Obtain a parts list of a geometric model, wherein the parts list includes first-category parts and second-category parts. The part names of the first-category parts include extensions, while the part names of the second-category parts do not include extensions. The extensions in the part names are used to distinguish identical parts.

[0066] The execution subject of the embodiment of the present application may be an electronic device, or a model processing device provided in the electronic device. The model processing device may be implemented by software, or by a combination of software and hardware. The model processing device may be a processor in the electronic device. For ease of understanding, the following description is made by taking the execution subject as an electronic device as an example.

[0067] In this step, a parts list of the geometric model can be obtained, which includes two types of parts. The first type of parts includes an extension in the part name, and the second type of parts does not include an extension in the part name. The extension is used to distinguish the same parts.

[0068] Optionally, finite element pre-processing software or computer-aided design software may be used to identify the geometric model imported by the user and obtain a parts list of the geometric model. The finite element pre-processing software may be HyperMesh, and the computer-aided design software may be 3D modeling software, such as SolidWorks.

[0069] The extension name can be an identifier added by the user to the part according to the needs when building the geometric model. The extension name is used to distinguish the same type of parts so that they are easier to identify and manage in the model. For example, in a complex assembly, the user may use multiple identical parts, so they need to be distinguished by the extension name.

[0070] Optionally, the extension name may be automatically added to the same part when obtaining the parts list. For example, the geometric model includes three parts A. When obtaining the parts list of the geometric model, the extension name may be automatically added to the same part to obtain part A, part A.1, and part A.2.

[0071] It should be noted that there are many forms of extensions and they are not limited to a specific format or type. For example, the extension may consist of one or more characters, be located at the end of the name, and be prefixed with a dot "." or "-".

[0072] For example, a parts list of a geometric model may be obtained, where the parts list includes first-category parts and second-category parts. The first-category parts include parts A.1 and A.2, and the second-category parts include part A.

[0073] S202: Create a first parts list based on the first category of parts, and create a second parts list based on the second category of parts.

[0074] In this step, a first parts list may be established based on first-category parts whose part names include extensions, and a second parts list may be established based on second-category parts whose part names do not include extensions.

[0075] For example, a first parts list may be created based on parts A.1 and A.2, and a second parts list may be created based on part A.

[0076] S203: If any part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list, and the part is deleted from the first parts list.

[0077] In this step, each part in the first parts list may be traversed, and after finding the corresponding part in the second parts list, it may be merged into the corresponding part in the second parts list, and the part may be deleted from the first parts list.

[0078] For example, you can traverse Part A.1 and Part A.2 in the first parts list, find the corresponding Part A in the second parts list, merge Part A.1 and Part A.2 into Part A, and delete Part A.1 and Part A.2 from the first parts list.

[0079] In an embodiment of the present application, a parts list of a geometric model can be obtained, which includes first-category parts with extensions and second-category parts without extensions. The extensions are used to distinguish identical parts. A first and second parts list are established respectively according to the first and second parts. If a part in the first parts list exists in the second parts list, it is merged into the corresponding part and deleted from the first parts list. In the above process, identical parts can be automatically merged together according to the extensions, thereby simplifying parts management and improving model processing efficiency.

[0080] Figure 3 This is a flow chart of the second embodiment of the model processing method provided in this application. Figure 3 , based on the above embodiment, the method further includes:

[0081] S301. If any part in the first parts list does not exist in the second parts list, create an empty part in the second parts list.

[0082] In this step, each part in the first parts list can be traversed, and if no part corresponding to any part in the first parts list is found in the second parts list, an empty part is created in the second parts list. The part name of the empty part includes the part name of the part in the first parts list without the extension.

[0083] For example, the first category of parts in the parts list includes part A.1 and part A.2, and the second category of parts in the parts list includes part B. Then, a first parts list can be established based on part A.1 and part A.2, and a second parts list can be established based on part B.

[0084] Furthermore, part A.1 and part A.2 in the first parts list may be traversed. If no corresponding part A in the second parts list is found, an empty part is created in the second parts list, and the part name of the empty part is A.

[0085] S302: Merge the parts in the first parts list into the empty parts, and delete the parts from the first parts list.

[0086] In this step, you can traverse Part A.1 and Part A.2 in the first parts list, find the corresponding Part A in the second parts list, merge Part A.1 and Part A.2 into Part A, and delete Part A.1 and Part A.2 from the first parts list.

[0087] In the embodiment of the present application, when it is determined that any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list. Then, the part in the first parts list is merged into the empty part, and the part is removed from the first parts list. In the above process, by creating an empty part and merging the information of the same parts, the number of parts can be effectively reduced, and more efficient management and operation can be achieved.

[0088] In one possible design, if any part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list, including: if any part in the first parts list has a part name whose name after removing the extension exists in the second parts list, it is determined that the part exists in the second parts list, and the part entity of the part is placed in the corresponding part entity in the second parts list.

[0089] For example, the first parts list includes parts A.1 and A.2, and the second parts list includes part A. Part A.1 in the first parts list has a part name A. If the name A after removing the extension ".1" exists in the second parts list, then it is determined that part A.1 exists in the second parts list, and the part entity of part A.1 is placed in the part entity of part A in the second parts list.

[0090] In an embodiment of the present application, by identifying and merging parts with the same name, related part entities can be concentrated into one part entity, thereby reducing the number of parts and improving the efficiency of the user when processing the model.

[0091] Furthermore, the acquired parts list of the geometric model and the established first parts list can be simplified into a more streamlined second parts list. The simplified second parts list not only covers all relevant parts information in the geometric model parts list and the first parts list, but also removes redundant and unnecessary details. This streamlined processing can not only improve the readability and ease of use of data, but also bring significant improvements in information management and storage efficiency, making the design process more efficient and smooth.

[0092] Figure 4 This is a flow chart of the third embodiment of the model processing method provided in this application. Figure 4 Based on the above embodiment, the parts list includes at least one assembly group, and the model processing method includes:

[0093] S401. Obtain a parts list of a geometric model, where the parts list includes first-category parts and second-category parts.

[0094] In this step, a parts list of the geometric model can be obtained, and the parts list includes at least one assembly group, and each assembly list can include first-category parts and second-category parts. The part names of the first-category parts include extensions, while the part names of the second-category parts do not include extensions. The extensions are used to distinguish the same parts.

[0095] For example, the parts list may include two assembly groups, each of which may include first-category parts and second-category parts. The two assembly groups may be assembly group 1 and assembly group 2. The first-category parts in assembly group 1 may include parts A.1 and A.2, and the second-category parts may include part A; the first-category parts in assembly group 2 may include parts B.1 and B.2, and the second-category parts may include part B.

[0096] In an optional implementation, the same parts may also be placed in different assembly groups according to actual assembly requirements. For example, the first category of parts in assembly group 1 may include part A.1 and part A.2, and the second category of parts may include part A; the first category of parts in assembly group 2 may include part A.3 and part A.4, and the second category of parts may include part B.

[0097] S402: For each assembly group, a first parts list is established according to the first type of parts in the assembly group, and a second parts list is established according to the second type of parts in the assembly group.

[0098] In this step, for each assembly group, a first parts list and a second parts list belonging to the assembly group may be established.

[0099] For example, for assembly group 1, a first parts list and a second parts list belonging to assembly group 1 are established, and the first category of parts includes part A.1 and part A.2, and the second category of parts includes part A; for assembly group 2, a first parts list and a second parts list belonging to assembly group 2 are established, and the first category of parts includes part B.1 and part B.2, and the second category of parts includes part B.

[0100] For another example, for assembly group 1, a first parts list and a second parts list belonging to assembly group 1 are established, and the first category of parts includes part A.1 and part A.2, and the second category of parts includes part A; for assembly group 2, a first parts list and a second parts list belonging to assembly group 2 are established, and the first category of parts includes part A.3 and part A.4, and the second category of parts includes part B.

[0101] S403: If any part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list, and the part is deleted from the first parts list.

[0102] In this step, under the assembly group, each part in the first parts list can be traversed, and after finding the corresponding part in the second parts list, it can be merged into the corresponding part in the second parts list, and the part can be deleted from the first parts list.

[0103] For example, for assembly group 1, you can traverse part A.1 and part A.2 in the first parts list, find the corresponding part A in the second parts list, merge part A.1 and part A.2 into part A, and delete part A.1 and part A.2 from the first parts list.

[0104] S404: rename the part names of the parts in the second parts list to obtain renamed part names, where the renamed part names include the part names and the identifier of the assembly group.

[0105] For example, the identifier of assembly group 1 is assem1, and the part name of part A in the second parts list may be renamed to obtain a renamed part name assem1A.

[0106] In an optional implementation, the renamed part name includes the part name and the identification of the assembly group. The part name may be before the identification of the assembly group, such as Aassem1; or the part name may be after the identification of the assembly group, such as assem1A.

[0107] In a possible implementation, a specific separator or format may be used to connect the part name and the identifier of the assembly group included in the renamed part name, for example, A-assem1, A.assem1, or A--assem1.

[0108] S405. If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list; the part name of the empty part includes the name of the part after the extension is removed and the identifier of the assembly group.

[0109] For example, assembly group 2 is identified as assem2. The first category of parts in assembly group 2 includes part A.3 and part A.4, and the second category of parts includes part B. Parts A.3 and A.4 in the first parts list can be traversed. If the corresponding part A in the second parts list is not found, an empty part is created in the second parts list, and the part name of the empty part is assem2A.

[0110] S406: Merge the part into the empty part, and delete the part from the first part list.

[0111] For example, for assembly group 2, you can traverse part A.3 and part A.4 in the first parts list, find the corresponding part assem2A in the second parts list, merge part A.3 and part A.3 into part assem2A, and delete part A.3 and part A.4 from the first parts list.

[0112] In an embodiment of the present application, a parts list of a geometric model can be obtained, and the parts list includes at least one assembly group. For each assembly group, a first parts list and a second parts list can be generated. When a part in the first parts list exists in the second parts list, it is merged into the corresponding part in the second parts list and removed from the first parts list. The parts in the second parts list are renamed. When a part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list, the part is merged into the empty part, and removed from the first parts list. In the above process, for parts with an assembly grouping relationship, parts within the assembly group can be automatically identified, and parts of the same type can be merged according to the assembly grouping, thereby simplifying part management and improving model processing efficiency.

[0113] Figure 5 This is a flow chart of the first example of the model processing method provided in the embodiment of the present application. Figure 5 , the model processing method includes:

[0114] S501. Model import.

[0115] In this step, the imported geometric model can be obtained.

[0116] S502: Obtain the part name.

[0117] S503. Clean up special names.

[0118] For example, you can remove duplicate names, extraneous characters, or inconsistent formatting in a parts list to ensure that part names are clear and accurate.

[0119] S504: Whether there is an assembly group.

[0120] In this step, it can be determined whether there is an assembly group in the parts list. If so, step S505 is executed; if not, step S507 is executed.

[0121] S505: Select a grouping component.

[0122] For example, you can select Assembly Group 1 in Parts List 1.

[0123] S506: Traverse and select grouping components.

[0124] S507: Get the part name.

[0125] For example, you can get the names of the parts in assembly group 1.

[0126] S508: Character matching classification.

[0127] For example, it can match the character ".".

[0128] S509, traverse the parts list.

[0129] For example, you can loop through the part names of all parts in assembly group 1.

[0130] S510, Secondary classification of parts.

[0131] For example, after the parts in assembly group 1 are classified, a first parts list and a second parts list can be obtained, wherein the first parts list includes parts A.1 and A.2, and the second parts list includes part A.

[0132] S511. Combine similar parts.

[0133] The model processing method example provided in the embodiment of the present application, the working process when applied can refer to the process shown in the above method embodiment, its implementation principle and beneficial effects are similar, and will not be repeated here.

[0134] Figure 6 This is a flow chart of the fourth embodiment of the model processing method provided in this application. Figure 6 Based on the above embodiment 1, the parts list includes mid-surface parts from which the mid-plane can be extracted. The model processing method includes:

[0135] S601, extracting the mid-surface part to obtain the thickness of the mid-surface part.

[0136] In this step, the mid-surface parts included in the parts list may be processed by extracting the middle plane to obtain the part thickness of each mid-surface part.

[0137] For example, if the parts list includes mid-surface part 1, mid-surface part 2, and mid-surface part 3, the mid-surface part 1, mid-surface part 2, and mid-surface part 3 can be respectively extracted with the middle plane processing, and the thickness of mid-surface part 1 is 5 millimeters (mm), the thickness of mid-surface part 2 is 10 mm, and the thickness of mid-surface part 3 is 10 mm. Among them, mid-surface part 1 can be represented by T5; the thickness of mid-surface part 2 and mid-surface part 3 can be represented by T10.

[0138] S602, renaming the mid-surface part name of the mid-surface part to obtain a renamed mid-surface part name, wherein the renamed mid-surface part name includes the mid-surface part name and part thickness.

[0139] In this step, the name of the mid-surface part can be renamed according to the obtained part thickness, and a renamed name including the original mid-surface part name and the part thickness is generated.

[0140] For example, if the original mid-surface part name of mid-surface part 1 is A, the original mid-surface part name of mid-surface part 2 is B, and the original mid-surface part name of mid-surface part 3 is C, the name A of mid-surface part 1 can be renamed according to the thickness T5 of mid-surface part 1 to generate a renamed name AT5 including the original mid-surface part name A and the part thickness T5. Similarly, the name B of mid-surface part 2 can be renamed according to the thickness T10 of mid-surface part 2 to obtain BT10, and the name C of mid-surface part 3 can be renamed according to the thickness T10 of mid-surface part 3 to obtain CT10.

[0141] It should be noted that the part name and the identification of the part thickness included in the renamed part name can also be connected by a specific separator or format, for example, A-T5, A.T5, or A--T5.

[0142] S603, constructing a third parts list according to the mid-surface parts corresponding to the renamed mid-surface part names, and putting the parts in the parts list except the mid-surface parts into a fourth parts list.

[0143] In this step, a third parts list and a fourth parts list may be constructed, wherein the third parts list is composed of mid-surface parts corresponding to the renamed mid-surface part names, and the fourth parts list includes other parts in the parts list except the mid-surface parts.

[0144] For example, if the parts list also includes parts 4 and 5 which are not mid-surface parts, then parts 4 and 5 can be put into the fourth parts list; the third parts list is constructed based on the renamed mid-surface part 1, mid-surface part 2, and mid-surface part 3. The two parts included in the constructed third parts list and the fourth parts list can be shown in Table 1:

[0145] Table 1

[0146]

[0147] In Table 1, the part name of part 4 included in the parts list may be D, and the part name of part 4 may be E.

[0148] S604. If there are parts with the same thickness in the third parts list, the parts with the same thickness are merged to obtain a merged part, the merged part is put into the fourth parts list, and the parts before the merge are deleted from the third parts list, and the part name of the merged part includes the part thickness.

[0149] In this step, according to the parts with the same thickness in the third parts list, the parts with the same thickness can be merged, and the merged parts can be put into the fourth parts list; at the same time, the parts before the merger can be deleted from the third parts list. The part name of the merged part includes the part thickness.

[0150] Optionally, the part name of the merged part can be directly named using the part thickness.

[0151] For example, based on the existence of part BT10 and part CT10 with the same thickness in the third parts list, part BT10 and part CT10 can be merged, and the merged part T10 can be put into the fourth parts list; at the same time, part BT10 and part CT10 before the merger can be deleted from the third parts list.

[0152] S605. If there are parts of a single thickness in the third parts list, put the parts of a single thickness into the fourth parts list and delete them from the third parts list. The part name of the parts of a single thickness includes the part thickness.

[0153] Similarly, the part names of parts with a single thickness placed in the fourth parts list can also be named directly using the part thickness.

[0154] For example, based on the existence of a single-thickness part AT5 in the third parts list, the single-thickness part AT5 can be put into the fourth parts list, and AT5 can be deleted from the third parts list. The part name of the single-thickness part is T5.

[0155] In one possible design, if the parts list includes at least one assembly group, and each assembly group includes a mid-surface part from which the mid-plane can be extracted, the mid-surface parts can be merged in units of assembly groups, and the identification of each group is added during the merging, thereby avoiding conflicts caused by the existence of parts of the same thickness in different assembly groups.

[0156] In an embodiment of the present application, the mid-surface parts in the parts list can be processed, their thickness can be obtained, and they can be renamed to a new name that includes the name and thickness. A third parts list is constructed based on the new name, and the non-mid-surface parts are placed in a fourth parts list. If there are parts of the same thickness in the third parts list, they are merged, and after the name is updated, they are moved to the fourth parts list, and the original parts are deleted. If there are parts of a single thickness, they are directly moved to the fourth parts list and the name is updated. In the above process, the mid-surface parts and non-mid-surface parts can be separated, and the parts can be classified and merged according to the thickness, which simplifies parts management, helps improve the efficiency of model processing, and improves the efficiency of users in judging part design and modeling problems by plate thickness.

[0157] Figure 7 This is a flow chart of the second example of the model processing method provided in the embodiment of the present application. Figure 7 , the model processing method includes:

[0158] S701. Extract the mid-surface of the part.

[0159] For example, the middle planes of mid-surface part 1, mid-surface part 2, and mid-surface part 3 may be extracted respectively.

[0160] S702, automatically identifying thickness.

[0161] S703. Rename the mid-surface part.

[0162] For example, the name A of the middle surface part 1 can be renamed according to the thickness T5 of the middle surface part 1 to obtain AT5; the name B of the middle surface part 2 can be renamed according to the thickness T10 of the middle surface part 2 to obtain BT10; the name C of the middle surface part 3 can be renamed according to the thickness T10 of the middle surface part 3 to obtain CT10.

[0163] S704: Whether there is a group.

[0164] S705: Select a grouping component.

[0165] S706: Traverse the grouping components.

[0166] S707: Get the part name.

[0167] S708: Identify thickness attribute.

[0168] For example, the thickness of mid-surface component 1 may be identified as T5, and the thickness of mid-surface component 2 and mid-surface component 3 may be identified as T10.

[0169] S709, traverse the parts list.

[0170] S710. Merge parts by thickness.

[0171] The model processing method example provided in the embodiment of the present application, the working process when applied can refer to the process shown in the above method embodiment, its implementation principle and beneficial effects are similar, and will not be repeated here.

[0172] In an optional implementation, after the parts of the geometric model are merged and simplified, the parts in the merged and simplified model can also be subjected to operations of deleting geometric elements and geometric features to further improve the efficiency and manageability of the model. The geometric elements include at least one of points, lines, surfaces, and coordinate systems, and the geometric features include fillets and chamfers of parts.

[0173] Figure 8 This is a flow chart of the model processing method example 3 provided in the embodiment of this application. Figure 8 , the model processing method includes:

[0174] S801. Traverse all geometric surfaces of the model.

[0175] S802: Determine whether the traversed geometric surface is in a free state.

[0176] Optionally, a free surface is a surface that is not connected to other surfaces or does not belong to any closed body.

[0177] If so, execute step S803 to delete the geometric surface; if not, traverse the next geometric surface in the model.

[0178] S803. Delete the geometric surface.

[0179] S804, traverse all construction lines of the model.

[0180] S805: Determine whether the traversed construction line is in a free state.

[0181] If yes, execute step S806 to delete the construction line (Line); if no, traverse the next construction line in the model.

[0182] S806. Delete the construction line.

[0183] S807. Traverse all reference points of the model.

[0184] S808: Determine whether the traversed reference point is in a free state.

[0185] If yes, execute step S809 to delete the reference point (Point); if no, traverse the next reference point in the model.

[0186] S809: Delete the reference point.

[0187] S810. Traverse all coordinate systems.

[0188] S811. Delete the coordinate system.

[0189] The model processing method example provided in the embodiment of the present application can systematically delete free geometric elements (such as geometric faces, construction lines, reference points and coordinate systems), significantly simplifying the structure of the model. By cleaning up unnecessary geometric elements, the processing speed and calculation efficiency of the model can be further improved.

[0190] Fig. 9 This is a flow chart of the fourth example of the model processing method provided in the embodiment of the present application. Fig. 9 , the fillet radius and / or chamfer width can be pre-set during the model processing. The model processing method includes:

[0191] S901. Select a geometric model.

[0192] S902, traverse the model feature surface.

[0193] S903: Whether there is a specified fillet feature.

[0194] If yes, execute S904 to delete the fillet; if no, execute S905 to determine whether there is a specified chamfer feature.

[0195] S904. Delete the rounded corners.

[0196] For example, the preset fillet radius is 3 mm. If a fillet A smaller than 3 mm exists in the model, the fillet A is cleared. Optionally, the radius of the fillet A may be 1 mm.

[0197] S905. Whether there is a specified chamfer feature.

[0198] If yes, execute S906 to delete the chamfer; if no, return and traverse the model surface again.

[0199] S906. Delete the chamfer.

[0200] For example, the preset chamfer width is 5 mm. If there is a chamfer B smaller than the chamfer width of 5 mm in the model, then chamfer B is cleared. Optionally, the chamfer width of chamfer B may be 3 mm.

[0201] Optionally, the groove width may be pre-set during the processing of the model, and the corresponding groove may be deleted according to whether the specified groove feature exists in the model.

[0202] The model processing method example provided in the embodiment of the present application can automatically optimize the features of the geometric model by presetting the fillet radius and chamfer width, thereby simplifying the structure of the model. By deleting unnecessary geometric features, the model can be made more concise and efficient.

[0203] Fig.10 This is a schematic diagram of the structure of the first embodiment of the model processing device provided by this application. Fig.10 , the model processing device 10 comprises:

[0204] An acquisition module 11 is used to acquire a parts list of a geometric model, wherein the parts list includes first-category parts and second-category parts, wherein the part names of the first-category parts include extensions, and the part names of the second-category parts do not include extensions, and the extensions in the part names are used to distinguish identical parts;

[0205] A first processing module 12, used to establish a first parts list according to the first category of parts, and to establish a second parts list according to the second category of parts;

[0206] The second processing module 13 is used to merge any part in the first parts list into the corresponding part in the second parts list and delete the part from the first parts list if the part in the first parts list exists in the second parts list.

[0207] Optionally, the model processing device can be implemented by software. For example, the user can develop a special algorithm or software to realize automatic processing of the model.

[0208] The model processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0209] In a possible implementation manner, the second processing module 13 is further used for:

[0210] If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list, and the part name of the empty part includes the part name of the part in the first parts list without the extension name;

[0211] The parts in the first parts list are merged into the empty parts, and the parts are deleted from the first parts list.

[0212] In a possible implementation manner, the second processing module 13 is specifically configured to:

[0213] If any part in the first parts list has a part name that has the same name in the second parts list after removing the extension, it is determined that the part exists in the second parts list, and the part entity of the part is placed in the corresponding part entity in the second parts list.

[0214] In a possible implementation manner, the parts list includes at least one assembly group, and the first processing module 12 is specifically configured to:

[0215] For each assembly group, a first parts list is established according to the first type of parts in the assembly group, and a second parts list is established according to the second type of parts in the assembly group.

[0216] In a possible implementation manner, the second processing module 13 is used to:

[0217] If any part in the first parts list exists in the second parts list, merge the part into the corresponding part in the second parts list and delete the part from the first parts list;

[0218] The part names of the parts in the second parts list are renamed to obtain renamed part names, wherein the renamed part names include the part names and an identifier of the assembly group.

[0219] In a possible implementation manner, the first processing module 12 is further configured to:

[0220] If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list; the part name of the empty part includes the part name of the part after removing the extension and the identifier of the assembly group;

[0221] The part is merged into the empty part, and the part is deleted from the first part list.

[0222] Fig.11 This is a schematic diagram of the structure of the second embodiment of the model processing device provided by this application. Fig.11 ,exist Fig.10 Based on the illustrated embodiment, the model processing device 10 further includes a third processing module 14, and the third processing module 14 is used to:

[0223] Performing mid-surface extraction processing on the mid-surface part to obtain the part thickness of the mid-surface part;

[0224] Renaming the mid-surface part name of the mid-surface part to obtain a renamed mid-surface part name, wherein the renamed mid-surface part name includes the mid-surface part name and part thickness;

[0225] A third parts list is constructed according to the mid-surface parts corresponding to the renamed mid-surface part names, and the parts in the parts list except the mid-surface parts are put into a fourth parts list.

[0226] In a possible implementation manner, the third processing module 14 is further used for:

[0227] If there are parts with the same thickness in the third parts list, merge the parts with the same thickness to obtain a merged part, put the merged part into the fourth parts list, and delete the parts before the merge from the third parts list, and the part name of the merged part includes the part thickness;

[0228] If there are parts of a single thickness in the third parts list, the parts of the single thickness are put into the fourth parts list and deleted from the third parts list, and the part name of the parts of the single thickness includes the part thickness.

[0229] The model processing device provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0230] Fig.12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 The electronic device 20 provided in the embodiment of the present application includes: at least one processor 21 and a memory 22. Optionally, the device 20 also includes a communication component 23. The processor 21, the memory 22 and the communication component 23 are connected via a bus 24.

[0231] In a specific implementation process, at least one processor 21 executes the computer-executable instructions stored in the memory 22, so that at least one processor 21 executes the above method.

[0232] The specific implementation process of the processor 21 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0233] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0234] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk storage.

[0235] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0236] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0237] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0238] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0239] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0240] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0241] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0242] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0243] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0244] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0245] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A model processing method, characterized in that: include: Obtain a parts list of a geometric model, wherein the parts list includes first-category parts and second-category parts, wherein the part names of the first-category parts include extensions, and the part names of the second-category parts do not include extensions, and the extensions in the part names are used to distinguish identical parts; Establish a first parts list based on the first category of parts, and establish a second parts list based on the second category of parts; If any part in the first parts list exists in the second parts list, the part is merged into the corresponding part in the second parts list, and the part is deleted from the first parts list.

2. The method according to claim 1, characterized in that The method further comprises: If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list, and the part name of the empty part includes the part name of the part in the first parts list without the extension name; The parts in the first parts list are merged into the empty parts, and the parts are deleted from the first parts list.

3. The method according to claim 1 or 2, characterized in that: If any part in the first parts list exists in the second parts list, merging the part into the corresponding part in the second parts list includes: If any part in the first parts list has a part name that has the same name in the second parts list after removing the extension, it is determined that the part exists in the second parts list, and the part entity of the part is placed in the corresponding part entity in the second parts list.

4. The method according to claim 1, characterized in that The parts list includes at least one assembly group, and the step of establishing a first parts list based on the first type of parts and establishing a second parts list based on the second type of parts includes: For each assembly group, a first parts list is established according to the first type of parts in the assembly group, and a second parts list is established according to the second type of parts in the assembly group.

5. The method according to claim 4, characterized in that The method further comprises: If any part in the first parts list exists in the second parts list, merge the part into the corresponding part in the second parts list and delete the part from the first parts list; The part names of the parts in the second parts list are renamed to obtain renamed part names, wherein the renamed part names include the part names and an identifier of the assembly group.

6. The method according to claim 4 or 5, characterized in that: The method further comprises: If any part in the first parts list does not exist in the second parts list, an empty part is created in the second parts list; the part name of the empty part includes the part name of the part after removing the extension and the identifier of the assembly group; The part is merged into the empty part, and the part is deleted from the first part list.

7. The method according to claim 1, characterized in that The parts list includes mid-surface parts from which mid-planes can be extracted, and the method further includes: Performing mid-surface extraction processing on the mid-surface part to obtain the part thickness of the mid-surface part; Renaming the mid-surface part name of the mid-surface part to obtain a renamed mid-surface part name, wherein the renamed mid-surface part name includes the mid-surface part name and part thickness; A third parts list is constructed according to the mid-surface parts corresponding to the renamed mid-surface part names, and the parts in the parts list except the mid-surface parts are put into a fourth parts list.

8. The method according to claim 7, characterized in that The method further comprises: If there are parts with the same thickness in the third parts list, merge the parts with the same thickness to obtain a merged part, put the merged part into the fourth parts list, and delete the parts before the merge from the third parts list, and the part name of the merged part includes the part thickness; If there are parts of a single thickness in the third parts list, the parts of the single thickness are put into the fourth parts list and deleted from the third parts list, and the part name of the parts of the single thickness includes the part thickness.

9. An electronic device, characterized in that: include: Processor, memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the model processing method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the model processing method according to any one of claims 1 to 8 when executed by a processor.