CN117892451A - Method and device for generating screw grid, equipment and storage medium - Google Patents

Method and device for generating screw grid, equipment and storage medium Download PDF

Info

Publication number
CN117892451A
CN117892451A CN202410072368.2A CN202410072368A CN117892451A CN 117892451 A CN117892451 A CN 117892451A CN 202410072368 A CN202410072368 A CN 202410072368A CN 117892451 A CN117892451 A CN 117892451A
Authority
CN
China
Prior art keywords
screw
target
grid
parameters
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410072368.2A
Other languages
Chinese (zh)
Inventor
李景鹏
郑平玉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Information Technology Co Ltd
Original Assignee
Xian Wingtech Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Information Technology Co Ltd filed Critical Xian Wingtech Information Technology Co Ltd
Priority to CN202410072368.2A priority Critical patent/CN117892451A/en
Publication of CN117892451A publication Critical patent/CN117892451A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for generating a screw grid, which comprise the following steps: obtaining screw parameters of the target screw, wherein the screw parameters comprise a screw head circle center of the target screw, a screw head height of the target screw, a screw head radius of the target screw, a screw column height of the target screw and a screw column radius of the target screw, determining a screw face of the target screw according to part of parameters in the screw parameters, generating a screw face grid, and generating the screw grid of the target screw according to the other part of parameters in the screw parameters and the screw face grid. Corresponding screw grids can be generated according to given target screw parameters, automatic generation of the screw grids is achieved, efficiency of screw grid generation is improved, time of manual operation is reduced, screw grids with different shapes and sizes are generated according to different screw parameters, applicability is good, accuracy and consistency of the automatically generated screw grids are high, and influence of human errors is reduced.

Description

Method and device for generating screw grid, equipment and storage medium
Technical Field
The embodiment of the application relates to modeling grid generation technology, and relates to a method, a device, equipment and a storage medium for generating a screw grid.
Background
With the development of consumer electronics industry, mobile phones have become an indispensable tool as a mainstream product, and in the process of designing and manufacturing mobile phones, a Computer-aided engineering (Computer-AIDED ENGINEERING, CAE) preprocessing software such as HYPERMESH is generally used to simulate a scene such as dropping. Screw connection is a common fixing mode in mobile phones, and reasonable division of screw grids can improve accurate calculation of failure risk. Currently, in handset screw modeling using HYPERMESH, a series of manual operations are required, such as cutting out the thread geometry, measuring the diameter and height of the screw head and screw post, etc. Since the thread geometry is cut away, the connection of the screw and the handset housing requires the use of Beam connection (Beam connection), which can lead to localized stress concentration problems. Moreover, for common screw connections, manual handling is still required during the molding process.
Therefore, how to perform automatic modeling, reduce time consumption, and realize more efficient and accurate modeling is a problem to be solved urgently.
Disclosure of Invention
In view of this, the method, the device, the equipment and the storage medium for generating the screw grid provided by the embodiment of the application can avoid repeated work, perform automatic modeling, reduce time consumption and realize more efficient and accurate modeling. The method, the device, the equipment and the storage medium for generating the screw grid are realized as follows:
the method for generating the screw grid provided by the embodiment of the application comprises the following steps:
Acquiring screw parameters of a target screw, wherein the screw parameters comprise a screw head circle center of the target screw, a screw head height of the target screw, a screw head radius of the target screw, a screw column height of the target screw and a screw column radius of the target screw;
According to part of the screw parameters, determining the screw surface of the target screw, and generating a screw surface grid;
And generating a screw grid of the target screw according to the other part of the screw parameters and the screw surface grid.
In some embodiments, the acquiring the screw parameters of the target screw further comprises:
Acquiring a plurality of circular characteristic lines of preset screws with the same specification as the target screw, wherein the characteristic lines are used for representing edges or contours of the preset screws;
determining the radius corresponding to each characteristic line according to the circle center of each characteristic line;
And selecting the maximum value of the radius corresponding to each characteristic line as the radius of the screw head of the target screw, and selecting the maximum value of the circle center of each characteristic line in the Z-axis direction as the circle center of the screw head of the target screw.
In some embodiments, the acquiring the screw parameters of the target screw further comprises:
acquiring a plurality of surfaces of the preset screw;
determining a plurality of target surfaces perpendicular to the Z-axis direction from the plurality of surfaces;
Calculating the distance between any two target surfaces in the plurality of target surfaces to obtain a plurality of distance values;
Determining a minimum value of the plurality of distance values as a screw head height of the target screw, and determining a difference between a maximum value and a minimum value of the plurality of distance values as a screw head height of the target screw.
In some embodiments, the determining a plurality of target surfaces perpendicular to the Z-axis direction from the plurality of surfaces comprises:
acquiring a normal vector of each of the plurality of surfaces;
and determining a plurality of surfaces of the normal vector parallel to the Z-axis direction as the plurality of target surfaces.
In some embodiments, the determining the screw face of the target screw according to some of the screw parameters and generating the screw face grid includes:
generating a screw surface of the target screw according to the circle center of the screw head of the target screw and the radius of the screw head of the target screw;
and carrying out grid division on the screw surface of the target screw to generate the screw surface grid.
In some embodiments, the generating the screw mesh of the target screw according to another part of the screw parameters and the screw face mesh includes:
Generating a screw head grid of the target screw according to the screw head height of the target screw and the screw surface grid;
Generating a screw column grid of the target screw according to the screw column height of the target screw and the screw column radius of the target screw;
and generating the screw grid of the target screw according to the screw head grid of the target screw and the screw column grid of the target screw.
In some embodiments, before the obtaining the screw parameters of the target screw, the method further includes:
outputting a screw interface to be imported, wherein the screw interface to be imported comprises information of at least one screw;
Determining the preset screw in response to a selection operation of information of the at least one screw on a screw interface to be imported;
accordingly, the screw parameters include a screw column radius of the target screw, and the obtaining the screw parameters of the target screw includes:
Outputting a screw column radius setting interface after the selection operation is detected;
a screw column radius of the target screw is determined in response to an input operation on the screw column radius setting interface.
The device for generating the screw grid provided by the embodiment of the application comprises the following components:
The acquisition module is used for acquiring screw parameters of a target screw, wherein the screw parameters comprise a screw head circle center of the target screw, a screw head height of the target screw, a screw head radius of the target screw, a screw column height of the target screw and a screw column radius of the target screw;
The generating module is used for determining the screw surface of the target screw according to part of the screw parameters and generating a screw surface grid;
And the generating module is also used for generating the screw grid of the target screw according to the other part of the screw parameters and the screw surface grid.
The computer device provided by the embodiment of the application comprises a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor realizes the method of the embodiment of the application when executing the program.
The computer readable storage medium provided by the embodiment of the present application stores a computer program thereon, which when executed by a processor implements the method provided by the embodiment of the present application.
The method, the device, the computer equipment and the computer readable storage medium for generating the screw grid provided by the embodiment of the application are used for obtaining the screw parameters of the target screw, wherein the screw parameters comprise the center of a screw head of the target screw, the height of the screw head of the target screw, the radius of the screw head of the target screw, the height of a screw column of the target screw and the radius of the screw column of the target screw, determining the screw surface of the target screw according to part of parameters in the screw parameters, generating the screw surface grid, and generating the screw grid of the target screw according to the other part of parameters in the screw parameters and the screw surface grid. In this way, corresponding screw grids can be generated according to given target screw parameters, automatic generation of the screw grids is achieved, efficiency of screw grid generation is improved, time of manual operation is reduced, screw grids with different shapes and sizes are generated according to different screw parameters, applicability is good, the automatically generated screw grids have high accuracy and consistency, and influence of human errors is reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic flow chart of a method for generating a screw grid according to an embodiment of the present application;
FIG. 2 is a flow chart of another method for generating a screw grid according to an embodiment of the present application;
FIG. 3 is a schematic view of a method for generating a screw grid according to an embodiment of the present application;
FIG. 4 is a schematic view of another method for generating a screw grid according to an embodiment of the present application;
FIG. 5 is a schematic view of another method for generating a screw grid according to an embodiment of the present application;
FIG. 6 is a schematic diagram of meshing of a method for generating a screw mesh according to an embodiment of the present application;
FIG. 7 is a schematic diagram of meshing of another method of generating a screw mesh in accordance with an embodiment of the present application;
FIG. 8 is a schematic diagram of meshing of another method of generating a screw mesh in accordance with an embodiment of the present application;
fig. 9 is a schematic structural view of a device for generating a screw grid according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the specific technical solutions of the present application will be described in further detail below with reference to the accompanying drawings in the embodiments of the present application. The following examples are illustrative of the application and are not intended to limit the scope of the application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is to be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments and can be combined with one another without conflict.
It should be noted that the term "first/second/third" in relation to embodiments of the present application is used to distinguish between similar or different objects, and does not represent a particular ordering of the objects, it being understood that the "first/second/third" may be interchanged with a particular order or sequencing, as permitted, to enable embodiments of the present application described herein to be implemented in an order other than that illustrated or described herein.
In view of this, the embodiment of the application provides a method for generating a screw grid. Fig. 1 is a flow chart of a method for generating a screw grid according to an embodiment of the present application. As shown in fig. 1, the method may include the following steps 101 to 103:
step 101, acquiring screw parameters of the target screw, wherein the screw parameters comprise the center of a screw head of the target screw, the height of the screw head of the target screw, the radius of the screw head of the target screw, the height of a screw column of the target screw and the radius of the screw column of the target screw.
In the embodiment of the application, the electronic equipment acquires screw parameters of the target screw, including the center of the screw head of the target screw, the height of the screw head of the target screw, the radius of the screw head of the target screw, the height of the screw column of the target screw and the radius of the screw column of the target screw.
In some embodiments, a plurality of circular feature lines of the preset screw having the same gauge as the target screw are acquired, each feature line being used to characterize an edge or contour of the preset screw. Optionally, a plurality of circular feature lines of the preset screw are determined, each feature line being used to characterize an edge or contour of the preset screw. The three-dimensional model of the preset screw can be obtained by scanning or shooting the preset screw, and the circular characteristic line is extracted from the model.
In some embodiments, the radius corresponding to each feature line is determined based on the center of the circle of each feature line. Optionally, the circle centers of the characteristic lines are measured to determine corresponding radius values. Further, the measurement can be performed by using a measuring ruler, a digital caliper or the like.
In some embodiments, a maximum value of the radius corresponding to each characteristic line is selected as the radius of the screw head of the target screw, and a maximum value of the circle center of each characteristic line in the Z-axis direction is selected as the circle center of the screw head of the target screw. Optionally, the maximum value of the radius corresponding to the characteristic line is determined as the screw head radius of the target screw. The maximum value may be selected as the screw head radius of the target screw by comparing the radius values of the respective feature lines. Further, the maximum value of the circle center of each characteristic line in the Z-axis direction is determined as the circle center of the screw head of the target screw in the Z-axis direction, and the maximum value of the circle center can be selected as the Z-axis coordinate of the target characteristic line by calculating the Z-axis coordinate of each circle center.
In some embodiments, multiple surfaces of the preset screw are obtained. Alternatively, a three-dimensional scanner or computer aided design software may be used to obtain the surface geometry information of the preset screw.
In some embodiments, a plurality of target surfaces perpendicular to the Z-axis direction are determined from a plurality of surfaces. Optionally, a normal vector calculation is performed on each surface to determine the direction of its normal vector.
And (3) screening out the surface with the included angle of 0 degree or 180 degrees as the target surface by comparing the included angle of the normal vector and the Z axis.
In some embodiments, a distance between any two of the plurality of target surfaces is calculated, resulting in a plurality of distance values. Alternatively, for each pair of target surfaces, the Euclidean distance or Manhattan distance between them is calculated, and all calculated distance values are recorded.
In some embodiments, a minimum value of the plurality of distance values is determined as the screw head height of the target screw, and a difference between a maximum value and a minimum value of the plurality of distance values is determined as the screw head height of the target screw. Alternatively, the minimum value is selected from the recorded distance values as the screw head height of the target screw. The minimum value represents the distance between the two target surfaces closest to the screw head, so that the screw head height of the target screw can be determined. And calculating the difference between the maximum value and the minimum value in the recorded distance values to obtain the screw column height of the target screw. The difference represents the distance between the screw head and the screw post so that the screw post height of the target screw can be determined.
In some embodiments, a normal vector is obtained for each of a plurality of surfaces. Optionally, surface data of the screw is acquired, including normal vectors for a plurality of surfaces. Further, for the normal vector of each surface, it is judged whether the included angle between the normal vector and the Z axis direction is 0 degree or 180 degrees. The cosine value of the included angle can be judged by calculating the dot product of the normal vector and the Z axis, and if the included angle is 90 degrees, the normal vector is vertical to the Z axis.
In some embodiments, the plurality of surfaces with normal vectors parallel to the Z-axis direction are determined to be a plurality of target surfaces. Alternatively, if the normal vector is parallel to the Z-axis, the surface is determined to be the target surface, which is saved in the target surface list. Further, all surfaces are processed until all surfaces have been traversed. A plurality of target surfaces perpendicular to the Z-axis direction are obtained.
Step 102, determining the screw surface of the target screw according to part of the screw parameters, and generating a screw surface grid.
In the embodiment of the application, the screw surface of the target screw is generated according to the circle center of the screw head of the target screw and the radius of the screw head of the target screw. A circle can be drawn as the shape of the screw head using the center coordinates and the radius. Further, the generated screw face is meshed and divided into small triangular or quadrilateral meshes for subsequent processing, and optionally, a triangulation algorithm or other mesh generation algorithm can be used.
In some embodiments, the screw face of the target screw is generated based on the center of the screw head of the target screw and the radius of the screw head of the target screw. Optionally, the circle center of the screw head of the target screw and the radius of the screw head of the target screw are obtained, the circle center of the screw head of the target screw is used as a coordinate origin, a circle with the radius of the screw head of the target screw as the radius is drawn on a plane, and the screw surface of the target screw is generated.
In some embodiments, the screw face of the target screw is meshing to generate a screw face mesh. Optionally, the screw face of the target screw is meshed to generate a screw face mesh. The screw face of the target screw is divided into small rectangular areas, and the side length of each rectangle is equal to the required grid size, so that the grid of the screw face is formed.
And 103, generating a screw grid of the target screw according to the other part of the screw parameters and the screw surface grid.
In an embodiment of the application, the screw head of the target screw is generated according to the screw head height and the screw face of the target screw. And carrying out grid division on the surface of the screw head, which is not divided into grids, so as to obtain a screw surface grid.
And generating the screw column of the target screw according to the screw column height of the target screw and the screw column radius of the target screw. The screw columns can be generated by using a cylindrical generation algorithm through specified heights and radiuses, and mesh division is performed on the screw columns to obtain screw column meshes.
And merging the screw head grid with the screw column grid to form a complete target screw grid model.
In some embodiments, the screw head grid of the target screw is generated based on the screw head height and the screw face grid of the target screw. Optionally, the screw head is generated according to the screw head height and the screw surface of the target screw, and for grid generation of the screw head surface, a curved grid generation algorithm, a triangular section or the like is optionally used. Further, the generation of mesh points may be performed according to the geometry and curvature of the screw head, and the generation of triangular patches by connecting adjacent points, thereby constructing a mesh of the entire screw head surface.
In some embodiments, a screw column grid of target screws is generated based on the screw column height of the target screws and the screw column radius of the target screws. Optionally, a cylinder is generated above the screw face grid according to the screw column radius of the target screw, the height of the cylinder being equal to the screw column height of the target screw. Further, the cylinder surface is divided into small grids to form screw column grids.
In some embodiments, the screw mesh of the target screw is generated from the screw head mesh of the target screw and the screw post mesh of the target screw. Optionally, the screw head grid of the target screw and the screw column grid of the target screw are combined, so that the screw head grid and the screw column grid of the target screw are tightly connected and are in seamless connection, and the screw grid of the target screw can be obtained. After the screw grid is obtained, the obtained screw grid may be further adjusted and refined, for example, by adjusting the geometry and size of the screw grid, etc., without limitation.
According to the application, the screw grid is generated through the screw parameters, and the geometric shape of the target screw can be accurately determined and the corresponding screw grid is generated by accurately acquiring various parameters of the target screw, including the circle center, the height, the radius and the like. The application can quickly and automatically generate the screw grid, greatly improves the screw processing efficiency, can obtain the screw grid meeting the requirements only by providing screw parameters, reduces the processing time and cost and improves the production efficiency. At the same time, the application also supports the generation of screw grids of different shapes and sizes. By acquiring parameters of the target screw, including the circle center, the height, the radius and the like of the screw head, the method can adapt to screws of different types, whether standard threads, special threads or nonstandard threads, can accurately generate corresponding screw grids, has strong applicability and flexibility, and can provide a reliable foundation for subsequent screw design, analysis and simulation.
Fig. 2 is a flow chart of a method for generating a screw grid according to an embodiment of the present application. As shown in fig. 2, the method may include the following steps 201 to 206:
Step 201, outputting a screw interface to be led in, wherein the screw interface to be led in comprises information of at least one screw.
In the embodiment of the application, CREATEMARKPANEL commands are called in HYPERMESH software, and a screw interface to be imported is output, wherein the interface displays information of a plurality of screws for a user to select. Further, each screw on the interface includes a model, a size, and other related parameters.
Step 202, determining a preset screw in response to a selection operation of information of at least one screw at the screw interface to be introduced.
In the embodiment of the application, a user invokes CREATEMARK SOLIDS a command on a screw interface to be imported to perform a selection operation, and selects a target screw which needs to generate a screw grid. Further, the system determines the model of the preset screw according to the selection of the user, and acquires the parameter information of the preset screw corresponding to the model.
Step 203, obtaining screw parameters of the target screw, wherein the screw parameters comprise the screw column radius of the target screw, and the screw parameters comprise: after the selection operation is detected, the screw column radius setting interface is output.
In the embodiment of the application, the setting options of the radius of the screw column are displayed on the interface, and the user can adjust the radius of the screw column. Further, an input operation is provided, and a user can input the screw column radius of the target screw through a text box or a sliding bar.
Step 204, determining the screw column radius of the target screw in response to an input operation on the screw column radius setting interface.
In the embodiment of the application, a user performs input operation on the screw column radius setting interface, and the screw column radius value of the target screw can be input according to the requirement. Further, the user's input operation is monitored, and the inputted value is taken as the screw column radius of the target screw. And acquiring a complete parameter set of the target screw according to the preset screw selected by the user and the inputted screw column radius.
The parameter set comprises parameters such as the center of a screw head, the height and the radius of the target screw, the height of a screw column of the target screw, the radius of the screw column and the like.
Step 205, determining a screw surface of the target screw according to the center of the screw head of the target screw and the radius of the screw head of the target screw in the screw parameters, and generating a screw surface grid.
In the embodiment of the present application, a command CREATEMARK LINES is called to obtain all feature lines of the preset screw, and a command createbestcircleemternode is called to find out the circle centers of the feature lines after the feature lines are obtained, as shown in fig. 3, fig. 3 is a schematic structural diagram after the circle centers corresponding to each circular feature line are obtained. Further, calling hm_ measureshortestdistance to command to find the radius of each characteristic line, and determining the maximum radius as the radius of the preset screw.
Further, for each circle center, the hm_ nodevalue command is called to find the Z-direction coordinate value of each circle center. Finding out the center of the circle with the largest Z-direction coordinate value.
Further, according to the radius of the preset screw and the center of the maximum Z-coordinate value, a createcirclefromcenterradius screw face is called, and then according to the surface-plineonlinesloop command, a temporary face is generated, and the temporary face is used for grid division, as shown in fig. 6, fig. 6 is a schematic diagram of the temporary face of the grid division generated according to the screw face. The temporary surface is meshed to generate a screw surface mesh, as shown in fig. 7, and fig. 7 is a schematic diagram of meshed screw surface mesh.
Step 206, generating a screw grid of the target screw according to the screw head height of the target screw, the screw column radius of the target screw, the screw column height of the target screw and the screw surface grid in the screw parameters.
In the embodiment of the present application, call CREATEMARK SURFACES 1 is called to find all surfaces of the preset screw, call hm_ getsurfacenormalatcoordinate is called to find normal vector coordinates of all surfaces, and a surface corresponding to a normal vector of the normal vector parallel to the z axis is determined as a target surface according to the normal vector coordinates, as shown in fig. 4, and fig. 4 is a schematic diagram of a structure for determining the target surface.
Further, invoking hm_ measureshortestdistance to obtain the distance between the target surface and the maximum circle center, as shown in fig. 5, fig. 5 is a schematic structural diagram of obtaining the preset screw, the screw head of the target screw and the screw column height of the target screw, the maximum distance between the target surface and the maximum circle center is the preset screw height, the minimum distance between the target surface and the maximum circle center is the screw head height of the target screw, and the difference between the maximum distance and the minimum distance is the screw column height of the target screw.
Further, generating screw heads according to the screw face grids and the screw head heights, meshing the screw heads, generating screw columns according to the screw column heights of the target screws and the screw column radiuses of the target screws, meshing the screw columns of the target screws to obtain partitioned screw column grids, and combining the screw column grids with the screw head grids to generate screw grids, wherein fig. 8 is a screw grid partitioning schematic diagram after combining the screw heads with the screw columns.
The application provides a screw interface to be imported, which can automatically select preset screw information according to the needs, does not need to manually input a large amount of parameters, but selects the model of the preset screw according to the actual needs, simplifies the operation flow, improves the working efficiency of a user, outputs a screw column radius setting interface after selecting the screw, and enables the user to perform input operation on the interface to determine the required screw column radius, so that the user can more flexibly control the size and shape of the screw, adapt to different actual needs, and can accurately generate screw grids meeting the actual needs by acquiring the required screw parameters including the circle center of a screw head, the radius of a screw column and the like. The size and the shape of the screw can be customized according to actual needs, the flexibility and the customization are further improved, accurate screw grids are generated based on accurate screw parameters, the generated screw grids are guaranteed to be completely matched with the size and the shape of the preset screw, and the accuracy of generating the screw grids is improved.
It should be understood that, although the steps in the flowcharts described above are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described above may include a plurality of sub-steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the sub-steps or stages is not necessarily sequential, but may be performed alternately or alternately with at least a part of the sub-steps or stages of other steps or other steps.
Based on the foregoing embodiments, the embodiments of the present application provide a device for generating a screw mesh, where the device includes each module included, and each unit included in each module may be implemented by a processor; of course, the method can also be realized by a specific logic circuit; in an implementation, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 9 is a schematic structural diagram of a device for generating a screw grid according to an embodiment of the present application, as shown in fig. 9, the device 900 includes an obtaining module 901 and a generating module 902, where:
The acquisition module 901 is configured to acquire screw parameters of a target screw, where the screw parameters include a center of a screw head of the target screw, a height of the screw head of the target screw, a radius of the screw head of the target screw, a height of a screw column of the target screw, and a radius of a screw column of the target screw;
A generating module 902, configured to determine a screw surface of the target screw according to some parameters of the screw parameters, and generate a screw surface grid;
Further, the generating module 902 is further configured to generate a screw mesh of the target screw according to another part of the screw parameters and the screw surface mesh.
In some embodiments, the obtaining module 901 is specifically configured to obtain a plurality of circular feature lines of a preset screw having the same specification as the target screw, where the feature lines are used to characterize an edge or a contour of the preset screw;
The acquiring module 901 is further specifically configured to determine a radius corresponding to each feature line according to the circle center of each feature line;
The obtaining module 901 is further specifically configured to select a maximum value of the radii corresponding to the feature lines as a radius of the screw head of the target screw, and select a maximum value of the circle center of each feature line in the Z-axis direction as a circle center of the screw head of the target screw.
In some embodiments, the acquiring module 901 is specifically configured to acquire a plurality of surfaces of the preset screw;
the acquiring module 901 is further specifically configured to determine a plurality of target surfaces perpendicular to the Z-axis direction from the plurality of surfaces;
the obtaining module 901 is further specifically configured to calculate a distance between any two target surfaces in the plurality of target surfaces, so as to obtain a plurality of distance values;
The obtaining module 901 is further specifically configured to determine a minimum value of the plurality of distance values as a screw head height of the target screw, and determine a difference between a maximum value and a minimum value of the plurality of distance values as a screw head height of the target screw.
In some embodiments, the acquiring module 901 is specifically configured to acquire a normal vector of each of the plurality of surfaces;
The acquiring module 901 is further specifically configured to determine a plurality of surfaces with normal vectors parallel to the Z-axis direction as a plurality of target surfaces.
In some embodiments, the generating module 902 is specifically configured to generate a screw surface of the target screw according to a center of a screw head of the target screw and a radius of the screw head of the target screw;
the generating module 902 is further specifically configured to grid-divide a screw surface of the target screw, and generate a screw surface grid.
In some embodiments, the generating module 902 is specifically configured to generate a screw head grid of the target screw according to the screw head height and the screw face grid of the target screw;
The generating module 902 is further specifically configured to generate a screw column grid of the target screw according to the screw column height of the target screw and the screw column radius of the target screw;
the generating module 902 is further specifically configured to generate a screw mesh of the target screw according to the screw head mesh of the target screw and the screw column mesh of the target screw.
In some embodiments, the obtaining module 901 is specifically configured to output a screw interface to be introduced, where the screw interface to be introduced includes information of at least one screw;
the acquiring module 901 is further specifically configured to determine a preset screw in response to a selection operation of information of at least one screw at a to-be-introduced screw interface;
Accordingly, the screw parameters include a screw column radius of the target screw, and acquiring the screw parameters of the target screw includes:
the obtaining module 901 is further specifically configured to output a screw column radius setting interface after detecting the selection operation;
The acquisition module 901 is further specifically configured to determine a screw column radius of the target screw in response to an input operation on the screw column radius setting interface.
The description of the apparatus embodiments above is similar to that of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the apparatus of the present application, please refer to the description of the embodiments of the method of the present application.
It should be noted that, in the embodiment of the present application, the division of modules by the device for generating a screw grid shown in fig. 9 is schematic, and is merely a logic function division, and there may be another division manner in actual implementation. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units. Or in a combination of software and hardware.
It should be noted that, in the embodiment of the present application, if the method is implemented in the form of a software functional module, and sold or used as a separate product, the method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the related art, embodied in the form of a software product stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
The embodiment of the application provides a computer device, which can be a server, and the internal structure diagram of the computer device can be shown in fig. 10. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing data. The network interface of the computer device is used for communicating with an external terminal through a network connection. Which computer program, when being executed by a processor, carries out the above-mentioned method.
An embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method provided in the above-described embodiment.
Embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method provided by the method embodiments described above.
It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, the screw grid generating device provided by the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 10. The memory of the computer device may store the various program modules that make up the apparatus. The computer program of each program module causes a processor to carry out the steps of the method of each embodiment of the application described in the present specification.
It should be noted here that: the description of the storage medium and apparatus embodiments above is similar to that of the method embodiments described above, with similar benefits as the method embodiments. For technical details not disclosed in the storage medium, the storage medium and the device embodiments of the present application, please refer to the description of the method embodiments of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" or "some embodiments" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "in some embodiments" in various places throughout this specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application. The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The term "and/or" is herein merely an association relation describing associated objects, meaning that there may be three relations, e.g. object a and/or object B, may represent: there are three cases where object a alone exists, object a and object B together, and object B alone exists.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments are merely illustrative, and the division of the modules is merely a logical function division, and other divisions may be implemented in practice, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not performed. In addition, the various components shown or discussed may be coupled or directly coupled or communicatively coupled to each other via some interface, whether indirectly coupled or communicatively coupled to devices or modules, whether electrically, mechanically, or otherwise.
The modules described above as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules; can be located in one place or distributed to a plurality of network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated in one processing unit, or each module may be separately used as one unit, or two or more modules may be integrated in one unit; the integrated modules may be implemented in hardware or in hardware plus software functional units.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program, when executed, performs steps including the above method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a magnetic disk or an optical disk, or the like, which can store program codes.
Or the above-described integrated units of the application may be stored in a computer-readable storage medium if implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partly contributing to the related art, embodied in the form of a software product stored in a storage medium, including several instructions for causing an electronic device to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a removable storage device, a ROM, a magnetic disk, or an optical disk.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the several product embodiments provided by the application can be combined arbitrarily under the condition of no conflict to obtain new product embodiments.
The features disclosed in the embodiments of the method or the apparatus provided by the application can be arbitrarily combined without conflict to obtain new embodiments of the method or the apparatus.
The foregoing is merely an embodiment of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A method of generating a screw grid, comprising:
Acquiring screw parameters of a target screw, wherein the screw parameters comprise a screw head circle center of the target screw, a screw head height of the target screw, a screw head radius of the target screw, a screw column height of the target screw and a screw column radius of the target screw;
According to part of the screw parameters, determining the screw surface of the target screw, and generating a screw surface grid;
And generating a screw grid of the target screw according to the other part of the screw parameters and the screw surface grid.
2. The method of claim 1, wherein the obtaining screw parameters of the target screw comprises:
Acquiring a plurality of circular characteristic lines of preset screws with the same specification as the target screw, wherein the characteristic lines are used for representing edges or contours of the preset screws;
determining the radius corresponding to each characteristic line according to the circle center of each characteristic line;
and selecting the maximum value of the radius corresponding to each characteristic line as the screw head radius of the target screw, and selecting the maximum value of the circle center of each characteristic line in the Z-axis direction as the screw head circle center of the target screw.
3. The method of claim 2, wherein the obtaining screw parameters of the target screw further comprises:
acquiring a plurality of surfaces of the preset screw;
determining a plurality of target surfaces perpendicular to the Z-axis direction from the plurality of surfaces;
Calculating the distance between any two target surfaces in the plurality of target surfaces to obtain a plurality of distance values;
Determining a minimum value of the plurality of distance values as a screw head height of the target screw, and determining a difference between a maximum value and a minimum value of the plurality of distance values as a screw head height of the target screw.
4. A method according to claim 3, wherein said determining a plurality of target surfaces perpendicular to said Z-axis direction from said plurality of surfaces comprises:
acquiring a normal vector of each of the plurality of surfaces;
and determining a plurality of surfaces of the normal vector parallel to the Z-axis direction as the plurality of target surfaces.
5. The method of claim 2, wherein the determining the screw face of the target screw based on some of the screw parameters and generating a screw face grid comprises:
generating a screw surface of the target screw according to the circle center of the screw head of the target screw and the radius of the screw head of the target screw;
and carrying out grid division on the screw surface of the target screw to generate the screw surface grid.
6. The method of claim 1, wherein generating the screw mesh of the target screw from the other of the screw parameters and the screw face mesh comprises:
Generating a screw head grid of the target screw according to the screw head height of the target screw and the screw surface grid;
Generating a screw column grid of the target screw according to the screw column height of the target screw and the screw column radius of the target screw;
and generating the screw grid of the target screw according to the screw head grid of the target screw and the screw column grid of the target screw.
7. The method of claim 2, wherein prior to obtaining the screw parameters of the target screw, further comprising:
outputting a screw interface to be imported, wherein the screw interface to be imported comprises information of at least one screw;
Determining the preset screw in response to a selection operation of information of the at least one screw on a screw interface to be imported;
accordingly, the screw parameters include a screw column radius of the target screw, and the obtaining the screw parameters of the target screw includes:
Outputting a screw column radius setting interface after the selection operation is detected;
a screw column radius of the target screw is determined in response to an input operation on the screw column radius setting interface.
8. A screw grid generating device, comprising:
The acquisition module is used for acquiring screw parameters of a target screw, wherein the screw parameters comprise a screw head circle center of the target screw, a screw head height of the target screw, a screw head radius of the target screw, a screw column height of the target screw and a screw column radius of the target screw;
The generating module is used for determining the screw surface of the target screw according to part of the screw parameters and generating a screw surface grid;
And the generating module is also used for generating the screw grid of the target screw according to the other part of the screw parameters and the screw surface grid.
9. A computer device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the program is executed.
10. A computer readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the method according to any one of claims 1 to 7.
CN202410072368.2A 2024-01-17 2024-01-17 Method and device for generating screw grid, equipment and storage medium Pending CN117892451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410072368.2A CN117892451A (en) 2024-01-17 2024-01-17 Method and device for generating screw grid, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410072368.2A CN117892451A (en) 2024-01-17 2024-01-17 Method and device for generating screw grid, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117892451A true CN117892451A (en) 2024-04-16

Family

ID=90644149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410072368.2A Pending CN117892451A (en) 2024-01-17 2024-01-17 Method and device for generating screw grid, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117892451A (en)

Similar Documents

Publication Publication Date Title
CN110516370B (en) Prefabricated part deepening drawing generation method and device, computer equipment and medium
US8831332B2 (en) Computing device and method for extracting data of product for use in construction of point cloud
US9158297B2 (en) Computing device and method for generating measurement program of product
US8254664B2 (en) System and method for measuring errors of workpieces
US20090289953A1 (en) System and method for adjusting view of a measuring report of an object
US7333104B2 (en) Method and program of converting three-dimensional shape data into cell internal data
CN110688798B (en) Deformation prediction method, device, equipment and storage medium for shell structural part
US20120089241A1 (en) Electronic device and method for simulating probe of workpiece measuring device
CN117892451A (en) Method and device for generating screw grid, equipment and storage medium
US8761515B2 (en) Electronic device and method for creating measurement codes
CN115908715A (en) Loading method and device of building information model, equipment and storage medium
CN112560126B (en) Data processing method, system and storage medium for 3D printing
KR101671908B1 (en) Apparatus and method for comparing assembly models
US8437981B2 (en) System and method for verifying manufacturing accuracy
JP4622987B2 (en) Tool reference plane data creation device and creation method
CN114160811B (en) Material molding processing method, device, equipment and storage medium
Inui et al. Accessibility map for assisting cutter posture determination in five-axis mold machining
CN112380612B (en) Rapid design method, device, medium and terminal suitable for ship outfitting platform
US11410383B2 (en) Automated component design extraction
CN115222913B (en) Grid generation and structure simulation analysis method, device, equipment and storage medium
JP7256114B2 (en) Design support device, method and program
CN116713808B (en) Method and system for accurately detecting hole level in shielding case
US8842902B2 (en) Server and method for aligning part of product with reference object
JP2017228234A (en) Information processor, region division method, and region division program
CN117422610A (en) Three-dimensional model light weight method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication