Plug-in class package and 3D model cross check method and system based on 3D model
By using a plug-in class encapsulation based on 3D models and a cross-checking method with 3D models, the matching degree between the encapsulated model and the 3D model is automatically verified, solving the problems of low efficiency and large error in manual verification in existing technologies, and realizing efficient and accurate automated verification.
Patent Information
- Application Number
- CN202411348924.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In existing technologies, the matching degree verification between the encapsulated model and the 3D model mainly relies on manual methods, which suffers from large errors and low efficiency.
A plug-in class encapsulation based on 3D models and a cross-checking method for 3D models are adopted. By generating a preprocessed 3D model and encapsulating the preprocessed 3D model, Boolean operations and geometric information comparison are used to automatically verify the matching degree between the two.
It achieves efficient and accurate automated verification, avoids errors in manual operation, improves verification efficiency and accuracy, and ensures the reproducibility and traceability of results.
Smart Images

Figure CN119378201A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a method and system for cross-checking a plug-in class package and a 3D model based on a 3D model. Background Art
[0002] With the advancement of technology, the electronic design process has expanded to include stages such as digital prototype design, electromechanical collaborative design, and simulation design. In this process, manufacturers need to deal with multiple data types, including symbol models, package models, and 3D models. In particular, 3D models are becoming increasingly important in electronic design, resulting in a rapid increase in the number of 3D models of electronic components. For manufacturers, preparing accurate symbol models, package models, and 3D models is a difficult task. The package model is closely related to the 3D model and is usually designed based on the contact surface between the 3D model and the PCB board and related standards.
[0003] Due to the surge in the number of 3D models, ensuring the accuracy of the package model and the 3D model, especially quickly verifying the matching degree of the two, has become a major challenge for manufacturers. At present, most manufacturers use manual methods: manually measuring the dimensions of the package model in EDA (electronic design automation) software, measuring the dimensions of the 3D model in CAD (computer-aided design) software, and then manually comparing these dimensional data to determine whether they match. This method has the following defects: manually obtaining the package model dimensional data is prone to errors; manually obtaining the 3D model dimensional data is also prone to errors; manually comparing the dimensional data of the package model and the 3D model is prone to errors; the manual processing process is inefficient and time-consuming.
[0004] In other words, the current manual inspection methods are obviously insufficient in accuracy and efficiency and cannot meet the needs of the rapidly developing electronic design industry. Therefore, the industry urgently needs a more automated, precise and efficient solution to verify the accuracy of package models and 3D models. Summary of the invention
[0005] In order to overcome the deficiencies of the prior art, the present invention provides a cross-check method between a plug-in class package and a 3D model based on a 3D model, so as to solve the problem of low efficiency of manual comparison of package models in the prior art.
[0006] One of the embodiments of the present invention provides a cross-check method between a plug-in class package and a 3D model based on a 3D model, comprising the following steps: importing a 3D model, creating a cube in an inspection system, wherein the bottom of the cube overlaps and is stretched with an XY plane, taking an intersection with the cube and an original 3D model, and generating a preprocessed 3D model; generating a preprocessed 3D model of the package, receiving a plug-in class package file, extracting geometric information of a surface copper layer, drawing the geometric information into a DXF graphic, stretching the DXF graphic along the positive direction of the Z axis, and generating a package preprocessed 3D model; comparing the preprocessed 3D model with the package preprocessed 3D model, and outputting a comparison result.
[0007] In one embodiment, the preprocessed 3D model generation further includes the following steps: generating a preprocessed 3D model; returning the geometric center point coordinates of each independent entity intersecting the connector with the XY plane projected onto the XY plane and the area of each entity projected onto the XY plane.
[0008] In one embodiment, the package preprocessing 3D model generation also includes the following steps: generating a preprocessing 3D model of the package, identifying and extracting geometric features of connector holes; traversing the preprocessed 3D model to identify all connector holes; and calculating the geometric center point coordinates and area of the holes.
[0009] In one embodiment, a 3D model file is input into a plug-in class 3D model graphics preprocessing module; in a CAD environment, the XY plane is stretched in the positive direction of the Z axis by a specified value to form a cube StepXY; a Boolean operation is performed on the input 3D model file and StepXY, and the intersection is taken to form a preprocessed 3D model StepUN; it is determined whether the input IsThrough is a connector; each entity of StepUN is projected onto the XY plane to form a two-dimensional graphic, which is recorded as DxfStepUN[a1,…,an ]; calculate the coordinate center values XY1, XY2, …, XYn of each an figure in DxfStepUN[a1, …, an], recorded as ArrCXY[XY1, XY2, …, XYn]; calculate the area S1, S2, …, Sn of each an figure in DxfStepUN[a1, …, an], recorded as SquareC[S1, S2, …, Sn]; the plug-in class 3D model graphics preprocessing module outputs the StepUN model, outputs [ArrCXY] and [SquareC].
[0010] In one of the embodiments, generating a package preprocessing 3D model also includes the following steps: inputting a package file; extracting a graphic from the surface copper layer of the package, and outputting the extracted graphic to a two-dimensional graphic file such as Dxf; stretching the two-dimensional graphic file Dxf in the positive direction of the Z axis by a certain value to form a 3D model; extracting closed graphics in Dxf one by one, recorded as Dxf[a1,…,an]; calculating the coordinate center value XY1, XY2,…,XYn of each an graphic in Dxf[a1,…,an], recorded as ArrDXY[XY1,XY2,…,XYn]; calculating the area S1,S2,…,Sn of each an graphic in Dxf[a1,…,an], recorded as SquareD[S1,S2,…,Sn]; the plug-in class package graphic preprocessing module outputs the StepDxf model, and outputs [ArrDXY] and [SquareD].
[0011] In one of the embodiments, the following steps are also included: comparing the StepUN, StepDxf, [SquareC], [SquareD], [ArrCXY], [ArrDXY], and input plug-in class encapsulation graphics with the 3D model graphics module; recording the input StepUN as 3DModelA, recording the input StepDxf as 3DModelB, performing Boolean operation on 3DModelA and 3DModelB, taking the intersection, and obtaining 3DModelC. Calculate the volume of 3DModelC, recorded as 3DVolumeC; calculate the volume of 3DModelA, recorded as 3DVolumeA; determine whether the difference between 3DVolumeA and 3DVolumeC is less than the input value. If the difference between 3DVolumeA and 3DVolume is greater than the input value, the plug-in class package graphics and 3D model graphics comparison module outputs a Fail result; when the difference between 3DVolumeA and 3DVolumeC is less than the input value, compare the values of SquareC and SquareD one by one to determine whether the difference between each is less than the input value. If the values of SquareC and SquareD are compared one by one, and the difference between each is greater than the input value, the plug-in class package graphics and 3D model graphics comparison module outputs a Fail result; when the difference between 3DVolumeA and 3DVolumeC is less than the input value, compare SquareC and SquareD one by one, and the difference between each is greater than the input value. The values of areC and SquareD, each of which has a difference value less than the input value, are compared one by one with the values of [ArrCXY] and [ArrDXY] to determine whether each of which has a difference value less than the input value. If the values of [ArrCXY] and [ArrDXY] are compared one by one, each of which has a difference value less than the input value, the plug-in class package graphics and 3D model graphics comparison module outputs a Pass result; when the difference between 3DVolumeA and 3DVolumeC is less than the input value, the values of SquareC and SquareD are compared one by one, each of which has a difference value less than the input value, are compared one by one with the values of [ArrCXY] and [ArrDXY] to determine whether each of which has a difference value less than the input value. If the values of [ArrCXY] and [ArrDXY] are compared one by one, each of which has a difference value greater than the input value, the plug-in class package graphics and 3D model graphics comparison module outputs a Warning result.
[0012] In one embodiment, the initial value of the input value is set to 0.0001.
[0013] The present invention also provides an embodiment, a cross-check system of a plug-in class package and a 3D model based on a 3D model, applying any cross-check method of a plug-in class package and a 3D model based on a 3D model, including a plug-in class 3D model graphics preprocessing module, a plug-in class package graphics preprocessing module, and a plug-in class package graphics and 3D model graphics comparison module. The plug-in class 3D model graphics preprocessing module includes importing a 3D model, creating a cube in the inspection system, the bottom of the cube overlaps and stretches with the XY plane, and taking the intersection of the cube and the original 3D model to generate a preprocessed 3D model; the plug-in class package graphics preprocessing module includes receiving the 3 generated package preprocessed 3D model, receiving the plug-in class package file, extracting the geometric information of the surface copper layer, drawing the geometric information into a DXF graphic, and stretching the DXF graphic along the positive direction of the Z axis to generate a package preprocessed 3D model; the plug-in class package graphics and 3D model graphics comparison module includes comparing the preprocessed 3D model with the package preprocessed 3D model and outputting the comparison result.
[0014] In one of the embodiments, the plug-in class 3D model graphics preprocessing module also includes generating a preprocessed 3D model; returning the coordinates of the geometric center point of each independent entity where the connector intersects with the XY plane projected onto the XY plane and the area of each entity projected onto the XY plane.
[0015] In one embodiment, the 3D model graphics preprocessing module includes: generating a preprocessed 3D model; determining whether the 3D model is a connector; if it is a connector, it is also necessary to return the coordinates of the geometric center point of each independent entity where the connector intersects with the XY plane projected onto the XY plane, as well as the area of each entity projected onto the XY plane.
[0016] In one embodiment, the package graphics preprocessing module includes generating a preprocessed 3D model of the package; if the preprocessed 3D model is a connector, returning the coordinates of the geometric center point of the connector hole and the area of each hole to record the coordinate array as ArrDXY.
[0017] In one embodiment, the package graphic and 3D model graphic comparison module also includes: 3D generating a preprocessed 3D model of the package, identifying and extracting geometric features of connector holes; traversing the preprocessed 3D model to identify all connector holes; and calculating the geometric center point coordinates and area of the hole.
[0018] The plug-in encapsulation based on 3D model and the cross-check method and system of 3D model provided in the above embodiment have the following beneficial effects:
[0019] (1) The plug-in class 3D model graphics preprocessing module and plug-in class package graphics preprocessing module provided by the present invention enable the dimensional data of the plug-in class package model to be represented by a 3D model and the dimensional data of the 3D model to be represented by a 3D model in an automatic manner. This method of automatically extracting the 3D model representation data avoids the mistakes that would be made by manual acquisition. Automated processing greatly improves efficiency.
[0020] (2) The present invention uses a plug-in-type encapsulated graphics and 3D model graphics comparison module, and effectively avoids manual errors by comparing the coordinates and sizes of the 3D model and the holes. It ensures that the results of each comparison are reproducible and traceable, and can effectively avoid data errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0022] Figure 1 A working step diagram of a plug-in class encapsulation and 3D model cross-checking method based on a 3D model provided in the first embodiment of the present invention;
[0023] Figure 2 A block diagram of a plug-in class encapsulation and a cross-check system of a 3D model based on an embodiment of the present invention;
[0024] Figure 3 A flowchart of a plug-in 3D model graphics preprocessing module provided in one embodiment of the present invention;
[0025] Figure 4 A flowchart of a plug-in class encapsulating a graphics preprocessing module provided by an embodiment of the present invention; Figure 5 A flowchart of a plug-in class encapsulation graphics and 3D model graphics comparison module provided in one embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0028] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features limited to "first" and "second" may explicitly or implicitly include at least one of the features. In addition, if "and / or" or "and / or" appears in the full text, its meaning includes three parallel solutions. Taking "A and / or B" as an example, it includes solution A, solution B, or solutions that satisfy both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0029] Example 1
[0030] refer to Figure 1 One of the embodiments of the present invention provides a cross-check method between a plug-in class package and a 3D model based on a 3D model, comprising the following steps: importing a 3D model, creating a cube in an inspection system, wherein the bottom of the cube overlaps with and is stretched on an XY plane, taking an intersection of the cube and an original 3D model to generate a preprocessed 3D model; generating a preprocessed 3D model of the package, receiving a plug-in class package file, extracting geometric information of a surface copper layer, drawing the geometric information into a DXF graphic, stretching the DXF graphic along the positive direction of the Z axis to generate a package preprocessed 3D model; comparing the preprocessed 3D model with the package preprocessed 3D model, and outputting a comparison result.
[0031] In one embodiment, the preprocessed 3D model generation further includes the following steps: generating a preprocessed 3D model; returning the geometric center point coordinates of each independent entity intersecting the connector with the XY plane projected onto the XY plane and the area of each entity projected onto the XY plane.
[0032] In one embodiment, the package preprocessing 3D model generation also includes the following steps: generating a preprocessing 3D model of the package, identifying and extracting geometric features of connector holes; traversing the preprocessed 3D model to identify all connector holes; and calculating the geometric center point coordinates and area of the holes.
[0033] Example 2
[0034] refer to Figure 2-Figure 5 The present invention also provides an embodiment, a cross-check system of a plug-in class package and a 3D model based on a 3D model, applying any cross-check method of a plug-in class package and a 3D model based on a 3D model, including a plug-in class 3D model graphics preprocessing module, a plug-in class package graphics preprocessing module, and a plug-in class package graphics and 3D model graphics comparison module. The plug-in class 3D model graphics preprocessing module includes importing a 3D model, creating a cube in the inspection system, the bottom of the cube overlaps and stretches with the XY plane, and taking an intersection with the cube and the original 3D model to generate a preprocessed 3D model; the plug-in class package graphics preprocessing module includes receiving the 3 generated package preprocessed 3D model, receiving the plug-in class package file, extracting the geometric information of the surface copper layer, drawing the geometric information into a DXF graphic, and stretching the DXF graphic along the positive direction of the Z axis to generate a package preprocessed 3D model; the plug-in class package graphics and 3D model graphics comparison module includes comparing the preprocessed 3D model with the package preprocessed 3D model and outputting the comparison result.
[0035] The working steps of the system are: developing a plug-in class 3D model graphics preprocessing module, a plug-in class encapsulation graphics preprocessing module, and a plug-in class encapsulation graphics and 3D model graphics comparison module. Finally, a cross-check system of plug-in class encapsulation and 3D model based on 3D model is formed. A 3D model file is input to the cross-check system of plug-in class encapsulation and 3D model based on 3D model, including but not limited to step format. A package file is input to the cross-check system of plug-in class encapsulation and 3D model based on 3D model, including but not limited to kicad_mod format. The system finally outputs three results: Pass, Warning, and Fail.
[0036] The plug-in class 3D model graphics preprocessing module also includes generating a preprocessed 3D model; returning the geometric center point coordinates of each independent entity where the connector intersects with the XY plane projected onto the XY plane and the area of each entity projected onto the XY plane.
[0037] The package graphic preprocessing module includes generating a preprocessed 3D model of the package; if the preprocessed 3D model is a connector, returning the coordinates of the geometric center point of the connector hole and the area of each hole to record the coordinate array as ArrDXY.
[0038] The package graphic and 3D model graphic comparison module also includes: 3D generating a pre-processed 3D model of the package, identifying and extracting geometric features of the connector holes; traversing the pre-processed 3D model to identify all connector holes; and calculating the geometric center point coordinates and area of the holes.
[0039] In the 3D model file is input into the plug-in class 3D model graphics preprocessing module; in the CAD environment, the XY plane is stretched to the positive direction of the Z axis by a specified value to form a cube StepXY; the input 3D model file and StepXY are Boolean operated, and the intersection is obtained to form a preprocessed 3D model StepUN; it is determined whether the input IsThrough is a connector; each entity of StepUN is projected onto the XY plane to form a two-dimensional graphic, recorded as DxfStepUN[a1,…,an]; calculation The coordinate center values XY1, XY2, …, XYn of each an figure in DxfStepUN[a1, …, an] are recorded as ArrCXY[XY1, XY2, …, XYn]; the area S1, S2, …, Sn of each an figure in DxfStepUN[a1, …, an] are calculated, recorded as SquareC[S1, S2, …, Sn]; the plug-in class 3D model graphics preprocessing module outputs the StepUN model, and outputs [ArrCXY] and [SquareC].
[0040] In one of the embodiments, generating a package preprocessing 3D model also includes the following steps: the first 3D model is called model A, and the second 3D model is called model B. An intersection operation is performed on model A and model B to obtain model C. The volumes of model A and model C are calculated respectively. If the volume difference between model A and model C is less than 0.0001, they are considered to be consistent in volume and marked as True; otherwise, they are marked as False. According to the result of the previous step, if the volume comparison fails, the overall comparison fails; if successful, proceed to the next step. When the volume comparison is successful, the entity coordinates and area of model A are recorded and arranged in ascending order on the X-axis and Y-axis. Similarly, the hole coordinates and area of model B are recorded and arranged in ascending order on the X-axis and Y-axis. Compare the area differences between model A and model B. If the difference in each area is less than 0.001, the area comparison is successful and marked as True; otherwise, it is marked as False. If the area comparison fails, the overall comparison fails; if successful, proceed to the next step. When the area comparison is successful, the coordinate difference between model A and model B is compared. If the difference between the X and Y values of each coordinate is less than 0.001, the coordinate comparison is successful and marked as True; otherwise, it is marked as False. If the coordinate comparison is successful, the overall comparison result is passed; if there is a difference in the comparison but it is not large, the result is a warning.
[0041] The working steps in the system are: Component package graphics and 3D model graphics comparison module: The input of the plug-in package graphics and 3D model graphics comparison module is A: the preprocessed 3D model generated by the plug-in 3D model graphics preprocessing module, B: the package preprocessed 3D model generated by the plug-in package graphics preprocessing module, input C: the geometric center point coordinates of each independent entity that intersects the connector and the XY plane projected onto the XY plane, and the area of each entity projected onto the XY plane, D: the geometric center point coordinates of the plug-in hole, and the area of each hole. The comparison method of the package graphics and 3D model graphics comparison module is as follows:
[0042] I: The 3D model of input A is recorded as 3DModelA;
[0043] II: The 3D model of input B is denoted as 3DModelB;
[0044] III: Perform intersection operation on 3DModelA and 3DModelB to obtain 3DModelC;
[0045] IV: Calculate the volume of 3DModelA as 3DVolumeA;
[0046] V: Calculate the volume of 3DModelC as 3DVolumeC;
[0047] VI: If the difference between 3DVolumeA and 3DVolumeC is less than the input value (initial 0.0001) by 0.0001, the output 3DBoolean is True, otherwise it is False;
[0048] VII: The output result of the package graphics and 3D model graphics comparison module refers to the result of 3DBoolean. If 3DBoolean is False, the output result of the package graphics and 3D model graphics comparison module is Fail; if 3DBoolean is True, proceed to the next step;
[0049] VIII: If 3DBoolean is True, the coordinate values of input C are recorded, increasing from the X axis to the large axis, and the embedded Y axis to the large axis, and the coordinate array is recorded as ArrCXY[XY1, XY2, ... XYn] and the corresponding area SquareC[S1, S2, ... Sn];
[0050] IX: If 3DBoolean is True, the coordinate values of input D are recorded, increasing from the X axis to the large axis, and the embedded Y axis to the large axis, and the coordinate array is recorded as ArrDXY[XY1, XY2, ... XYn] and the corresponding area SquareD[S1, S2, ... Sn];
[0051] X: If 3DBoolean is True, compare the values of SquareC and SquareD one by one. If the difference of each Sn is less than the input value (the initial value is 0.001), the output HoleSqBoolean is True, otherwise it is False;
[0052] XI: If 3DBoolean is True, the output result of the package graphics and 3D model graphics comparison module refers to the result of HoleSqBoolean. If HoleSqBoolean is False, the output result of the package graphics and 3D model graphics comparison module is Fail. If HoleSqBoolean is True, proceed to the subsequent further judgment.
[0053] XII: If 3DBoolean is True and HoleSqBoolean is True, start comparing ArrCXY and ArrDXY. Compare the values of ArrCXY and ArrDXY one by one. If the difference between the X and Y coordinates of each XYn is less than the input value (the initial value is 0.001), the output HoleArrBoolean is True, otherwise it is False;
[0054] XIV: If 3DBoolean is True and HoleSqBoolean is True, the output result of the package graphics and 3D model graphics comparison module refers to the result of HoleArrBoolean. If HoleArrBoolean is True, the output result of the package graphics and 3D model graphics comparison module is Pass; if HoleArrBoolean is False, the output result of the package graphics and 3D model graphics comparison module is Warning.
[0055] The process is to first compare the volumes of the two 3D models. If they are consistent, then compare the areas of their entities and holes, and finally compare the coordinates. If all comparisons pass, the overall comparison is successful; if there are warnings or failures, the corresponding results are output according to the specific situation.
[0056] The embodiment provided by the present invention has the following beneficial effects through a cross-check method and system of plug-in class encapsulation and 3D model based on 3D model: the plug-in class 3D model graphics preprocessing module and plug-in class encapsulation graphics preprocessing module provided by the present invention enable the dimensional data of the plug-in class encapsulation model to be represented by a 3D model and the dimensional data of the 3D model to be represented by a 3D model in an automatic manner. This method of automatically extracting the 3D model representation data avoids the mistakes that would be made by manual acquisition. Automated processing greatly improves efficiency. The present invention effectively avoids manual mistakes through a plug-in class encapsulation graphics and 3D model graphics comparison module, by comparing the coordinates and dimensions of the 3D model, the hole one by one. It ensures that the results of each comparison are reproducible and traceable, which can effectively avoid data errors.
[0057] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A cross-check method between a plug-in class package and a 3D model based on a 3D model, comprising the following steps: Importing the 3D model, creating a cube in the inspection system, wherein the bottom of the cube overlaps with the XY plane and is stretched, and the cube and the original 3D model are intersected to generate a pre-processed 3D model; Generate a pre-processed 3D model of the package, receive a plug-in package file, extract geometric information of the surface copper layer, draw the geometric information into a DXF graphic, stretch the DXF graphic along the positive direction of the Z axis, and generate a pre-processed 3D model of the package; The preprocessed 3D model is compared with the packaged preprocessed 3D model, and a comparison result is output.
2. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 1, characterized in that: The pre-processing 3D model generation also includes the following steps: Generate preprocessed 3D model; Returns the coordinates of the geometric center point of each independent entity that intersects the connector with the XY plane and the area of each entity projected onto the XY plane.
3. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 1, characterized in that: The package preprocessing 3D model generation also includes the following steps: Generate a pre-processed 3D model of the package, identify and extract the geometric features of the connector holes; Traverse the preprocessed 3D model and identify all connector holes; calculate the coordinates and area of the geometric center point of the hole.
4. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 2, characterized in that: Also includes, Input the 3D model file into the plug-in class 3D model graphics preprocessing module; In the CAD environment, the XY plane is stretched in the positive direction of the Z axis by a specified value to form a cube StepXY; the input 3D model file is subjected to Boolean operation with StepXY, and the intersection is obtained to form a pre-processed 3D model StepUN; Determine whether the input IsThrough is a connector; Project each StepUN entity onto the XY plane to form a two-dimensional graph, denoted as DxfStepUN[a1,…,an]; Calculate the coordinate center values XY1, XY2, ..., XYn of each figure an in DxfStepUN[a1, ..., an], recorded as ArrCXY[XY1, XY2, ..., XYn]; Calculate the area S1, S2, …, Sn of each figure an in DxfStepUN[a1, …, an], recorded as SquareC[S1, S2, …, Sn]; The plug-in class 3D model graphics preprocessing module outputs the StepUN model, outputs [ArrCXY] and [SquareC].
5. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 1, characterized in that: Generating the package preprocessing 3D model also includes the following steps: Input package file; Extract graphics from the copper layer of the package, and output the extracted graphics to a two-dimensional graphics file such as Dxf; Stretch the 2D graphic file Dxf in the positive direction of the Z axis by a certain value to form a 3D model; Extract the closed figures in Dxf one by one, and record them as Dxf[a1,…,an]; Calculate the coordinate center values XY1, XY2, ..., XYn of each figure an in Dxf[a1, ..., an], recorded as ArrDXY[XY1, XY2, ..., XYn]; Calculate the area S1, S2, …, Sn of each figure an in Dxf[a1, …, an], recorded as SquareD[S1, S2, …, Sn]; The plug-in class encapsulates the graphics preprocessing module to output the StepDxf model, and outputs [ArrDXY] and [SquareD].
6. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 1, characterized in that: The following steps are also included: Compare the graphics of StepUN, StepDxf, [SquareC], [SquareD], [ArrCXY], [ArrDXY], and input plug-in classes with the 3D model graphics comparison module; The input StepUN is recorded as 3DModelA, the input StepDxf is recorded as 3DModelB, 3DModelA and 3DModelB are subjected to Boolean operation, and the intersection is obtained to obtain 3DModelC; Calculate the volume of 3DModelC, recorded as 3DVolumeC; Calculate the volume of 3DModelA, recorded as 3DVolumeA; Determine whether the difference between 3DVolumeA and 3DVolumeC is less than the input value. If the difference between 3DVolumeA and 3DVolume is greater than the input value, the plug-in class encapsulation graphics and 3D model graphics comparison module outputs a Fail result; When the difference between 3DVolumeA and 3DVolumeC is less than the input value, the values of SquareC and SquareD are compared one by one to determine whether each difference is less than the input value. If the values of SquareC and SquareD are compared one by one and each difference is greater than the input value, the plug-in class encapsulation graphics and 3D model graphics comparison module outputs a Fail result; When the difference between 3DVolumeA and 3DVolumeC is less than the input value, the values of SquareC and SquareD are compared one by one, and the difference between each is less than the input value. The values of [ArrCXY] and [ArrDXY] are compared one by one to determine whether the difference between each is less than the input value. If the values of [ArrCXY] and [ArrDXY] are compared one by one, and the difference between each is less than the input value, the plug-in class encapsulation graphics and 3D model graphics comparison module outputs a Pass result. When the difference between 3DVolumeA and 3DVolumeC is less than the input value, and the values of SquareC and SquareD are compared one by one, and each difference is less than the input value, the values of [ArrCXY] and [ArrDXY] are compared one by one to determine whether each difference is less than the input value. If the values of [ArrCXY] and [ArrDXY] are compared one by one, and each difference is greater than the input value, the plug-in class encapsulation graphics and 3D model graphics comparison module outputs a Warning result.
7. The cross-check method of plug-in class encapsulation and 3D model based on 3D model as claimed in claim 6, characterized in that: The initial value of the input value is set to 0.0001.
8. A cross-check system of plug-in class packaging and 3D model based on 3D model, using any cross-check method of plug-in class packaging and 3D model based on 3D model as claimed in any one of claims 1 to 7, characterized in that: It includes a plug-in 3D model graphics preprocessing module, a plug-in packaged graphics preprocessing module, and a plug-in packaged graphics and 3D model graphics comparison module. The plug-in class 3D model graphics preprocessing module includes importing the 3D model, creating a cube in the inspection system, the bottom of the cube overlaps and stretches with the XY plane, and taking the intersection of the cube and the original 3D model to generate a preprocessed 3D model; The plug-in class package graphics preprocessing module includes receiving the preprocessed 3D model of the package generated in 3, receiving the plug-in class package file, extracting the geometric information of the surface copper layer, drawing the geometric information into a DXF graphic, stretching the DXF graphic along the positive direction of the Z axis, and generating a package preprocessing 3D model; The plug-in class packaged graphics and 3D model graphics comparison module includes comparing the pre-processed 3D model with the packaged pre-processed 3D model and outputting the comparison result.
9. The plug-in class encapsulation and 3D model cross-checking system based on 3D model as claimed in claim 8, characterized in that: The plug-in class 3D model graphics preprocessing module also includes generating a preprocessed 3D model; Returns the coordinates of the geometric center point of each independent entity that intersects the connector with the XY plane and the area of each entity projected onto the XY plane.
10. The plug-in class encapsulation and 3D model cross-checking system based on 3D model as claimed in claim 8, characterized in that: The plug-in class encapsulation graphics preprocessing module also includes: Generate a preprocessed 3D model of the package, identify and extract the geometric features of the connector holes; traverse the preprocessed 3D model to identify all the connector holes; calculate the coordinates and area of the geometric center point of the hole.
Citation Information
Patent Citations
3D model-based packaging and 3D model cross inspection method and system
CN119378200A
Cross check method and system for surface-mounted packaging and 3D model based on 3D model
CN119378202A
3D model retrieval method and system
US20040264777A1
System and method for creating and updating a three-dimensional model and creating a related neutral file format
WO2004010384A2