Grid model generation method and device, electronic equipment and storage medium
Through automated pad area determination and meshing methods, a three-dimensional pad mesh model is generated, which solves the problem of low pad modeling efficiency and accuracy in the prior art, and improves the accuracy and efficiency of drop risk prediction.
Patent Information
- Application Number
- CN202410928033.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-12
AI Technical Summary
In the prior art, the generation efficiency and accuracy of three-dimensional modeling of pads are low, which leads to low stress risk prediction efficiency and accuracy after falling chips and motherboards. This is mainly because the generation of pad models relies on manual operation, which leads to Error and inefficiency.
By obtaining the pad bottom surface and silk-printed line collection of the target chip, the pad area is automatically determined, and the grid is divided according to the preset grid side length to generate a three-dimensional grid model of the pad, avoiding manual operations and improving accuracy and efficiency.
It improves the generation efficiency and accuracy of the pad 3D grid model, enhances the accuracy of risk prediction after falling, reduces errors caused by manual operations, and realizes an automated three-dimensional modeling process.
Smart Images

Figure CN118941736A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of three-dimensional modeling, and in particular to a method, device, electronic device and storage medium for generating a grid model. Background Art
[0002] In the process of designing and manufacturing electronic products, it is usually necessary to perform three-dimensional modeling of electronic products, so as to analyze existing risks and predict potential risks of electronic products, so as to improve the quality of electronic products and shorten the research and development cycle of electronic products. For chips and motherboards, it is necessary to use three-dimensional models to analyze the strain of chips and motherboards when they fall, so as to predict the risks after falling. Therefore, in the process of three-dimensional modeling, it is necessary to accurately model the motherboard and chip, wherein the chip body can be connected to the motherboard by welding pads, and the modeling accuracy of the pads can have a significant impact on the stress risk prediction. However, not only are there a large number of pads on the chip, but also related technologies are usually manually modeled, and the generation efficiency and accuracy of the pad model are low, which leads to low efficiency and accuracy of stress risk prediction. Summary of the invention
[0003] The embodiments of the present application disclose a method, device, electronic device and storage medium for generating a grid model, which can improve the generation efficiency and accuracy of a three-dimensional grid model of a pad, thereby improving the accuracy of risk prediction after a fall.
[0004] The present application embodiment discloses a method for generating a grid model, comprising:
[0005] Acquire a pad bottom surface and a silk screen line set corresponding to a target chip, wherein the target chip includes a chip body and a plurality of pads;
[0006] Determining pad regions corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set;
[0007] Divide each of the pad regions into grids according to the preset grid side lengths corresponding to each of the pad regions to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad;
[0008] A pad three-dimensional mesh model is generated according to the plurality of first two-dimensional meshes and the pad height.
[0009] In one embodiment, determining pad areas corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set includes:
[0010] Randomly selecting a target silk screen line from the silk screen line set;
[0011] Determine a silk screen line group corresponding to the target silk screen line, the silk screen lines included in the silk screen line group form a closed area;
[0012] Determine a pad area within the pad bottom surface according to the silk screen lines included in the silk screen line group;
[0013] The silk screen lines included in the silk screen line group are deleted from the silk screen line set to obtain a new silk screen line set, and the step of randomly selecting the target silk screen lines from the silk screen line set is re-executed until there are no silk screen lines in the silk screen line set to obtain the pad areas corresponding to the multiple pads respectively.
[0014] In one embodiment, determining the silk screen line group corresponding to the target silk screen line includes:
[0015] If there is no first silk screen line connected to the target silk screen line in the silk screen line set, adding the target silk screen line to the silk screen line group corresponding to the target silk screen line group;
[0016] If there is at least one first silk screen line connected to the target silk screen line, determine the second silk screen line connected to the at least one first silk screen line, and add the target silk screen line, the at least one first silk screen line and the second silk screen line to the silk screen line group corresponding to the target silk screen line group.
[0017] In one embodiment, before meshing each of the pad regions according to the preset grid side lengths corresponding to each of the pad regions to obtain a plurality of first two-dimensional grids corresponding to the pad bottom surface, the method further includes:
[0018] Determine whether the target pad area is in the edge area of the pad bottom surface; the target pad area is any pad area;
[0019] If the target pad area is in the edge area of the pad bottom surface, the preset first side length is determined as the preset grid side length corresponding to the target pad area;
[0020] If the target pad area is not in the edge area of the pad bottom surface, the preset second side length is determined as the preset grid side length corresponding to the target pad area; the second side length is greater than the first side length.
[0021] In one embodiment, the plane coordinate system corresponding to the bottom surface of the pad includes a first coordinate axis and a second coordinate axis; the step of determining whether the target pad area is in an edge area within the bottom surface of the pad includes:
[0022] Acquire a first extreme value set corresponding to a target pad area, wherein the first extreme value set includes a minimum value and a maximum value of the target pad area on the first coordinate axis and a minimum value and a maximum value of the target pad area on the second coordinate axis;
[0023] Determine whether the first extreme value set and the second extreme value set have the same extreme value; the second extreme value set includes the first minimum value and the first maximum value of the plurality of pad areas on the first coordinate axis and the second minimum value and the second maximum value on the second coordinate axis;
[0024] If the first extreme value set and the second extreme value set have the same extreme value, determining that the target pad area is in the edge area of the pad bottom surface;
[0025] If the first extreme value set and the second extreme value set do not have the same extreme value, it is determined that the target pad area is not in the edge area of the pad bottom surface.
[0026] In one embodiment, the method further comprises:
[0027] Acquire three-dimensional shape data of the target chip;
[0028] Determine, according to the three-dimensional shape data, a target height of the target chip and a chip top surface corresponding to the chip body, wherein the chip top surface is a plane area on the chip body that is parallel to the bottom surface of the pad and away from the bottom surface of the pad;
[0029] Determining the chip body height according to the target height and the pad height;
[0030] Performing grid division on the top surface of the chip to obtain a plurality of second two-dimensional grids corresponding to the top surface of the chip;
[0031] A chip body three-dimensional mesh model is generated according to the plurality of second two-dimensional meshes and the chip body height.
[0032] In one embodiment, the method further comprises:
[0033] Determine, according to the three-dimensional shape data, a coordinate range corresponding to the target chip on a third coordinate axis; the third coordinate axis is perpendicular to the top surface of the chip;
[0034] Determine, according to the coordinate range and the bottom surface of the pad, a first model generation direction corresponding to the plurality of pads and a second model generation direction corresponding to the chip body; the first model generation direction and the second model generation direction are opposite directions;
[0035] Generating a pad three-dimensional grid model according to the plurality of first two-dimensional grids and pad heights includes:
[0036] Generate a pad three-dimensional mesh model according to the plurality of first two-dimensional meshes, pad height and the first model generation direction;
[0037] The step of generating a chip body three-dimensional grid model according to the plurality of second two-dimensional grids and the chip body height comprises:
[0038] A chip body three-dimensional mesh model is generated according to the plurality of second two-dimensional meshes, the chip body height and the second model generation direction.
[0039] The present application embodiment discloses a grid model generation device, including:
[0040] An information acquisition module, used to acquire a pad bottom surface and a silk screen line set corresponding to a target chip, wherein the target chip includes a chip body and a plurality of pads;
[0041] An area determination module, used for determining pad areas corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set;
[0042] A grid division module, used for performing grid division on each of the pad regions according to a preset grid side length corresponding to each of the pad regions, to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad;
[0043] The model generation module is used to generate a three-dimensional grid model of the pad according to the multiple first two-dimensional grids and the pad height.
[0044] The present application discloses an electronic device, including:
[0045] A memory storing executable program code;
[0046] a processor coupled to the memory;
[0047] The processor calls the executable program code stored in the memory to execute the method described in any one of the above embodiments.
[0048] An embodiment of the present application discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the method described in any one of the above embodiments.
[0049] Through the generation method, device, electronic device and storage medium of the grid model disclosed in the embodiment of the present application, the electronic device can obtain the pad bottom surface and the silk screen line set corresponding to the target chip, the target chip includes a chip body and a plurality of pads, according to the silk screen line set, the pad area corresponding to the plurality of pads can be determined in the pad bottom surface, and the preset grid side length corresponding to each pad area can be used to divide each pad area into grids, so as to obtain a plurality of first two-dimensional grids corresponding to the pad bottom surface, and generate a pad three-dimensional grid model according to the plurality of first two-dimensional grids and the pad height. By implementing this embodiment, the electronic device can determine the pad area through the silk screen line set, avoiding the error of the determined pad area caused by manual operation, and each pad area corresponds to a preset grid side length, and the plurality of first two-dimensional grids divided according to the preset grid side length are more accurate, so that the accuracy of the generated pad three-dimensional grid model is also higher, which not only improves the accuracy of the pad three-dimensional grid model, but also improves the efficiency of generating the pad three-dimensional grid model without manual operation, and the risk prediction after falling can be performed through the pad three-dimensional grid model, which can improve the accuracy of the risk prediction after falling. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 It is a schematic diagram of an application scenario of a method for generating a grid model disclosed in an embodiment of the present application;
[0052] Figure 2 It is a flowchart of a method for generating a grid model disclosed in an embodiment of the present application;
[0053] Figure 3-A is a schematic diagram of a silk screen line disclosed in an embodiment of the present application;
[0054] Figure 3-B is a schematic diagram of another silk screen line disclosed in an embodiment of the present application;
[0055] Figure 4 It is a flowchart of a method for determining pad areas corresponding to a plurality of pads respectively in a pad bottom surface according to a set of silk screen lines in an electronic device disclosed in an embodiment of the present application;
[0056] Figure 5 It is a flowchart of a method for determining a preset grid side length corresponding to a pad area of an electronic device disclosed in an embodiment of the present application;
[0057] Figure 6 It is a flow chart of a method for generating a three-dimensional mesh model of a chip body by an electronic device disclosed in an embodiment of the present application;
[0058] Figure 7 It is a schematic diagram of three-dimensional shape data and silk-screen lines of a target chip disclosed in an embodiment of the present application;
[0059] Figure 8 It is a schematic diagram of a pad three-dimensional mesh model and a chip three-dimensional mesh model disclosed in an embodiment of the present application;
[0060] Fig. 9 is a schematic diagram of a user interaction interface disclosed in an embodiment of the present application;
[0061] Fig.10 It is a modular schematic diagram of a grid model generation device disclosed in an embodiment of the present application;
[0062] Fig.11 It is a structural block diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0063] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0064] It should be noted that the terms "including" and "having" in the embodiments of the present application and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0065] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first two-dimensional grid may be referred to as a second two-dimensional grid, and similarly, a second two-dimensional grid may be referred to as a first two-dimensional grid. Both the first two-dimensional grid and the second two-dimensional grid are two-dimensional grids, but they are not the same two-dimensional grid.
[0066] The embodiments of the present application disclose a method, device, electronic device and storage medium for generating a grid model, which can improve the generation efficiency and accuracy of a three-dimensional grid model of a pad, thereby improving the accuracy of risk prediction after a fall.
[0067] The following is a detailed description with reference to the accompanying drawings.
[0068] like Figure 1 As shown, Figure 1 1 is a schematic diagram of an application scenario of a method for generating a mesh model disclosed in an embodiment of the present application, and the application scenario may include an electronic device 110, and the electronic device 110 may include but is not limited to a mobile phone, a tablet computer, a wearable device, a laptop computer, a PC (Personal Computer), etc. Optionally, the electronic device 110 may be installed with Hypermesh, which is a pre-processing software specifically used for various types of body / surface mesh division, and the electronic device 110 may model a three-dimensional mesh model of a pad through Hypermesh.
[0069] In one embodiment, the electronic device 110 can obtain the pad bottom surface and the silk screen line set corresponding to the target chip. The electronic device 110 can determine the pad areas corresponding to the multiple pads in the pad bottom surface based on the silk screen line set. The electronic device 110 can grid each pad area according to the preset grid side length corresponding to each pad area to obtain multiple first and second grids corresponding to the pad bottom surface. The electronic device 110 can thus generate a three-dimensional pad grid model based on the multiple first and second grids and the pad height.
[0070] like Figure 2 As shown, Figure 2 : is a flow chart of a method for generating a grid model disclosed in an embodiment of the present application. The method for generating a grid model can be applied to the electronic device in the above embodiment. The method for generating a grid model can include the following steps:
[0071] Step 210, obtaining the pad bottom surface and silk screen line set corresponding to the target chip.
[0072] The target chip includes a chip body and a plurality of pads. The chip body may refer to the main part of the target chip composed of semiconductor materials, including electronic components and circuits, etc. The pad may refer to the bottom part of the target chip composed of metal materials. The shape of the pad may include square, spherical, etc. The plurality of pads are distributed at the bottom of the target chip according to the distribution law corresponding to the chip type. For example, the bottom of a QFN chip includes a larger pad in the middle area and a plurality of smaller pads in the edge area. Optionally, the pad may be square.
[0073] The target chip can be connected to the PCB (Printed Circuit Board) by welding through multiple pads. The PCB is the main board. The welding surface of the PCB that is welded to the target chip is provided with multiple silk screen lines. The silk screen lines can be used to indicate the pad area of each pad, that is, the area where the pad is welded to the PCB. The silk screen line set may include the multiple silk screen lines. Figure 3-A As shown, Figure 3-A Schematic diagram of a silk screen line disclosed in an embodiment of the present application, wherein a plurality of silk screen lines 320 are provided on a soldering surface 310 of a PCB, and a closed area (i.e. Figure 3-A The rectangular area in the figure indicates the pad area.
[0074] Optionally, the electronic device may store the model data of the PCB, so that the silk screen line set can be determined according to the model data of the PCB. The silk screen line set may include the serial numbers of each silk screen line, and the electronic device may determine the position information of each silk screen line through the serial number of each silk screen line, and then determine the pad areas corresponding to the multiple pads according to the position information of the multiple silk screen lines.
[0075] like Figure 3-B As shown, Figure 3-B It is a schematic diagram of another type of silk screen line disclosed in an embodiment of the present application. The pad area (1) can be formed by four silk screen lines, which are silk screen line 321, silk screen line 322, silk screen line 323 and silk screen line 324, that is, each silk screen line is a line segment. The pad area (2) can be formed by a silk screen line 325, that is, the silk screen line is not a line segment, but all boundary lines corresponding to the pad area (2).
[0076] When the target chip is connected to the PCB by welding, the bottom surface of the pad and the welding surface of the PCB can be located in the same plane, and the bottom surface of the pad refers to the two-dimensional plane area corresponding to the bottom of multiple pads, and the two-dimensional plane area can be a rectangular or other shaped area. Optionally, the electronic device can determine the surface corresponding to the silk screen line according to the position information corresponding to the multiple silk screen lines, and determine the bottom surface of the pad. Optionally, the electronic device can also determine the surface of the target chip facing the PCB, and then determine the bottom surface of the pad. Optionally, the electronic device can also determine the surface of the PCB facing the target chip, and determine the bottom surface of the pad. Optionally, the electronic device can also detect the surface corresponding to the manual operation, and determine the bottom surface of the pad. The embodiment of the present application does not limit the method for determining the bottom surface of the pad.
[0077] Step 220 , determining pad areas corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set.
[0078] The electronic device can determine the pad area corresponding to the connected silk screen lines, i.e., the pad area corresponding to four silk screen lines, in the pad bottom surface according to the multiple silk screen lines included in the silk screen line set, or determine the pad area corresponding to one silk screen line in the pad bottom surface. The electronic device can determine multiple pad areas in the pad bottom surface according to the silk screen line set, and the multiple pad areas correspond one-to-one to the multiple pads included in the target chip.
[0079] Step 230 , gridding each pad area according to the preset grid side length corresponding to each pad area, to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad.
[0080] The preset grid side length refers to the side length of the two-dimensional square grid after the grid is divided. Optionally, pad areas of different types or positions may correspond to different preset grid side lengths.
[0081] The electronic device can first obtain the preset grid side length and area corresponding to each pad area, which area can be determined based on the silk screen line set corresponding to each pad area, and calculate the number of grid rows and grid columns corresponding to each pad area based on the area corresponding to each pad area and the preset grid side length, and then divide each pad area into grids based on the number of grid rows and grid columns corresponding to each pad area, and determine the two-dimensional grid points included in each pad area, which are vertices of the first two-dimensional grid. The electronic device can connect adjacent two-dimensional grid points in each pad area to obtain multiple first two-dimensional grids corresponding to the bottom surface of the pad.
[0082] Step 240 , generating a pad three-dimensional mesh model according to the plurality of first two-dimensional meshes and pad heights.
[0083] The electronic device may first obtain a pad height, which may refer to a distance from a bottom surface to a top surface of the pad, wherein the pad heights corresponding to each pad are the same. The electronic device may determine a grid height of a pad three-dimensional grid model according to the pad height, and expand one or more first three-dimensional grids in a vertical direction of each first two-dimensional grid according to the grid height.
[0084] Optionally, the number of grid layers in the vertical direction of the pad three-dimensional grid model can be preset. The electronic device can first determine the grid height of the pad three-dimensional grid model based on the number of grid layers and the pad height, and then expand the first three-dimensional grids in the vertical direction of each first two-dimensional grid by a number equal to the number of grid layers according to the grid height.
[0085] The embodiment of the present application does not limit the expansion method of the first two-dimensional grid. Exemplarily, for the target first two-dimensional grid, the target first two-dimensional grid can be any grid in multiple first two-dimensional grids. The electronic device can generate at least two three-dimensional grid points in the vertical direction for each two-dimensional grid point of the target first two-dimensional grid. The distance between two adjacent three-dimensional grid points generated by each two-dimensional grid point is the grid height. The number of three-dimensional grid points generated by each two-dimensional grid point is the number of grid layers plus 1. If the number of grid layers is 3, each two-dimensional grid point can generate 4 three-dimensional grid points. It can be understood that the original two-dimensional grid point is also used as the generated three-dimensional grid point, that is, one two-dimensional grid point plus 3 newly generated three-dimensional grid points, together as the four three-dimensional grid points generated by the two-dimensional grid point. The electronic device can connect the adjacent three-dimensional grid points corresponding to each pad area to generate a pad three-dimensional grid model.
[0086] In an embodiment of the present application, an electronic device can obtain a pad bottom surface and a silk screen line set corresponding to a target chip, the target chip includes a chip body and a plurality of pads, and according to the silk screen line set, pad areas corresponding to the plurality of pads can be determined in the pad bottom surface, and each pad area can be grid-divided according to the preset grid side length corresponding to each pad area, to obtain a plurality of first and second grids corresponding to the pad bottom surface, and generate a pad three-dimensional grid model according to the plurality of first and second grids and the pad height. By implementing this embodiment, the electronic device can determine the pad area through the silk screen line set, avoiding errors in the determined pad area caused by manual operation, and each pad area corresponds to a preset grid side length, and the plurality of first and second grids divided according to the preset grid side length are more accurate, so that the accuracy of the generated pad three-dimensional grid model is also higher, which not only improves the accuracy of the pad three-dimensional grid model, but also improves the efficiency of generating the pad three-dimensional grid model without manual operation, and the risk prediction after falling can be performed through the pad three-dimensional grid model, which can improve the accuracy of the risk prediction after falling.
[0087] In one embodiment, Figure 4 As shown, Figure 4 The present invention discloses a method for determining pad areas corresponding to a plurality of pads in a pad bottom surface according to a set of silk screen lines in an electronic device disclosed in an embodiment of the present invention. The method may include the following steps:
[0088] Step 410: randomly select a target silk screen line from the silk screen line set.
[0089] Optionally, the electronic device may use a random number generation function to generate a random index within an index size range corresponding to the silk screen line set, and select a corresponding silk screen line from the silk screen line set according to the generated random index as the target silk screen line.
[0090] Step 420 , determining a silk screen line group corresponding to the target silk screen line, where the silk screen lines included in the silk screen line group form a closed area.
[0091] Optionally, the electronic device may determine other silk screen lines associated with the target silk screen line, and add the target silk screen line and other silk screen lines to the silk screen line group corresponding to the target silk screen line. Optionally, the electronic device may first determine the closed area corresponding to the target silk screen line, and then determine the silk screen lines forming the closed area based on the closed area to obtain the silk screen line group corresponding to the target silk screen line.
[0092] In one embodiment, an electronic device can determine whether there is a first silk screen line connected to a target silk screen line in a silk screen line set. If there is no first silk screen line connected to the target silk screen line in the silk screen line set, the target silk screen line is added to the silk screen line group corresponding to the target silk screen line group. If there is at least one first silk screen line connected to the target silk screen line in the silk screen line set, the second silk screen line connected to the at least one first silk screen line is determined, and the target silk screen line, at least one first silk screen line and the second silk screen line are added to the silk screen line group corresponding to the target silk screen line group.
[0093] If the target silk screen line is a line segment, such as Figure 3-B The electronic device can determine the two endpoints of the target silk screen line, and based on the two endpoints, search for at least one first silk screen line connected to the target silk screen line in the silk screen line set. The two silk screen lines being connected can mean that the two silk screen lines have the same endpoints. The electronic device can continue to determine the two endpoints corresponding to each first silk screen line, and then search for a second silk screen line connected to at least the first silk screen line in the silk screen line set based on the two endpoints corresponding to each first silk screen line. If the target silk screen line is not a line segment, such as Figure 3-B The electronic device can determine that the target silk screen line can form a closed area, and there is no first silk screen line connected to the target silk screen line in the silk screen line set.
[0094] By implementing this embodiment, the electronic device can determine the silk screen lines that can form a closed area through the target silk screen lines, and obtain the silk screen line group corresponding to the target silk screen lines, thereby improving the accuracy of the determined silk screen line group, thereby improving the accuracy of determining the pad area through the silk screen line group.
[0095] Step 430 , determining a pad area within the pad bottom surface according to the silk screen lines included in the silk screen line group.
[0096] Since the surface where the silk screen lines are located is the same as the bottom surface of the pad, the electronic device can determine the closed area formed by the silk screen lines included in the silk screen line group, and use the closed area as the pad area within the bottom surface of the pad.
[0097] Step 440: Delete the silk screen lines included in the silk screen line group from the silk screen line set to obtain a new silk screen line set.
[0098] Step 450 , determining whether there are still silk screen lines in the silk screen line set, if so, executing step 410 , if not, executing step 460 .
[0099] Step 460, obtaining pad regions corresponding to the plurality of pads.
[0100] Among them, each silk screen line group can correspond to a pad area, and the electronic device can loop the above steps 410-440 to determine multiple silk screen line groups and corresponding pad areas until there are no silk screen lines in the silk screen line set, and multiple pad areas can be obtained, and the multiple pad areas correspond one-to-one to the multiple pads.
[0101] In an embodiment of the present application, the electronic device can randomly select a target silk screen line from a silk screen line set, determine a silk screen line group corresponding to the target silk screen line, the silk screen lines included in the silk screen line group form a closed area, determine the pad area within the bottom surface of the pad based on the silk screen lines included in the silk screen line group, delete the silk screen lines included in the silk screen line group from the silk screen line set, obtain a new silk screen line set, and re-execute the step of randomly selecting the target silk screen line from the silk screen line set until there are no silk screen lines in the silk screen line set to obtain pad areas corresponding to multiple pads respectively. The electronic device can automatically determine the pad areas corresponding to multiple pads respectively within the bottom surface of the pad without manual division. The method of dividing each pad area one by one also avoids the situation of missing pad areas, thereby improving the efficiency and accuracy of pad area division.
[0102] In one embodiment, Figure 5 As shown, Figure 5 1 is a flow chart of a method for determining a preset grid side length corresponding to a pad area of an electronic device disclosed in an embodiment of the present application. The method may include the following steps:
[0103] Step 510, determining whether the target pad area is in the edge area of the pad bottom surface; the target pad area is any pad area.
[0104] The edge area refers to an area near the border of the pad bottom surface. The electronic device can first obtain the position information of the target pad area, and determine whether the target pad area is in the edge area of the pad bottom surface according to the position information of the target pad area. The position information may include but is not limited to the border position, center position, vertex position, etc. of the target pad area.
[0105] Optionally, the edge region may include an area where the distance between the bottom surface of the pad and the border is within a preset distance range, such as the edge region may be an area within 2 grid units from the border of the pad plane. Optionally, the electronic device may determine whether the border of the target pad region coincides with the border of the bottom surface of the pad to determine whether the target pad region is an edge region.
[0106] As an optional implementation, the plane coordinate system corresponding to the bottom surface of the pad includes a first coordinate axis (x-axis) and a second coordinate axis (y-axis). The electronic device can obtain a first extreme value set corresponding to the target pad area, and determine whether the first extreme value set and the second extreme value set have the same extreme values. If the first extreme value set and the second extreme value set have the same extreme values, it is determined that the target pad area is in the edge area of the bottom surface of the pad; if the first extreme value set and the second extreme value set do not have the same extreme values, it is determined that the target pad area is not in the edge area of the bottom surface of the pad.
[0107] Among them, the first extreme value set includes the minimum and maximum values of the target pad area on the first coordinate axis and the minimum and maximum values of the target pad area on the second coordinate axis, and the second extreme value set may include the first minimum and second minimum values of multiple pad areas on the first coordinate axis and the second minimum and second maximum values on the second coordinate axis. The first extreme value set is used to characterize the boundary information corresponding to a single target pad area, and the second extreme value set is used to characterize the boundary information corresponding to multiple pad areas. When the first extreme value set and the second extreme value set have the same extreme value, it means that the target pad area has the same boundary with multiple pad areas. Therefore, the electronic device can determine that the target pad area is in the edge area within the bottom surface of the pad.
[0108] Optionally, the electronic device may also determine the edge direction of the target pad area based on the same extreme values existing in the first extreme value set and the second extreme value set, and the edge direction includes one or two of the left edge, the right edge, the upper edge, and the lower edge. For example, if the minimum value of the target pad area included in the first extreme value set on the first coordinate axis is the same as the first minimum value of the multiple pad areas that can be included in the second extreme value set on the first coordinate axis, then it is determined that the edge direction of the target pad area includes the left edge, and if the minimum value of the target pad area included in an extreme value set on the second coordinate axis is the same as the second minimum value of the multiple pad areas that can be included in the second extreme value set on the second coordinate axis, then it is determined that the edge direction of the target pad area includes the left edge and the upper edge.
[0109] By implementing this embodiment, the electronic device can quickly determine whether the target pad area is in the edge area of the pad bottom surface through simple extreme value comparison, thereby improving the efficiency of grid division.
[0110] Step 520: If the target pad area is in the edge area of the pad bottom surface, the preset first side length is determined as the preset grid side length corresponding to the target pad area.
[0111] Step 530: If the target pad area is not in the edge area of the pad bottom surface, the preset second side length is determined as the preset grid side length corresponding to the target pad area; the second side length is greater than the first side length.
[0112] It is understandable that because edge areas usually require more detailed mesh division to deal with complex boundary conditions and potential high stress concentration areas, the first side length can be a pre-set smaller mesh side length to provide higher accuracy, which can more accurately capture the geometric features and physical properties of the edge area, thereby improving the modeling accuracy and simulation effect of the pad area. Because non-edge areas usually do not require higher accuracy, the second side length can be a pre-set larger mesh side length to reduce the number of meshes in non-edge areas, thereby reducing the amount of calculation and storage requirements and improving calculation efficiency. By distinguishing between the first side length and the second side length, the accuracy of three-dimensional modeling can be guaranteed and the overall calculation efficiency can be improved.
[0113] In an embodiment of the present application, the electronic device can determine whether the target pad area is in the edge area within the bottom surface of the pad. When the target pad area is in the edge area within the bottom surface of the pad, the preset first side length is determined as the preset grid side length corresponding to the target pad area. When the target pad area is not in the edge area within the bottom surface of the pad, the preset first side length is determined as the preset grid side length corresponding to the target pad area, wherein the second side length is greater than the first side length, that is, the pad area in the edge area of the bottom surface of the pad has a shorter preset grid side length, and the pad three-dimensional grid model is also finer in the edge area. Since the main stress analysis in the drop analysis is in the edge area, because the cracking of the chip and the motherboard after the drop must start from the edge, improving the modeling precision in the edge area can improve the accuracy of the risk prediction after the drop, and the modeling precision requirement in the middle area can be lower than that in the edge area, thereby speeding up the device calculation speed and improving the efficiency of three-dimensional modeling.
[0114] In one embodiment, Figure 6 As shown, Figure 6 The present invention discloses a method for generating a three-dimensional mesh model of a chip body in an electronic device, which may include the following steps:
[0115] Step 610: Acquire the three-dimensional shape data of the target chip.
[0116] Among them, the three-dimensional shape data of the target chip can represent the regular shape information corresponding to the target chip. It can be understood that since the target chip includes a chip body, multiple pads, etc., the target chip is not a regular shape, and when the target chip is welded to the PCB, the real shape data of the target chip cannot be directly obtained. Therefore, the electronic device can obtain the three-dimensional shape data of the target chip, and the three-dimensional shape data can be used to represent the cuboid containing the target chip. The three-dimensional shape data may include the spatial position information of the length, width, and height of the target chip. Figure 7 As shown, Figure 7 Schematic diagram of the three-dimensional shape data and silk-screen lines of a target chip disclosed in an embodiment of the present application, wherein the three-dimensional shape data of the target chip represents a cuboid 710, and the dotted line below the cuboid 710 is a silk-screen line. Figure 7 In the example, the target chip is located on top of the PCB.
[0117] Step 620, determining a target height of the target chip and a chip top surface corresponding to the chip body according to the three-dimensional shape data, wherein the chip top surface is a plane area on the chip body that is parallel to the bottom surface of the pad and away from the bottom surface of the pad.
[0118] The chip top surface corresponding to the chip body may refer to the top surface of the chip body, and the electronic device may determine two plane areas parallel to the bottom surface of the pad according to the three-dimensional shape data, such as Figure 7 The electronic device can determine the plane area away from the bottom surface of the pad from the two plane areas corresponding to the top and bottom of the middle cuboid 710 as the chip top surface corresponding to the chip body, that is, the plane area corresponding to the top of the cuboid 710.
[0119] The electronic device can determine the first plane height value of the bottom surface of the pad and the second plane height value of the top surface of the chip according to the three-dimensional shape data of the target chip. The bottom surface of the pad and the top surface of the chip correspond to the upper and lower surfaces of the cuboid corresponding to the target chip, respectively. The electronic device can determine the minimum and maximum values of the target chip on the third coordinate axis (z axis) according to the three-dimensional shape data of the target chip, and subtract the minimum value of the target chip on the third coordinate axis from the maximum value of the target chip on the third coordinate axis to obtain the target height, and the third coordinate axis is perpendicular to the bottom surface of the pad and the top surface of the chip.
[0120] Step 630, determining the chip body height according to the target height and the pad height.
[0121] Since the target height is composed of the chip body height and the pad height, the electronic device can subtract the pad height from the target height to obtain the chip body height.
[0122] Step 640 , meshing the top surface of the chip to obtain a plurality of second two-dimensional meshes corresponding to the top surface of the chip.
[0123] The grid side length corresponding to the chip body may be a preset third side length.
[0124] Step 650 , generating a chip body three-dimensional mesh model according to the plurality of second two-dimensional meshes and the chip body height.
[0125] Optionally, the number of grid layers of the chip body three-dimensional grid model in the vertical direction (z-axis direction) may also be preset, and the specific generation method is not limited. Reference may be made to the generation method of the pad three-dimensional grid model in the above embodiment.
[0126] In order to connect the pad 3D mesh model and the chip body 3D mesh model, the electronic device needs to determine the first model generation direction corresponding to the plurality of pads and the second model generation direction corresponding to the chip body. It can be understood that the pad 3D mesh model corresponding to the plurality of pads is generated from the bottom surface of the pad, and the chip body 3D mesh model corresponding to the chip body is generated from the top surface of the chip. Therefore, the first model generation direction corresponding to the plurality of pads and the second model generation direction corresponding to the chip body can be opposite.
[0127] In one embodiment, the electronic device can determine the coordinate range corresponding to the target chip on the third coordinate axis according to the three-dimensional shape data, and determine the first model generation direction corresponding to the plurality of pads and the second model generation direction corresponding to the chip body according to the coordinate range and the bottom surface of the pad. The electronic device can thus generate a pad three-dimensional mesh model according to the plurality of first two-dimensional grids, the pad height and the first model generation direction, and can generate a chip body three-dimensional mesh model according to the plurality of second two-dimensional grids, the chip body height and the second model generation direction.
[0128] Among them, the coordinate range corresponding to the target chip on the third coordinate axis may include the minimum value and the maximum value of the target chip on the third coordinate axis. The electronic device can determine the median value corresponding to the target chip on the third coordinate axis according to the minimum value and the maximum value of the target chip on the third coordinate axis, and determine the first model generation direction corresponding to multiple pads and the second model generation direction corresponding to the chip body according to the median value corresponding to the target chip on the third coordinate axis and the coordinate value corresponding to the bottom surface of the pad on the third coordinate axis.
[0129] Optionally, if the median value corresponding to the target chip on the third coordinate axis is greater than the coordinate value corresponding to the bottom surface of the pad on the third coordinate axis, it means that the target chip is above the PCB, the first model generation direction corresponding to the multiple pads is the positive direction of the third coordinate axis, and the second model generation direction corresponding to the chip body is the negative direction of the third coordinate axis. If the median value corresponding to the target chip on the third coordinate axis is less than the coordinate value corresponding to the bottom surface of the pad on the third coordinate axis, it means that the target chip is below the PCB, the first model generation direction corresponding to the multiple pads is the negative direction of the third coordinate axis, and the second model generation direction corresponding to the chip body is the positive direction of the third coordinate axis. Figure 8 As shown, Figure 8 is a schematic diagram of a pad three-dimensional mesh model and a chip three-dimensional mesh model disclosed in an embodiment of the present application, Figure 8 The target chip in the figure is under the PCB, therefore, the pad three-dimensional mesh model 810 is above the target chip three-dimensional mesh model 820, the first model generation direction is the negative direction of the z-axis, and the second model generation direction is the positive direction of the z-axis.
[0130] By implementing this embodiment, the generation direction of the pad three-dimensional mesh model and the chip body three-dimensional mesh model can be determined without manually determining the generation direction, thereby improving the automation level of three-dimensional modeling.
[0131] In an embodiment of the present application, the electronic device can obtain the three-dimensional shape data of the target chip, and determine the chip top surface corresponding to the chip body based on the three-dimensional shape data, and then determine the chip body height based on the first plane height value of the bottom surface of the pad, the second plane height value of the chip top surface and the pad height, so that the chip top surface can be gridded to obtain multiple second two-dimensional grids corresponding to the chip top surface. The electronic device can generate a three-dimensional grid model of the chip body based on the multiple second two-dimensional grids and the chip body height. Through this embodiment, the electronic device does not need to input the chip body height in advance, but can analyze the chip top surface and the chip body height based on the three-dimensional shape data of the target chip and the pad height, thereby gridding the chip top surface and regenerating the chip body three-dimensional grid model, thereby realizing the automatic generation of the chip body three-dimensional grid model and improving the generation efficiency of the chip body three-dimensional grid model.
[0132] In one embodiment, the method for generating a mesh model provided in the embodiment of the present application can be run as a plug-in in Hypermesh, a batch file can be written based on the TCL language, and a user interaction interface can be developed based on the TCL / TK language. Fig. 9It is a schematic diagram of a user interaction interface disclosed in an embodiment of the present application, wherein the user can pre-enter information such as the pad edge grid side length, the pad center grid side length, and the pad height, wherein the pad edge grid side length is preset to 0.1, as the preset first side length in the above embodiment, the pad center grid side length is preset to 0.2, as the preset second side length in the above embodiment, the pad height is preset to 0.2. The steps in the above embodiment can be divided into 4 steps, corresponding to the 4 buttons in the user interaction interface, which are divided into "1. Chip top surface processing", "2. Pad bottom surface processing", "3. Two-dimensional grid division" and "4. Three-dimensional grid generation". The functions corresponding to the 4 buttons are not repeated in the embodiment of the present application, and the contents in the above embodiment are mainly referred to.
[0133] The user can trigger each button in sequence to generate a pad three-dimensional mesh model and a chip body three-dimensional mesh model, or the user can trigger the "one-button four-step" button so that the electronic device generates a pad three-dimensional mesh model and a chip body three-dimensional mesh model in one click according to the mesh model generation method provided in the embodiment of the present application. Through this method, the speed of model generation can be accelerated. For example, the 5 minutes required for manual modeling of a single chip can be reduced to 20 seconds required for automatic modeling of an electronic device. In addition, the user can set the pad edge mesh side length, pad center mesh side length, and pad height before division as required, thereby improving human-computer interactivity.
[0134] like Fig.10 As shown, Fig.10 1 is a modular schematic diagram of a grid model generation device disclosed in an embodiment of the present application. The grid model generation device 1000 may include an information acquisition module 1010, a region determination module 1020, a grid division module 1030 and a model generation module 1040, wherein:
[0135] An information acquisition module 1010 is used to acquire a pad bottom surface and a silk screen line set corresponding to a target chip, wherein the target chip includes a chip body and a plurality of pads;
[0136] The area determination module 1020 is used to determine the pad areas corresponding to the plurality of pads in the pad bottom surface according to the silk screen line set;
[0137] A grid division module 1030, configured to perform grid division on each pad region according to a preset grid side length corresponding to each pad region, to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad;
[0138] The model generation module 1040 is used to generate a pad three-dimensional grid model according to the plurality of first two-dimensional grids and pad heights.
[0139] In one embodiment, the area determination module 1020 is also used to randomly select a target silk screen line from the silk screen line set; determine a silk screen line group corresponding to the target silk screen line, the silk screen lines included in the silk screen line group form a closed area; determine a pad area within the bottom surface of the pad based on the silk screen lines included in the silk screen line group; delete the silk screen lines included in the silk screen line group from the silk screen line set to obtain a new silk screen line set, and re-execute the step of randomly selecting a target silk screen line from the silk screen line set until there are no silk screen lines in the silk screen line set to obtain pad areas corresponding to multiple pads.
[0140] In one embodiment, the area determination module 1020 is also used to add the target silk screen line to the silk screen line group corresponding to the target silk screen line group if there is no first silk screen line connected to the target silk screen line in the silk screen line set; if there is at least one first silk screen line connected to the target silk screen line, determine the second silk screen line connected to the at least one first silk screen line, and add the target silk screen line, at least one first silk screen line and the second silk screen line to the silk screen line group corresponding to the target silk screen line group.
[0141] In one embodiment, the grid division module 1030 is also used to determine whether the target pad area is in the edge area within the bottom surface of the pad; the target pad area is any pad area; if the target pad area is in the edge area within the bottom surface of the pad, the preset first side length is determined as the preset grid side length corresponding to the target pad area; if the target pad area is not in the edge area within the bottom surface of the pad, the preset second side length is determined as the preset grid side length corresponding to the target pad area; the second side length is greater than the first side length.
[0142] In one embodiment, the plane coordinate system corresponding to the bottom surface of the pad includes a first coordinate axis and a second coordinate axis; the grid division module 1030 is also used to obtain a first extreme value set corresponding to the target pad area, the first extreme value set including the minimum value and maximum value of the target pad area on the first coordinate axis, and the minimum value and maximum value of the target pad area on the second coordinate axis; determine whether the first extreme value set and the second extreme value set have the same extreme values; the second extreme value set includes the first minimum value and the first maximum value of multiple pad areas on the first coordinate axis and the second minimum value and the second maximum value on the second coordinate axis; if the first extreme value set and the second extreme value set have the same extreme value, it is determined that the target pad area is in the edge area within the bottom surface of the pad; if the first extreme value set and the second extreme value set do not have the same extreme value, it is determined that the target pad area is not in the edge area within the bottom surface of the pad.
[0143] In one embodiment, the grid model generating device 1000 may further include a chip body modeling module for acquiring three-dimensional shape data of a target chip; determining a target height of the target chip and a chip top surface corresponding to the chip body based on the three-dimensional shape data, wherein the chip top surface is a plane area on the chip body that is parallel to the bottom surface of the pad and away from the bottom surface of the pad; determining the chip body height based on the target height and the pad height; gridding the chip top surface to obtain a plurality of second two-dimensional grids corresponding to the chip top surface; and generating a chip body three-dimensional grid model based on the plurality of second two-dimensional grids and the chip body height.
[0144] In one embodiment, the chip body modeling module is also used to determine the coordinate range corresponding to the target chip on the third coordinate axis according to the three-dimensional shape data; the third coordinate axis is perpendicular to the top surface of the chip; according to the coordinate range and the bottom surface of the pad, the first model generation direction corresponding to the multiple pads and the second model generation direction corresponding to the chip body are determined; the first model generation direction and the second model generation direction are in opposite directions; the model generation module 1040 is also used to generate a pad three-dimensional grid model according to multiple first two-dimensional grids, the pad height and the first model generation direction; the chip body modeling module is also used to generate a chip body three-dimensional grid model according to multiple second two-dimensional grids, the chip body height and the second model generation direction.
[0145] In an embodiment of the present application, a sub-device can obtain a pad bottom surface and a silk screen line set corresponding to a target chip, the target chip includes a chip body and a plurality of pads, and according to the silk screen line set, pad areas corresponding to the plurality of pads can be determined in the pad bottom surface, and each pad area can be grid-divided according to the preset grid side length corresponding to each pad area, to obtain a plurality of first and second grids corresponding to the pad bottom surface, and generate a pad three-dimensional grid model according to the plurality of first and second grids and the pad height. By implementing this embodiment, an electronic device can determine a pad area through a silk screen line set, avoiding errors in the determined pad area caused by manual operation, and each pad area corresponds to a preset grid side length, and the plurality of first and second grids divided according to the preset grid side length are more accurate, so that the accuracy of the generated pad three-dimensional grid model is also higher, which not only improves the accuracy of the pad three-dimensional grid model, but also improves the efficiency of generating the pad three-dimensional grid model without manual operation, and the risk prediction after falling is performed through the pad three-dimensional grid model, which can improve the accuracy of the risk prediction after falling.
[0146] like Fig.11 As shown, in one embodiment, an electronic device is provided, which may include:
[0147] A memory 1110 storing executable program codes;
[0148] a processor 1120 coupled to the memory 1110;
[0149] The processor 1120 calls the executable program code stored in the memory 1110 to implement the method for generating the grid model provided in the above embodiments.
[0150] The memory 1110 may include a random access memory (RAM) or a read-only memory (ROM). The memory 1110 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1110 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The data storage area may also store data created by the electronic device during use, etc.
[0151] The processor 1120 may include one or more processing cores. The processor 1120 uses various interfaces and lines to connect various parts of the entire electronic device, and executes various functions of the electronic device and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1110, and calling data stored in the memory 1110. Optionally, the processor 1120 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1120 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 1120, but may be implemented separately through a communication chip.
[0152] It is understandable that the electronic device may include more or fewer structural elements than those in the above structural block diagram, for example, a power module, physical buttons, a WiFi (Wireless Fidelity) module, a speaker, a Bluetooth module, a sensor, etc., and no limitation is made here.
[0153] An embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program enables a computer to execute the methods described in the above embodiments.
[0154] In addition, an embodiment of the present application further discloses a computer program product. When the computer program product is run on a computer, the computer can execute all or part of the steps in any one of the grid model generation methods described in the above embodiments.
[0155] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0156] The above is a detailed introduction to a method, device, electronic device and storage medium for generating a grid model disclosed in an embodiment of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for generating a mesh model, characterized in that: include: Acquire a pad bottom surface and a silk screen line set corresponding to a target chip, wherein the target chip includes a chip body and a plurality of pads; Determining pad regions corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set; Divide each of the pad regions into grids according to the preset grid side lengths corresponding to each of the pad regions to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad; A pad three-dimensional mesh model is generated according to the plurality of first two-dimensional meshes and the pad height.
2. The method according to claim 1, characterized in that The step of determining pad areas corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set includes: Randomly selecting a target silk screen line from the silk screen line set; Determine a silk screen line group corresponding to the target silk screen line, the silk screen lines included in the silk screen line group form a closed area; Determine a pad area within the pad bottom surface according to the silk screen lines included in the silk screen line group; The silk screen lines included in the silk screen line group are deleted from the silk screen line set to obtain a new silk screen line set, and the step of randomly selecting the target silk screen lines from the silk screen line set is re-executed until there are no silk screen lines in the silk screen line set to obtain the pad areas corresponding to the multiple pads respectively.
3. The method according to claim 2, characterized in that The step of determining the silk screen line group corresponding to the target silk screen line includes: If there is no first silk screen line connected to the target silk screen line in the silk screen line set, adding the target silk screen line to the silk screen line group corresponding to the target silk screen line group; If there is at least one first silk screen line connected to the target silk screen line, determine the second silk screen line connected to the at least one first silk screen line, and add the target silk screen line, the at least one first silk screen line and the second silk screen line to the silk screen line group corresponding to the target silk screen line group.
4. The method according to claim 1, characterized in that: Before meshing each of the pad regions according to the preset grid side lengths corresponding to each of the pad regions to obtain a plurality of first two-dimensional grids corresponding to the pad bottom surface, the method further includes: Determine whether the target pad area is in the edge area of the pad bottom surface; the target pad area is any pad area; If the target pad area is in the edge area of the pad bottom surface, the preset first side length is determined as the preset grid side length corresponding to the target pad area; If the target pad area is not in the edge area of the pad bottom surface, the preset second side length is determined as the preset grid side length corresponding to the target pad area; the second side length is greater than the first side length.
5. The method according to claim 4, characterized in that The plane coordinate system corresponding to the bottom surface of the pad includes a first coordinate axis and a second coordinate axis; the step of determining whether the target pad area is in the edge area of the bottom surface of the pad includes: Acquire a first extreme value set corresponding to a target pad area, wherein the first extreme value set includes a minimum value and a maximum value of the target pad area on the first coordinate axis and a minimum value and a maximum value of the target pad area on the second coordinate axis; Determine whether the first extreme value set and the second extreme value set have the same extreme value; the second extreme value set includes the first minimum value and the first maximum value of the plurality of pad areas on the first coordinate axis and the second minimum value and the second maximum value on the second coordinate axis; If the first extreme value set and the second extreme value set have the same extreme value, determining that the target pad area is in the edge area of the pad bottom surface; If the first extreme value set and the second extreme value set do not have the same extreme value, it is determined that the target pad area is not in the edge area of the pad bottom surface.
6. The method according to claim 1, characterized in that The method further comprises: Acquire three-dimensional shape data of the target chip; Determine, according to the three-dimensional shape data, a target height of the target chip and a chip top surface corresponding to the chip body, wherein the chip top surface is a plane area on the chip body that is parallel to the bottom surface of the pad and away from the bottom surface of the pad; Determining the chip body height according to the target height and the pad height; Performing grid division on the top surface of the chip to obtain a plurality of second two-dimensional grids corresponding to the top surface of the chip; A chip body three-dimensional mesh model is generated according to the plurality of second two-dimensional meshes and the chip body height.
7. The method according to claim 6, characterized in that The method further comprises: Determine, according to the three-dimensional shape data, a coordinate range corresponding to the target chip on a third coordinate axis; the third coordinate axis is perpendicular to the top surface of the chip; Determine, according to the coordinate range and the bottom surface of the pad, a first model generation direction corresponding to the plurality of pads and a second model generation direction corresponding to the chip body; the first model generation direction and the second model generation direction are opposite directions; Generating a pad three-dimensional grid model according to the plurality of first two-dimensional grids and pad heights includes: Generate a pad three-dimensional mesh model according to the plurality of first two-dimensional meshes, pad height and the first model generation direction; The step of generating a three-dimensional grid model of the chip body according to the plurality of second two-dimensional grids and the chip body height comprises: A chip body three-dimensional mesh model is generated according to the plurality of second two-dimensional meshes, the chip body height and the second model generation direction.
8. A device for generating a grid model, characterized in that: include: An information acquisition module, used to acquire a pad bottom surface and a silk screen line set corresponding to a target chip, wherein the target chip includes a chip body and a plurality of pads; An area determination module, used for determining pad areas corresponding to the plurality of pads respectively within the pad bottom surface according to the silk screen line set; A grid division module, used for performing grid division on each of the pad regions according to a preset grid side length corresponding to each of the pad regions, to obtain a plurality of first two-dimensional grids corresponding to the bottom surface of the pad; The model generation module is used to generate a three-dimensional grid model of the pad according to the multiple first two-dimensional grids and the pad height.
9. An electronic device, characterized in that: include: A memory storing executable program code; a processor coupled to the memory; The processor calls the executable program code stored in the memory to execute the method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.
