Bolt modeling method and device, electronic equipment and storage medium

By establishing a 3D geometric model of bolt components, determining the local coordinate system and dividing the grid, the problem of unsatisfactory bolt component modeling in the existing technology is solved, the modeling efficiency and accuracy are improved, and the finite element analysis of electric vehicle air conditioning cooling systems is supported.

CN120296889APending Publication Date: 2025-07-11SAIC MOTOR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410039384.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The bolt component modeling method in the prior art is not ideal, which affects the finite element analysis efficiency and accuracy of electric vehicle air conditioning cooling systems.

Method used

By establishing a 3D geometric model of the bolt component, multiple arcs of the bolt component are obtained, local coordinate systems are determined based on line segments, centers and radius are calculated, surface mesh and body mesh are divided, and the establishment of the mesh model is automatically completed.

Benefits of technology

It improves the efficiency and accuracy of bolt component modeling, saves human resources, and improves the quality of finite element analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120296889A_ABST
    Figure CN120296889A_ABST
Patent Text Reader

Abstract

The invention discloses a bolt modeling method and device, electronic equipment and a storage medium, and is applied to the field of big data. According to the method, firstly, a 3D geometric model of the bolt part is established, then the bolt part in the 3D geometric model is obtained, the bolt part comprises a plurality of arcs, a local coordinate system is determined based on line segments of the bolt part, and the circle centers and the radiuses of the arcs in the local coordinate system are calculated. And finally, dividing a surface grid and a body grid of the bolt part by utilizing the calculation result, and establishing a grid model of the bolt part according to the divided surface grid and the body grid to finish modeling of the bolt part. According to the method provided by the invention, the modeling efficiency and accuracy of the bolt part are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data technology, and particularly to a method, device, electronic device and storage medium for bolt modeling. Background Art

[0002] In the electric vehicle air conditioner cooling system, most components need to be connected to other basic components and brackets through connectors such as bolt components. In order to ensure the normal operation of the electric vehicle air conditioner cooling system, it is first necessary to perform a finite element analysis on the system. Then it involves the process of modeling the bolt components. In the related art, the method of modeling the bolt components is not ideal. Summary of the Invention

[0003] In view of this, embodiments of this application provide a method, device, electronic device and storage medium for bolt modeling, aiming to improve the efficiency and accuracy of modeling bolt components.

[0004] In a first aspect, embodiments of this application provide a method for bolt modeling, the method includes:

[0005] Establish a 3D geometric model of the bolt component;

[0006] Obtain the bolt component in the 3D geometric model, where the bolt component includes a plurality of arcs;

[0007] Determine a local coordinate system based on the line segments of the bolt component;

[0008] Calculate the centers and radii of the plurality of arcs in the local coordinate system;

[0009] Use the calculated results to divide the surface mesh and volume mesh of the bolt component;

[0010] Establish a mesh model of the bolt component according to the divided surface mesh and volume mesh, and complete the modeling of the bolt component.

[0011] Optionally, the determining a local coordinate system based on the line segments of the bolt component includes:

[0012] Obtain all the line segments of the bolt component;

[0013] Calculate the length of the line segment to obtain a calculation result;

[0014] Set a length threshold;

[0015] Determine whether the calculation result is greater than the length threshold;

[0016] When the calculation result is greater than the length threshold, use the line segment as the target line segment to determine the local coordinate system.

[0017] Optionally, determining the local coordinate system with the line segment as the target line segment includes:

[0018] Obtain two endpoints of the target line segment, which are the first endpoint and the second endpoint respectively;

[0019] Take the first endpoint as the origin of the first coordinate system of the local coordinate system, and take the direction where the second endpoint is located as the positive direction of the first x-axis of the local coordinate system;

[0020] Establish the local coordinate system based on the origin of the first coordinate system and the positive direction of the first x-axis.

[0021] Optionally, after establishing the local coordinate system based on the origin of the first coordinate system and the positive direction of the first x-axis, the method further includes:

[0022] Project the bolt component onto the local coordinate system, and determine whether the coordinate values of the points of the bolt component meet the coordinate value threshold;

[0023] If the coordinate values of the points of the bolt component do not meet the coordinate value threshold, then take the second endpoint as the origin of the second coordinate system of the local coordinate system, and take the direction where the first endpoint is located as the positive direction of the second x-axis of the local coordinate system;

[0024] Establish the local coordinate system based on the origin of the second coordinate system and the positive direction of the second x-axis.

[0025] Optionally, the arc includes a bolt head arc and a bolt bottom arc. Calculating the centers and radii of the multiple arcs in the local coordinate system includes:

[0026] Calculate the center and radius of the arc in the local coordinate system, and take the arc whose center coordinates of the arc meet the coordinate threshold as the bolt bottom arc;

[0027] Based on the center of the bolt bottom arc, determine whether the local coordinate system is established at the bottom of the bolt component;

[0028] When the local coordinate system is established at the bottom of the bolt component, determine the center and radius of the bolt head arc in the arc.

[0029] Optionally, after calculating the centers and radii of the multiple arcs in the local coordinate system, the method further includes:

[0030] Calculate the stretching height according to the center coordinates of the bottom arc and the center coordinates of the bolt head arc;

[0031] Dividing the surface mesh and the solid mesh of the bolt component by using the calculated result includes:

[0032] Re - establish a plane based on the center of the bottom arc;

[0033] Divide the surface mesh of the bolt component in the plane;

[0034] Obtain the solid mesh based on the surface mesh and the stretching height.

[0035] Optionally, after obtaining the solid mesh based on the surface mesh and the stretching height, the method further includes: deleting the surface mesh and retaining the solid mesh.

[0036] In a second aspect, an embodiment of the present application provides a bolt modeling device, which includes: a first establishment module, an acquisition module, a determination module, a calculation module, a division module, and a second establishment module;

[0037] The first establishment module is used to establish a 3D geometric model of the bolt;

[0038] The acquisition module is used to acquire the bolt component in the 3D geometric model, and the bolt component includes a plurality of arcs;

[0039] The determination module is used to determine a local coordinate system based on the line segments of the bolt component;

[0040] The calculation module is used to calculate the centers and radii of the plurality of arcs in the local coordinate system;

[0041] The division module is used to divide the surface mesh and the solid mesh of the bolt component by using the calculation result; the second establishment module is used to establish a mesh model of the bolt component according to the divided surface mesh and the solid mesh, and complete the modeling of the bolt component.

[0042] In a third aspect, the present application provides an electronic device, which includes: a processor, a memory, and a system bus;

[0043] The processor and the memory are connected through the system bus;

[0044] The memory is used to store one or more programs, and the one or more programs include instructions, and when the instructions are executed by the processor, the processor is caused to execute the method described in the first aspect.

[0045] In a fourth aspect, an embodiment of the present application provides a computer storage medium, in which code is stored, and when the code is run, the device running the code implements the method described in any item of the first aspect.

[0046] The present application provides a method, apparatus, electronic device and storage medium for bolt modeling. When executing the method, first, a 3D geometric model of a bolt component is established, and then the bolt component in the 3D geometric model is obtained. The bolt component includes multiple arcs. Based on the line segments of the bolt component, a local coordinate system is determined, the centers and radii of the multiple arcs in the local coordinate system are calculated, and the surface mesh and volume mesh of the bolt component are divided by using the calculated results. Finally, a mesh model of the bolt component is established according to the divided surface mesh and volume mesh, and the modeling of the bolt component is completed. In this way, a local coordinate system is established through the bolt component, and then the centers and radii of the arcs in the bolt component are determined based on the local coordinate system. The surface mesh and volume mesh of the bolt component are divided by the calculation results, and the mesh modeling of the bolt component is completed according to the divided meshes. That is, the surface mesh of the 3D geometric model of the bolt component is divided, the surface mesh of some feature regions is refined, the volume mesh is generated, and the mesh model of the bolt component is established. The entire process of establishing the mesh model can be carried out in an automated manner, which can improve the efficiency and accuracy of establishing the mesh model. Description of the Drawings

[0047] To more clearly illustrate the technical solutions in the embodiments or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0048] Figure 1 It is a flowchart of a method for bolt modeling provided by an embodiment of the present application;

[0049] Figure 2 It is a schematic diagram of an arc provided by an embodiment of the present application;

[0050] Figure 3 It is a schematic diagram of a bolt component provided by an embodiment of the present application;

[0051] Figure 4 It is a schematic diagram of the generation of a bolt component mesh provided by an embodiment of the present application;

[0052] Figure 5 It is a schematic structural diagram of an apparatus for bolt modeling provided by an embodiment of the present application. Detailed Embodiments

[0053] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0054] In this application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0055] In the research on related technologies, it is found that in the electric vehicle air-conditioning cooling system, there are a large number of connecting parts, basic components and brackets. Most of these components need to be connected by bolt components to complete the realization of the functions of the electric vehicle air-conditioning cooling system. In order to enable the electric vehicle air-conditioning cooling system to operate normally, it is first necessary to perform finite element analysis on the system. When performing finite element analysis, system modeling is required, which also involves modeling of bolt components. In related technologies, the method of modeling bolt components is not ideal.

[0056] Based on this, this application proposes a method, device, electronic device and storage medium for bolt modeling. It can establish a local coordinate system through bolt components, then determine the center and radius of the arc in the bolt components based on the local coordinate system, divide the surface mesh and volume mesh of the bolt components through calculation results, and complete the mesh modeling of the bolt components according to the divided meshes.

[0057] It should be noted that the method, device, electronic device and storage medium for bolt modeling provided by the present invention can be used in the field of big data. The above is only an example and does not limit the application field of the method, device, electronic device and storage medium for bolt modeling provided by the present invention.

[0058] In order to enable those skilled in the art to better understand the solutions of this application, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part of the embodiments of this application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of this application without creative efforts shall fall within the protection scope of this application.

[0059] Figure 1 The flowchart of a method for bolt modeling provided by an embodiment of the present application is shown in Figure 1 As shown, a method for bolt modeling provided by an embodiment of the present application includes:

[0060] S11: Establish a 3D geometric model of the bolt component.

[0061] In the above S11, it is mentioned that "establish a 3D geometric model of the bolt". The 3D geometric model refers to a model with three-dimensional data constructed through virtual three-dimensional space using three-dimensional production software. In this embodiment, it refers to performing 3D modeling on the bolt component to obtain a 3D model of the bolt component.

[0062] S12: Obtain the bolt component in the 3D geometric model.

[0063] In the 3D model of the bolt component mentioned above, the bolt component includes multiple arcs.

[0064] S13: Determine a local coordinate system based on the line segments of the bolt component.

[0065] The local coordinate system refers to a new coordinate system obtained by performing specific transformations on a certain area in three-dimensional space, converting the coordinate system within that area. This new coordinate system is different from the global coordinate system, and its origin and axis directions may be different from those of the global coordinate system. The local coordinate system is usually used to describe the characteristics of objects or fields within a certain area, facilitating calculations and analyses. In this embodiment, the local coordinate system is the coordinate system for the area where the bolt component is located.

[0066] In the above S13, it is mentioned that "determine a local coordinate system based on the line segments of the bolt component". In one possible way, the method for determining the local coordinate system can be as follows: First, obtain all the line segments of the bolt component and calculate the length of the line segments to obtain a calculation result. Then, set a length threshold and determine whether the calculation result is greater than the length threshold. Finally, when the calculation result is greater than the length threshold, use the line segment as the target line segment to determine the local coordinate system.

[0067] Specifically, when determining the bolt component that needs to be modeled, first, all the line segments on the bolt component need to be obtained, the lengths of the aforementioned line segments are calculated, and screening is performed based on the calculated lengths. The screening process can use the length threshold. For example, the line segments with calculated lengths greater than the length threshold can be screened out as the target line segments. The screening process can also be to sort the calculated lengths and use the line segment with the longest length as the target line segment. When the target line segment is determined, the local coordinate system is determined based on the target line segment.

[0068] Through the above method for determining the local coordinate system, first calculate the lengths of all line segments on the bolt component, then screen out the line segments that meet the requirements, and finally use this line segment as the target line segment to determine the local coordinate system. In this way, the local coordinate system can be determined through the target line segment.

[0069] As mentioned above, "using the line segment as the target line segment to determine the local coordinate system". In one possible implementation, the specific method for determining the local coordinate system can be as follows:

[0070] S131: Obtain the two endpoints of the target line segment, namely the first endpoint and the second endpoint;

[0071] As mentioned above, the target line segment includes two endpoints, namely the first endpoint and the second endpoint.

[0072] S132: Use the first endpoint as the first coordinate origin of the local coordinate system, and use the direction where the second endpoint is located as the positive direction of the first x-axis of the local coordinate system.

[0073] In one possible implementation, the first endpoint can be used as the coordinate origin of the local coordinate system first, and the direction where the second endpoint is located can be used as the positive direction of the x-axis of the local coordinate system. For example, assume that the two endpoints of the target line segment are a and b, where a is the first endpoint and b is the second endpoint, and b is located on the right side of a in the horizontal direction. Assume that a is used as the coordinate origin of the local coordinate system, and the direction where b is located is used as the positive direction of the x-axis of the local coordinate system. That is to say, the direction to the right in the horizontal direction with a as the coordinate origin is the positive direction of the x-axis of this local coordinate system.

[0074] S133: Establish the local coordinate system based on the first coordinate origin and the positive direction of the first x-axis.

[0075] When the coordinate origin and the positive direction of the x-axis are determined, the y-axis, z-axis, etc. of the local coordinate system can be established based on this as a reference.

[0076] After establishing the above local coordinate system, it is necessary to verify the local coordinate system to determine whether the established local coordinate system meets the requirements. Therefore, in a possible implementation manner, after "establishing the local coordinate system based on the origin of the first coordinate system and the positive direction of the first x-axis" mentioned in S13, the following operations are also required: First, project the bolt component onto the local coordinate system, and determine whether the coordinate values of the points of the bolt component meet the coordinate value threshold. Then, if the coordinate values of the points of the bolt component do not meet the coordinate value threshold, use the second endpoint as the second coordinate system origin of the local coordinate system, and use the direction where the first endpoint is located as the positive direction of the second x-axis of the local coordinate system. Finally, establish the local coordinate system based on the second coordinate system origin and the positive direction of the second x-axis.

[0077] Specifically, that is, after establishing the above local coordinate system, it is necessary to verify the local coordinate system. The specific verification method is as follows: Project all the points of the bolt component into the aforementioned local coordinate system, and determine whether the coordinate values of each point of the bolt component meet the coordinate value threshold. Here, the coordinate value can be zero. At this time, the points with coordinate values greater than zero can be used as the points that meet the coordinate value threshold, and the points with coordinate values less than zero can be used as the points that meet the coordinate value threshold; or the points with coordinate values less than zero can be used as the points that meet the coordinate value threshold, and the points with coordinate values greater than zero can be used as the points that meet the coordinate value threshold. The specific rules can be set by those skilled in the art according to the actual situation and application scenarios, and are not limited here.

[0078] After comparing and judging the points on the bolt component with the coordinate value threshold, it can be determined according to the situation where the points on the bolt component meet the coordinate value threshold. That is to say, assuming that the condition for meeting the coordinate value threshold is that the coordinate value of the point on the bolt component is greater than the coordinate value threshold, at this time, it is necessary to count the number of points that meet the condition and the number of points that do not meet the condition. When the number of points that meet the condition is greater than the number of points that do not meet the condition, it can be determined that the establishment of the local coordinate system meets the requirements.

[0079] When the number of points that meet the condition is less than the number of points that do not meet the condition, it can be determined that the establishment of the local coordinate system does not meet the requirements. Then, at this time, it is necessary to re-establish the local coordinate system. The specific establishment method is as follows: Use the aforementioned second endpoint as the coordinate system origin, and use the direction where the first endpoint is located as the positive direction of the x-axis. Continuing with the previous example, assuming that the two endpoints of the target line segment are a and b, where a is the first endpoint and b is the second endpoint, and b is on the right side of a in the horizontal direction. At this time, it is necessary to use b as the coordinate system origin of the local coordinate system, and use the direction where a is located as the positive direction of the x-axis of the local coordinate system. That is to say, the direction to the left in the horizontal direction with b as the coordinate system origin is the positive direction of the x-axis of the local coordinate system.

[0080] The method for verifying the local coordinate system proposed above can make the establishment of the local coordinate system more in line with requirements, enabling the points on the bolt component to be accurately expressed in this local coordinate system, so as to establish a mesh model for the bolt component subsequently.

[0081] S14: Calculate the centers and radii of multiple arcs in the local coordinate system.

[0082] The arcs mentioned above may include the bolt head arc and the bolt bottom arc. In S14, it is necessary to determine the centers and radii of the aforementioned bolt head arc and bolt bottom arc.

[0083] The specific method for calculating the centers and radii of the bolt head arc and the bolt bottom arc may be: First, calculate the centers and radii of the arcs in the local coordinate system, and regard the arc whose center coordinates of the arc meet the coordinate threshold as the bolt bottom arc. Then, based on the center of the bolt bottom arc, determine whether the local coordinate system is established at the bottom of the bolt component. Finally, when the local coordinate system is established at the bottom of the bolt component, determine the centers and radii of the bolt head arcs in the arcs.

[0084] Figure 2 This is a schematic diagram of an arc provided by an embodiment of the present application, as Figure 2 shown. Specifically, after the establishment of the local coordinate system is completed, it is necessary to calculate the center and radius of the bolt component in this local coordinate system. When the x coordinate of the calculated center in the local coordinate system meets the coordinate threshold, the arc corresponding to this center is determined as the bolt bottom arc. Then, it is necessary to judge whether the local coordinate system is established at the bottom of the bolt component according to the determined bolt bottom arc. That is to say, in the local coordinate system A, translate the coordinate origin of the local coordinate system A to the center of the bolt bottom arc, and at this time the local coordinate system is established at the bottom of the bolt component. After the correction of the establishment position of the local coordinate system is completed, the centers and radii of all arcs on the bolt component in the local coordinate can be calculated again, and only the arcs with the Y coordinate and Z coordinate being 0 at the center in the local coordinate are retained. Usually, there are 2 arcs with the largest radius and almost the same value. Select the one with the smallest X coordinate in the local coordinate system as the bolt head arc, and at this time the centers and radii of the bolt head arc are determined.

[0085] After the centers and radii of the bolt head arc and the bolt bottom arc are completed, in order to establish the mesh model of the bolt component, it is also necessary to determine the stretching height of the bolt component. The specific method may be: Calculate the stretching height according to the center coordinates of the bottom arc and the center coordinates of the bolt head arc.

[0086] Specifically, the local coordinate X of the center of the arc of the bolt head minus the local coordinate X of the center of the arc of the bolt bottom is the stretching height h1. The X coordinates of all points on the bolt in the local coordinates are searched, the maximum value is taken, and then the local coordinate X of the center of the arc of the bolt head is subtracted, which is the stretching height h2. Figure 3 A schematic diagram of a bolt component provided in an embodiment of the present application, such as Figure 3 As shown in the figure, the bolt head arc, the bottom arc (ie, the bolt bottom arc), the stretching height h1 and the stretching height h2 are included.

[0087] Through the above calculation process, the center and radius of the bolt head arc and the bolt bottom arc, as well as the tensile height of the bolt component can be determined, and the general shape of the bolt component has been determined. It should be noted that the above calculation process is completed automatically without manual participation, which can save human resources and improve efficiency.

[0088] S15: Divide the surface mesh and the volume mesh of the bolt component using the calculation result.

[0089] After completing the calculation of the center and radius of the bolt head arc and the bolt bottom arc, as well as the stretching height of the bolt component, it is necessary to mesh the bolt component based on the calculation results. In a possible implementation, the method can be specifically as follows: first, re-establish the plane based on the center of the bottom arc, then divide the surface mesh of the bolt component on the plane, and finally obtain the volume mesh based on the surface mesh and the stretching height.

[0090] Figure 4 A schematic diagram of a bolt component mesh generation provided in an embodiment of the present application, such as Figure 4 As shown, specifically, you can use the center and radius of the bolt bottom arc and the interface provided by the Hypermesh software to create a new surface at the center of the circle, with the surface normal in the local coordinate system X direction. Divide the surface mesh on this surface and stretch it into a volume mesh. The stretching height is h1+h2, and the stretching direction is the local coordinate system X direction. Use the center and radius of the bolt head arc and the radius of the bolt bottom arc to create a new ring on the bolt head arc, with the surface normal in the local coordinate system X direction, as shown in the figure. Figure 2 As shown in the figure, this figure is a schematic diagram of creating a new ring on the bolt head arc using the center and radius of the bolt head arc and the radius of the bolt bottom arc. Divide the surface mesh on this surface and stretch it into a volume mesh. The stretching height is h2 and the stretching direction is the X direction of the local coordinate system. After stretching, the volume mesh of the bolt component can be obtained. After obtaining the volume mesh, the surface mesh can be deleted and the volume mesh can be retained.

[0091] S16: Establishing a mesh model of the bolt according to the divided surface mesh and the volume mesh, and completing the modeling of the bolt.

[0092] After the surface mesh and volume mesh are established, the mesh model of the bolt component can be established according to the established mesh, and the modeling of the bolt component is completed.

[0093] In this embodiment, a method for bolt modeling is proposed. The method first establishes a 3D geometric model of the bolt component, then obtains the bolt component in the 3D geometric model. The bolt component includes a plurality of arcs. Based on the line segments of the bolt component, a local coordinate system is determined, the centers and radii of the plurality of arcs in the local coordinate system are calculated, and the surface mesh and volume mesh of the bolt component are divided using the calculated results. Finally, the mesh model of the bolt component is established according to the divided surface mesh and volume mesh, and the modeling of the bolt component is completed. In this way, a local coordinate system is established through the bolt component, and then the centers and radii of the arcs in the bolt component are determined based on the local coordinate system. The surface mesh and volume mesh of the bolt component are divided through the calculation results, and the mesh modeling of the bolt component is completed according to the divided mesh. That is, the surface mesh of the 3D geometric model of the bolt component is divided, the surface mesh of some feature regions is refined, the volume mesh is generated, and the mesh model of the bolt component is established. The entire process of establishing the mesh model can be carried out in an automated manner, which can improve the efficiency and accuracy of establishing the mesh model.

[0094] Figure 5 The following is a schematic structural diagram of a bolt modeling device provided by an embodiment of the present application. As Figure 5 shown, a bolt modeling device specifically includes: a first establishment module 100, an acquisition module 200, a determination module 300, a calculation module 400, a division module 500, and a second establishment module 600;

[0095] The first establishment module is used to establish a 3D geometric model of the bolt;

[0096] The acquisition module is used to acquire the bolt component in the 3D geometric model, and the bolt component includes a plurality of arcs;

[0097] The determination module is used to determine a local coordinate system based on the line segments of the bolt component;

[0098] The calculation module is used to calculate the centers and radii of the plurality of arcs in the local coordinate system;

[0099] The division module is used to divide the surface mesh and volume mesh of the bolt component using the calculated results;

[0100] The second establishment module is used to establish the mesh model of the bolt component according to the divided surface mesh and volume mesh, and complete the modeling of the bolt component.

[0101] In a possible implementation manner, the determining module is specifically configured to:

[0102] Obtain all line segments of the bolt component;

[0103] Calculate the lengths of the line segments to obtain a calculation result;

[0104] Set a length threshold;

[0105] Determine whether the calculation result is greater than the length threshold;

[0106] When the calculation result is greater than the length threshold, use the line segment as a target line segment to determine the local coordinate system.

[0107] In a possible implementation manner, the determining module is specifically configured to:

[0108] Obtain two endpoints of the target line segment, which are a first endpoint and a second endpoint respectively;

[0109] Use the first endpoint as the first coordinate system origin of the local coordinate system, and use the direction where the second endpoint is located as the positive direction of the first x-axis of the local coordinate system;

[0110] Establish the local coordinate system based on the first coordinate system origin and the positive direction of the first x-axis.

[0111] In a possible implementation manner, the device is specifically configured to:

[0112] Project the bolt component onto the local coordinate system, and determine whether the coordinate values of the points of the bolt component meet the coordinate value threshold;

[0113] If the coordinate values of the points of the bolt component do not meet the coordinate value threshold, use the second endpoint as the second coordinate system origin of the local coordinate system, and use the direction where the first endpoint is located as the positive direction of the second x-axis of the local coordinate system;

[0114] Establish the local coordinate system based on the second coordinate system origin and the positive direction of the second x-axis.

[0115] In a possible implementation manner, the arc includes a bolt head arc and a bolt bottom arc, and the calculation module is specifically configured to:

[0116] Calculate the center and radius of the arc in the local coordinate system, and use the arc whose center coordinates of the arc meet the coordinate threshold as the bolt bottom arc;

[0117] Based on the center of the bolt bottom arc, determine whether the local coordinate system is established at the bottom of the bolt component;

[0118] When the local coordinate system is established at the bottom of the bolt component, determine the center and radius of the bolt head arc in the arc.

[0119] In a possible implementation, the device is specifically configured to:

[0120] Calculate the stretching height according to the center coordinates of the bottom arc and the center coordinates of the bolt head arc;

[0121] The partitioning module is specifically configured to:

[0122] Re - establish a plane based on the center of the bottom arc;

[0123] Partition the surface mesh of the bolt component in the plane;

[0124] Obtain a volume mesh based on the surface mesh and the stretching height.

[0125] In a possible implementation, the device is specifically configured to:

[0126] Delete the surface mesh and retain the volume mesh.

[0127] In this embodiment, a device for bolt modeling is proposed. The device includes: a first establishment module, an acquisition module, a determination module, an identification module, a calculation module, an encoding module, a partitioning module, an extraction module, and a second establishment module, a classification module. Among them, the first establishment module is used to establish a 3D geometric model of the bolt; the acquisition module is used to acquire the bolt component in the 3D geometric model, and the bolt component includes multiple arcs; the determination module is used to determine a local coordinate system based on the line segments of the bolt component; the calculation module is used to calculate the centers and radii of the multiple arcs in the local coordinate system; the partitioning module is used to partition the surface mesh and volume mesh of the bolt component by using the calculation results; the second establishment module is used to establish a mesh model of the bolt component according to the partitioned surface mesh and volume mesh, and complete the modeling of the bolt component. In this way, a local coordinate system is established through the bolt component, then the centers and radii of the arcs in the bolt component are determined based on the local coordinate system, the surface mesh and volume mesh of the bolt component are partitioned through the calculation results, and the mesh modeling of the bolt component is completed according to the partitioned meshes. That is, the surface mesh of the 3D geometric model of the bolt component is partitioned, the surface mesh of some feature regions is refined, the volume mesh is generated, and the mesh model of the bolt component is established. The entire process of establishing the mesh model can be carried out in an automated manner, which can improve the efficiency and accuracy of establishing the mesh model.

[0128] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of apparatuses and methods according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions denoted in the blocks may occur in an order different from that denoted in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and combinations of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.

[0129] Embodiments of the present application also provide corresponding devices and computer-readable storage media for implementing the solutions provided by the embodiments of the present application.

[0130] Among them, the device includes a memory and a processor. The memory is used to store instructions or code, and the processor is used to execute the instructions or code so that the device executes a method for bolt modeling according to any embodiment of the present application.

[0131] In practical applications, the computer-readable storage medium may be any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0132] A computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which computer-readable program code is carried. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.

[0133] The program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0134] The computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0135] It should also be noted that, in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "comprising a..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.

[0136] As described above, it is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed by the present application should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for bolt modeling, characterized in that, The method includes: Establish a 3D geometric model of the bolt component; Obtain the bolt component in the 3D geometric model, where the bolt component includes multiple arcs; Determine a local coordinate system based on the line segments of the bolt component; Calculate the centers and radii of the multiple arcs in the local coordinate system; Use the calculated results to divide the surface mesh and volume mesh of the bolt component; Establish a mesh model of the bolt component according to the divided surface mesh and volume mesh, and complete the modeling of the bolt component.

2. The method according to claim 1, wherein The determining the local coordinate system based on the line segments of the bolt component includes: Obtain all the line segments of the bolt component; Calculate the lengths of the line segments to obtain a calculation result; Set a length threshold; Judge whether the calculation result is greater than the length threshold; When the calculation result is greater than the length threshold, use the line segment as a target line segment to determine the local coordinate system.

3. The method according to claim 2, wherein The using the line segment as a target line segment to determine the local coordinate system includes: Obtain the two endpoints of the target line segment, which are the first endpoint and the second endpoint respectively; Use the first endpoint as the first coordinate origin of the local coordinate system, and use the direction where the second endpoint is located as the positive direction of the first x-axis of the local coordinate system; Establish the local coordinate system based on the first coordinate origin and the positive direction of the first x-axis.

4. The method according to claim 3, characterized in that, After establishing the local coordinate system based on the first coordinate origin and the positive direction of the first x-axis, the method further includes: Project the bolt component onto the local coordinate system, and judge whether the coordinate values of the points of the bolt component meet the coordinate value threshold; If the coordinate values of the points of the bolt component do not meet the coordinate value threshold, then use the second endpoint as the second coordinate origin of the local coordinate system, and use the direction where the first endpoint is located as the positive direction of the second x-axis of the local coordinate system; Establish the local coordinate system based on the second coordinate origin and the positive direction of the second x-axis.

5. The method according to claim 1, characterized in that, The arc includes a bolt head arc and a bolt bottom arc. The calculating the centers and radii of the multiple arcs in the local coordinate system includes: Calculate the center and radius of the arc in the local coordinate system, and use the arc whose center coordinates of the arc meet the coordinate threshold as the bolt bottom arc; Judge whether the local coordinate system is established at the bottom of the bolt component based on the center of the bolt bottom arc; When the local coordinate system is established at the bottom of the bolt component, determine the center and radius of the bolt head arc in the arc.

6. The method according to claim 5, characterized in that After calculating the centers and radii of the multiple arcs in the local coordinate system, the method further includes: Calculate the stretching height according to the center coordinates of the bottom arc and the center coordinates of the bolt head arc; The using the calculated results to divide the surface mesh and volume mesh of the bolt component includes: Re-establish a plane based on the center of the bottom arc; Divide the surface mesh of the bolt component in the plane; Obtain the volume mesh based on the surface mesh and the stretching height.

7. The method according to claim 1, characterized in that, After obtaining the volume mesh based on the surface mesh and the stretching height, the method further includes: delete the surface mesh and retain the volume mesh.

8. A device for bolt modeling, characterized in that, The device includes: a first establishment module, an acquisition module, a determination module, a calculation module, a division module, and a second establishment module; The first establishment module is configured to establish a 3D geometric model of a bolt; The acquisition module is configured to acquire bolt components in the 3D geometric model, and the bolt components include a plurality of arcs; The determination module is configured to determine a local coordinate system based on line segments of the bolt components; The calculation module is configured to calculate the centers and radii of the plurality of arcs in the local coordinate system; The division module is configured to divide the surface mesh and volume mesh of the bolt components by using the calculated results; The second establishment module is configured to establish a mesh model of the bolt components according to the divided surface mesh and volume mesh, and complete the modeling of the bolt components.

9. An electronic device, characterized in that, The device includes: a processor, a memory, and a system bus; The processor and the memory are connected through the system bus; The memory is configured to store one or more programs, and the one or more programs include instructions that, when executed by the processor, cause the processor to execute the bolt modeling method according to any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, An implementation program for implementing the bolt modeling method is stored on the computer-readable storage medium, and when the implementation program for implementing the bolt modeling method is executed by the processor, the steps of the method according to any one of claims 1-7 are implemented.