A method and system for cross-checking plug-in class packages based on 3D models
By using a method of cross-checking plug-in class encapsulation based on 3D models and 3D models, the size data of plug-in class encapsulation and 3D models are processed automatically, solving the problems of large errors and low efficiency in manual comparison, and achieving efficient and accurate size comparison.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2026-03-24
AI Technical Summary
In existing technologies, the process of manually comparing packaged models with 3D models suffers from large errors and low efficiency, which cannot meet the needs of the rapidly developing electronic design industry.
A method based on cross-checking of plug-in class encapsulation and 3D model is adopted. By generating a preprocessed 3D model and encapsulating a preprocessed 3D model, Boolean operations and geometric information comparison are used to automatically process the size data of plug-in class encapsulation and 3D model.
It achieves automated and accurate extraction and comparison of dimensional data, avoiding errors from manual acquisition, improving efficiency and accuracy, and ensuring the reproducibility and traceability of comparison results.
Smart Images

Figure CN119378201B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of computer technology, and particularly relates to a plug-in type package cross-checking method and system based on a 3D model. BACKGROUND
[0002] With the advancement of technology, the electronic design process has been expanded to include stages such as digital prototyping design, mechatronic co-design, and simulation design. In this process, manufacturers need to handle multiple data types, including symbol models, package models, and 3D models. In particular, 3D models have become increasingly important in electronic design, leading to 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 daunting task. Package models are closely related to 3D models and are usually designed based on the contact surface of the 3D model and the relevant standards of the PCB board.
[0003] Due to the explosive growth of 3D models, ensuring the accuracy of package models and 3D models, especially quickly verifying the matching of the two, has become a major challenge for manufacturers. Currently, most manufacturers use a manual method: 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 the dimension data to determine whether they match. This method has the following drawbacks: manual acquisition of package model dimension data is prone to errors; manual acquisition of 3D model dimension data is also prone to errors; manual comparison of package model and 3D model dimension data is prone to errors; manual processing is inefficient and time-consuming.
[0004] In other words, the current manual inspection method has obvious deficiencies in accuracy and efficiency, and cannot meet the needs of the rapidly developing electronic design industry. Therefore, the industry urgently needs a more automated, more accurate, and more efficient solution to verify the accuracy of package models and 3D models. SUMMARY
[0005] In order to overcome the deficiencies of the prior art, the present application provides a plug-in type package cross-checking method based on a 3D model to solve the problem of low efficiency in manually comparing package models in the prior art.
[0006] One embodiment of the present application provides a plug-in type package based on 3D model cross-checking method, comprising the following steps: importing 3D model, creating a cube in the checking system, the bottom of the cube coincides with XY plane and is stretched, taking intersection of the cube and the original 3D model to generate preprocessed 3D model; generating packaged preprocessed 3D model, receiving plug-in type package file, extracting geometric information of copper layer, drawing the geometric information into DXF graph, stretching the DXF graph along the positive direction of Z axis to generate packaged preprocessed 3D model; comparing the preprocessed 3D model with the packaged preprocessed 3D model and outputting comparison result.
[0007] In one embodiment, the preprocessed 3D model generation further comprises the following steps: generating preprocessed 3D model; returning the geometric center point coordinates of each independent entity intersecting with XY plane of the connector and the area of each entity projected onto XY plane.
[0008] In one embodiment, the packaged preprocessed 3D model generation further comprises the following steps: generating packaged preprocessed 3D model, identifying and extracting geometric features of connector hole; traversing the preprocessed 3D model to identify all connector holes; calculating the geometric center point coordinates and area of the hole.
[0009] In one embodiment, the 3D model file is input into plug-in type 3D model graph preprocessing module; in CAD environment, XY plane is stretched to the positive direction of Z axis by a specified value to form a cube StepXY; Boolean operation is performed on the input 3D model file and StepXY to take intersection to form preprocessed 3D model StepUN; it is judged whether the input IsThrough is a connector; StepUN is projected onto XY plane to form a two-dimensional graph, which is recorded as DxfStepUN[a1,…,an]; the coordinate center values XY1, XY2,…, XYn of each an graph in DxfStepUN[a1,…,an] are calculated, which are recorded as ArrCXY[XY1, XY2,…, XYn]; the areas S1, S2,…, Sn of each an graph in DxfStepUN[a1,…,an] are calculated, which are recorded as SquareC[S1, S2,…, Sn]; plug-in type 3D model graph preprocessing module outputs StepUN model, outputs [ArrCXY] and [SquareC].
[0010] In one of the embodiments, the generating the packaging pre-processing 3D model further comprises the following steps: inputting a packaging file; extracting graphics from the packaging's copper layer and outputting the extracted graphics to a two-dimensional graphics file such as Dxf; stretching the two-dimensional graphics file Dxf to the positive direction of the Z axis by a certain value to form a 3D model; extracting the closed graphics in Dxf one by one and recording them as Dxf[a1,...,an]; calculating the coordinate center values XY1, XY2,...,XYn of each an graphics in Dxf[a1,...,an] and recording them as ArrDXY[XY1, XY2,...,XYn]; calculating the areas S1, S2,...,Sn of each an graphics in Dxf[a1,...,an] and recording them as SquareD[S1, S2,...,Sn]; and outputting the StepDxf model, [ArrDXY] and [SquareD] by the plug-in class packaging graphics pre-processing module.
[0011] In one of the embodiments, the following steps are further included: comparing the StepUN, StepDxf, [SquareC], [SquareD], [ArrCXY], [ArrDXY], input plug-in class packaging graphics with 3D model graphics; recording the input StepUN as 3DModelA and the input StepDxf as 3DModelB, performing Boolean operation on 3DModelA and 3DModelB, taking the intersection to obtain 3DModelC. Calculating the volume of 3DModelC and recording it as 3DVolumeC; calculating the volume of 3DModelA and recording it as 3DVolumeA; determining 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 packaging graphics and 3D model graphics comparison module outputs the Fail result; when the difference between 3DVolumeA and 3DVolumeC is less than the input value, comparing the values of SquareC and SquareD one by one, determining whether the difference of each is less than the input value, if the values of SquareC and SquareD are compared one by one, the difference of each is greater than the input value, the plug-in class packaging graphics and 3D model graphics comparison module outputs the 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, the difference of each is less than the input value, the values of [ArrCXY] and [ArrDXY] are compared one by one, determining whether the difference of each is less than the input value, if the values of [ArrCXY] and [ArrDXY] are compared one by one, the difference of each is less than the input value, the plug-in class packaging graphics and 3D model graphics comparison module outputs the 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, the difference of each is less than the input value, the values of [ArrCXY] and [ArrDXY] are compared one by one, determining whether the difference of each is less than the input value, if the values of [ArrCXY] and [ArrDXY] are compared one by one, the difference of each is greater than the input value, the plug-in class packaging graphics and 3D model graphics comparison module outputs the Warning result.
[0012] In one of the embodiments, the initial value of the input value is set to 0.0001.
[0013] The application further provides an embodiment, a cross-checking system for plug-in type packaging based on a 3D model and a 3D model, which applies any one of the cross-checking methods for plug-in type packaging based on a 3D model and a 3D model, and comprises a plug-in type 3D model graphic preprocessing module, a plug-in type packaging graphic preprocessing module and a plug-in type packaging graphic and 3D model graphic comparison module. The plug-in type 3D model graphic preprocessing module comprises importing a 3D model, creating a cube in the cross-checking system, stretching the cube to coincide with an XY plane, taking an intersection of the cube and the original 3D model to generate a preprocessed 3D model. The plug-in type packaging graphic preprocessing module comprises generating a preprocessed 3D model of packaging, receiving a plug-in type packaging file, extracting geometric information of a copper layer, drawing the geometric information into a DXF graphic, stretching the DXF graphic along a positive direction of a Z axis to generate a packaging preprocessed 3D model. The plug-in type packaging graphic and 3D model graphic comparison module comprises comparing the preprocessed 3D model with the packaging preprocessed 3D model and outputting a comparison result.
[0014] In one of the embodiments, the plug-in type 3D model graphic preprocessing module further comprises generating a preprocessed 3D model and returning a geometric center point coordinate of each independent entity of the plug-in that intersects with the XY plane and an area of each entity projected onto the XY plane.
[0015] In one of the embodiments, the 3D model graphic preprocessing module comprises generating a preprocessed 3D model, judging whether the 3D model is a plug-in, and if the 3D model is a plug-in, returning a geometric center point coordinate of each independent entity of the plug-in that intersects with the XY plane and an area of each entity projected onto the XY plane.
[0016] In one of the embodiments, the packaging graphic preprocessing module comprises generating a preprocessed 3D model of packaging, and if the preprocessed 3D model is a plug-in, returning a geometric center point coordinate of a hole of the plug-in and an area of each hole and recording the coordinate array as ArrDXY.
[0017] In one of the embodiments, the packaging graphic and 3D model graphic comparison module further comprises generating a preprocessed 3D model of packaging, identifying and extracting geometric features of a hole of the plug-in, traversing the preprocessed 3D model to identify all holes of the plug-in, and calculating a geometric center point coordinate of the hole and an area.
[0018] The cross-checking method and system for plug-in type packaging based on a 3D model provided by the above embodiments have the following beneficial effects:
[0019] (1) The plug-in class 3D model figure preprocessing module and the plug-in class packaging figure preprocessing module provided by the application make the size data of the plug-in class packaging model represented by the 3D model in an automatic manner, and the size data of the 3D model represented by the 3D model. This way of representing the 3D model data is automatically extracted, avoiding errors that can be made by manual acquisition. Automation greatly improves efficiency.
[0020] (2) The plug-in class packaging figure and 3D model figure comparison module compares the 3D model, the coordinates and the size of the hole one by one, effectively avoiding errors that can be made by manual acquisition. The results of each comparison are reproducible and traceable, which can effectively avoid data errors. BRIEF DESCRIPTION OF DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute some embodiments of the application, and for those skilled in the art, other drawings can also be obtained from the structures shown in the drawings without creative labor.
[0022] Figure 1 A cross-checking method of plug-in class packaging based on 3D model and 3D model provided by the first embodiment of the application is shown in the working step diagram.
[0023] Figure 2 A cross-checking system block diagram of plug-in class packaging based on 3D model and 3D model in an embodiment of the application is shown in the working step diagram.
[0024] Figure 3 A working flowchart of the plug-in class 3D model figure preprocessing module provided by an embodiment of the application is shown in the working step diagram.
[0025] Figure 4 A working flowchart of the plug-in class packaging figure preprocessing module provided by an embodiment of the application is shown in the working step diagram.
[0026] Figure 5 A working flowchart of the plug-in class packaging figure and 3D model figure comparison module provided by an embodiment of the application is shown in the working step diagram. DETAILED DESCRIPTION
[0027] The technical solutions in the embodiments of the application will be described clearly and completely below with reference to the drawings in the embodiments of the application. Obviously, the described embodiments only constitute some embodiments of the application, rather than all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the application.
[0028] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, motion condition, etc. between components in a certain posture, and if the certain posture changes, the directional indications will also change accordingly.
[0029] In addition, if the embodiments of the present application involve descriptions such as "first", "second", etc., the descriptions of "first", "second", etc. are only for description purposes and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features limited by "first" and "second" can be explicitly or implicitly included at least one of the features. In addition, "and / or" or "and / or" appearing throughout the text means that the three parallel schemes are included, for example, "A and / or B" includes A scheme, or B scheme, or A and B scheme. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the realization of ordinary skilled in the art, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor within the scope of protection required by the present application.
[0030] Embodiment 1
[0031] Reference Figure 1 One of the embodiments of the present application provides a cross-checking method for plug-in type packaging based on 3D model and 3D model, comprising the following steps: importing 3D model, creating a cube in the checking system, the bottom of the cube coincides with XY plane and is stretched, taking intersection of the cube and the original 3D model to generate a preprocessed 3D model; generating a packaged preprocessed 3D model, receiving a plug-in type packaging file, extracting the geometric information of the copper layer, drawing the DXF graph, the DXF graph is stretched along the positive direction of Z axis, and the packaging preprocessed 3D model is generated; comparing the preprocessed 3D model with the packaging preprocessed 3D model, and outputting the comparison result.
[0032] In one of the embodiments, the preprocessed 3D model generation further comprises the following steps: generating a preprocessed 3D model; returning the geometric center point coordinates of each independent entity intersecting with the XY plane of the connector and the area of each entity projected onto the XY plane.
[0033] In one of the embodiments, the packaging preprocessed 3D model generation further comprises the following steps: generating a packaged preprocessed 3D model, identifying and extracting the geometric features of the connector hole; traversing the preprocessed 3D model to identify all the connector holes; calculating the geometric center point coordinates and the area of the hole.
[0034] Embodiment 2
[0035] Reference Figures 2-5 The application also provides an embodiment of a plug-in package based on a 3D model cross-checking system applying any one of the plug-in package based on a 3D model cross-checking methods, which comprises a plug-in 3D model graphic preprocessing module, a plug-in package graphic preprocessing module, and a plug-in package graphic and 3D model graphic comparison module. The plug-in 3D model graphic preprocessing module comprises importing a 3D model, creating a cube in the checking system, the bottom of the cube coinciding with the XY plane and being stretched, and taking the intersection of the cube and the original 3D model to generate a preprocessing 3D model. The plug-in package graphic preprocessing module comprises generating a preprocessing 3D model of a package, receiving a plug-in package file, extracting the geometric information of the 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 preprocessing 3D model of a package. The plug-in package graphic and 3D model graphic comparison module comprises comparing the preprocessing 3D model with the preprocessing 3D model of a package and outputting the comparison result.
[0036] The working steps of the system are as follows: developing a plug-in 3D model graphic preprocessing module, a plug-in package graphic preprocessing module, and a plug-in package graphic and 3D model graphic comparison module. Finally, a plug-in package based on a 3D model cross-checking system is formed. A 3D model file is input into the plug-in package based on a 3D model cross-checking system, including but not limited to a step format.
[0037] A package file is input into the plug-in package based on a 3D model cross-checking system, including but not limited to a kicad_mod format. The system finally outputs Pass, Warning, and Fail three results.
[0038] The plug-in 3D model graphic preprocessing module further comprises generating a preprocessing 3D model and returning the geometric center point coordinates of each independent entity intersecting with the XY plane of the connector and the area of each entity projected onto the XY plane. The 3D model graphic preprocessing module comprises: generating a preprocessing 3D model; determining whether the 3D model is a connector; if it is a connector, the geometric center point coordinates of each independent entity intersecting with the XY plane of the connector and the area of each entity projected onto the XY plane also need to be returned.
[0039] The package graphic preprocessing module comprises generating a preprocessing 3D model of a package and, if the preprocessing 3D model is a connector, returning the geometric center point coordinates of the connector hole and the area of each hole, and recording the coordinates array as ArrDXY.
[0040] The packaging pattern is compared with the 3D model pattern module further includes, 3D generation package pre-processing 3D model, identify and extract the geometric characteristics of the connector hole;Traverse the pre-processed 3D model, identify all the connector holes;Calculate the geometric center point coordinates and area of the hole.
[0041] In the 3D model file input connector class 3D model pattern pre-processing module;In the CAD environment, XY plane is stretched to the positive direction of Z axis to form a cube StepXY;The input 3D model file is subjected to Boolean operation with StepXY, and the intersection is formed to form a pre-processed 3D model StepUN;Judge whether the input IsThrough is a connector;Project each entity of StepUN on XY plane to form a two-dimensional pattern, denoted as DxfStepUN[a1,...,an];Calculate the coordinate center value XY1, XY2,..., XYn of each an pattern in DxfStepUN[a1,...,an], denoted as ArrCXY[XY1, XY2,..., XYn];Calculate the area S1, S2,..., Sn of each an pattern in DxfStepUN[a1,...,an], denoted as SquareC[S1, S2,..., Sn];The connector class 3D model pattern pre-processing module outputs StepUN model, outputs [ArrCXY] and [SquareC].
[0042] In one embodiment, the generation of the packaging pre-processed 3D model further includes the following steps, the first 3D model is called model A, and the second 3D model is called model B. The intersection operation is performed on model A and model B to obtain model C. The volume of model A and model C is calculated respectively. If the volume difference of model A and model C is less than 0.0001, they are considered to be consistent in volume, marked as True;Otherwise, marked as False. According to the result of the previous step, if the volume comparison fails, the overall comparison fails;If successful, continue 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 of X axis and Y axis. Similarly, the hole coordinates and area of model B are recorded and arranged in ascending order of X axis and Y axis. Compare the area difference of model A and model B, if the difference of each area is less than 0.0001, the area comparison is successful, marked as True;Otherwise, marked as False. If the area comparison fails, the overall comparison fails;If successful, continue to the next step. When the area comparison is successful, compare the coordinate difference of model A and model B, if the X and Y difference of each coordinate is less than 0.0001, the coordinate comparison is successful, marked as True;Otherwise, marked as False. If the coordinate comparison is successful, the overall comparison result is passed;If there is a difference but not big, the result is warning.
[0043] The working steps in the system are as follows: the plug-in class packaging pattern and the 3D model pattern comparison module: the input of the plug-in class packaging pattern and the 3D model pattern comparison module is A: the preprocessed 3D model generated by the plug-in class 3D model preprocessing module, B: the packaging preprocessed 3D model generated by the plug-in class packaging pattern preprocessing module, input C: the geometric center point coordinates of each independent entity intersected with the XY plane of the plug-in 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 packaging pattern and the 3D model pattern comparison module is as follows:
[0044] I: the 3D model of input A is recorded as 3DModelA;
[0045] II: the 3D model of input B is recorded as 3DModelB;
[0046] III: 3DModelA and 3DModelB are intersected to obtain 3DModelC;
[0047] IV: the volume of 3DModelA is calculated as 3DVolumeA;
[0048] V: the volume of 3DModelC is calculated as 3DVolumeC;
[0049] VI: compare the difference between 3DVolumeA and 3DVolumeC with the input value (initially 0.0001) 0.0001, if the difference is less than 0.0001, output 3DBoolean as True, otherwise as False;
[0050] VII: the output result of the packaging pattern and the 3D model pattern comparison module is referred to the result of 3DBoolean. If 3DBoolean is False, the output result of the packaging pattern and the 3D model pattern comparison module is Fail; if 3DBoolean is True, then proceed to the next step;
[0051] VIII: if 3DBoolean is True, record the coordinate values of input C, increase in the direction from small to large along the X axis, and increase in the direction from small to large along the Y axis, record the coordinate array as ArrCXY [XY1, XY2, …… XYn], and the corresponding area SquareC [S1, S2, …… Sn];
[0052] IX: if 3DBoolean is True, record the coordinate values of input D, increase in the direction from small to large along the X axis, and increase in the direction from small to large along the Y axis, record the coordinate array as ArrDXY [XY1, XY2, …… XYn], and the corresponding area SquareD [S1, S2, …… Sn];
[0053] X: If 3DBoolean is True, compare the value of SquareC and SquareD one by one. If the difference of each Sn is less than the input value (initial value is 0.0001), output HoleSqBoolean as True, otherwise as False.
[0054] XI: If 3DBoolean is True, the output result of the encapsulated graphics and 3D model graphics comparison module refers to the result of HoleSqBoolean. If HoleSqBoolean is False, the output result of the encapsulated graphics and 3D model graphics comparison module is Fail. If HoleSqBoolean is True, proceed to the subsequent further judgment.
[0055] XII: If 3DBoolean is True and HoleSqBoolean is True, start comparing ArrCXY and ArrDXY. Compare the value of ArrCXY and ArrDXY one by one. If the difference of each XYn is less than the input value (initial value is 0.0001), output HoleArrBoolean as True, otherwise as False.
[0056] XIV: If 3DBoolean is True and HoleSqBoolean is True, the output result of the encapsulated graphics and 3D model graphics comparison module refers to the result of HoleArrBoolean. If HoleArrBoolean is True, the output result of the encapsulated graphics and 3D model graphics comparison module is Pass. If HoleArrBoolean is False, the output result of the encapsulated graphics and 3D model graphics comparison module is Warning.
[0057] This process is to compare the volume of two 3D models first, if consistent, then compare the area of their solids and holes, and finally compare the coordinates. If all comparisons pass, the overall comparison is successful; if there is a warning or failure, output the corresponding result according to the specific situation.
[0058] The embodiment provided by the application has the following beneficial effects: the plug-in type 3D model figure preprocessing module and the plug-in type package figure preprocessing module provided by the application enable the size data of the plug-in type package model to be represented in an automatic manner by using a 3D model, and the size data of the 3D model to be represented by using a 3D model. The 3D model representation data is automatically extracted, and errors caused by manual acquisition are avoided. Automation processing greatly improves efficiency. The plug-in type package figure and the 3D model figure comparison module compares the 3D model, the coordinates and the size of the hole one by one, effectively avoiding errors caused by manual operation. The comparison result can be reproduced and traced, and data errors can be effectively avoided.
[0059] The above description is merely preferred embodiments of the application, and does not limit the patent scope of the application. Any equivalent structural transformation made by using the content of the specification and the drawings, or direct / indirect application in other related technical fields under the inventive concept of the application is included in the patent protection scope of the application.
Claims
1. A method for cross-checking a plug-in class encapsulation based on a 3D model and a 3D model, comprising the following steps: Import the 3D model, create a cube in the inspection system, align the bottom of the cube with the XY plane and extrude it, then take the intersection of the cube and the original 3D model to generate a preprocessed 3D model, including: Generate a preprocessed 3D model; Returns the coordinates of the geometric center point of each individual entity that intersects the connector with the XY plane and the area of each entity projected onto the XY plane; Input the 3D model file into the plug-in 3D model graphics preprocessing module; In the CAD environment, the XY plane is stretched by a specified value in the positive Z-axis direction to form a cube StepXY; the input 3D model file and StepXY are subjected to Boolean operations, and the intersection is taken to form a preprocessed 3D model StepUN; Determine if the input IsThrough is a connector; Project each entity of StepUN onto the XY plane to form a two-dimensional graphic, denoted as DxfStepUN[a1,…,an]; Calculate the coordinate center values XY1, XY2, ..., XYn of each an graph in DxfStepUN[a1,...,an], and denote them as ArrCXY[XY1, XY2, ..., XYn]. Calculate the area S1, S2, ..., Sn of each an figure in DxfStepUN[a1,...,an], and denote it as SquareC[S1, S2, ..., Sn]. The plug-in 3D model graphics preprocessing module outputs a StepUN model, and outputs [ArrCXY] and [SquareC]; Input the package file; Extract the pattern from the copper layer of the package and output the extracted pattern as a 2D graphic file (DXF). Stretch the 2D graphic file DXF along the positive Z-axis by a certain value to form a 3D model; Extract the closed shapes one by one from Dxf, and denote them as Dxf[a1,…,an]; Calculate the coordinate center values XY1, XY2, ..., XYn of each an graph in Dxf[a1,...,an], and denote them as ArrDXY[XY1, XY2, ..., XYn]. Calculate the area S1, S2, ..., Sn of each an figure in Dxf[a1,...,an], denoted as SquareD[S1, S2, ..., Sn]. The plugin class encapsulates the graphics preprocessing module to output StepDxf models, and outputs [ArrDXY] and [SquareD] models; The StepUN, StepDxf, [SquareC], [SquareD], [ArrCXY], [ArrDXY], and input plugin classes are encapsulated into a module for comparing graphics with 3D model graphics; Let the input StepUN be denoted as 3DModelA and the input StepDxf as 3DModelB. Perform a Boolean operation on 3DModelA and 3DModelB, take the intersection, and get 3DModelC. Calculate the volume of 3DModelC, denoted as 3DVolumeC; Calculate the volume of 3DModelA, denoted as 3DVolumeA; Determine if the difference between 3DVolumeA and 3DVolumeC is less than the input value. If the difference between 3DVolumeA and 3DVolumeC is greater than the input value, the module comparing the plug-in encapsulated graphics with the 3D model graphics will output 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 of each is less than the input value. If the difference between SquareC and SquareD is greater than the input value, the plugin-class encapsulated 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. If the difference between each of them is less than the input value, compare the values of [ArrCXY] and [ArrDXY] one by one. Determine if the difference between each of them is less than the input value. If the difference between each of them is less than the input value, the plug-in class encapsulated graphics and 3D model graphics comparison module outputs the Pass result. When the difference between 3DVolumeA and 3DVolumeC is less than the input value, and the difference between SquareC and SquareD is less than the input value, the difference between [ArrCXY] and [ArrDXY] is compared to determine if the difference between each is less than the input value. If the difference between [ArrCXY] and [ArrDXY] is greater than the input value, the plugin-class encapsulated graphics and 3D model graphics comparison module outputs a warning result. Generate a pre-processed 3D model of the package, receive the plug-in class package file, extract the geometric information of the copper layer, draw the geometric information into a DXF graphic, stretch the DXF graphic along the positive Z-axis, and generate the pre-processed 3D model of the package. The preprocessed 3D model is compared with the encapsulated preprocessed 3D model, and the comparison result is output.
2. The method for cross-checking 3D models and plug-in class encapsulation based on 3D models as described in claim 1, characterized in that, The preprocessing of the encapsulation 3D model generation also includes the following steps: Generate a pre-processed 3D model of the package, and identify and extract the geometric features of the connector holes; Traverse the preprocessed 3D model to identify all connector holes; calculate the geometric center coordinates and area of the holes.
3. The method for cross-checking 3D models and plug-in class encapsulation based on 3D models as described in claim 1, characterized in that, The initial value of the input value is set to 0.0001.
4. A system for cross-checking plug-in class encapsulation and 3D model based on 3D models, employing any one of the methods for cross-checking plug-in class encapsulation and 3D model based on claims 1-3, characterized in that, This includes a 3D model graphics preprocessing module for plug-ins, a preprocessing module for encapsulated graphics for plug-ins, and a module for comparing encapsulated graphics for plug-ins with 3D model graphics. The plug-in 3D model graphics preprocessing module includes importing a 3D model, creating a cube in the inspection system, aligning the bottom of the cube with the XY plane and stretching it, and taking the intersection of the cube with the original 3D model to generate a preprocessed 3D model. The plug-in class encapsulation graphic preprocessing module includes generating a preprocessed 3D model of the encapsulation, receiving a plug-in class encapsulation file, extracting the geometric information of the copper layer, drawing the geometric information into a DXF graphic, and stretching the DXF graphic along the positive Z-axis to generate the encapsulation preprocessed 3D model. The module for comparing the plug-in encapsulated graphic with the 3D model graphic includes comparing the preprocessed 3D model with the encapsulated preprocessed 3D model and outputting the comparison result.
5. The 3D model-based plug-in class encapsulation and 3D model cross-checking system as described in claim 4, characterized in that, The plug-in 3D model graphics preprocessing module also includes generating a preprocessed 3D model; Returns the coordinates of the geometric center point of each individual entity that intersects the connector with the XY plane, projected onto the XY plane, and the area of each entity projected onto the XY plane.
6. The plug-in class encapsulation and 3D model cross-checking system based on 3D models as described in claim 4, characterized in that, The plug-in class encapsulated graphics preprocessing module also includes: Generate a pre-processed 3D model of the package, identify and extract the geometric features of the connector holes; traverse the pre-processed 3D model to identify all connector holes; calculate the coordinates of the geometric center point of the hole and its area.
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