Clean room model virtual grid alignment method, system and equipment and storage medium
Automatically aligning the graphic elements of the clean room model through the virtual grid alignment method, solving the problems of manual drawing error and waste of computing resources, improving the drawing efficiency and the accuracy of CAE simulation, and ensuring the accurate modeling and construction of the clean room.
Patent Information
- Application Number
- CN202411076944.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-22
Smart Images

Figure CN119004604A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a clean room modeling technology, and in particular to a clean room model virtual grid alignment method, system, equipment and storage medium. Background Art
[0002] There are modeling errors in the modeling stage of CAE simulation: geometric simplification and meshing are key steps in CAE simulation, and each has a significant impact on the accuracy and reliability of the final simulation results. Some details have very little effect on the overall simulation results, but complex geometries require more computing resources and time. Through geometric simplification, the required amount of calculation can be reduced; secondly, the size and type of the mesh have a great impact on the results: a mesh that is too coarse may ignore some fluid details, while a mesh that is too fine will increase the computing cost and time, and the quality of the mesh will also affect the accuracy of the simulation results.
[0003] Different industries require different processing of original drawings, which requires high professionalism of personnel. Clean rooms are a necessity in semiconductor manufacturing, new energy industry, life sciences, pharmaceutical industry, and any other field that is highly sensitive to environmental pollution. In the simulation calculation process of clean rooms, modeling is the most complex and the workload accounts for a large proportion. At present, the 3D modeling of clean rooms usually relies on manual reading of 2D CAD drawing information from different industries, screening and recording the required information, manually extracting the required layers, and then re-tracing manually. After tracing, 3D modeling is performed and the line segments of the drawings are aligned based on personal experience. This results in a lot of manpower consumption, and the accuracy and precision of the drawings cannot be guaranteed. Interference is prone to occur on the drawings, which is not only easy to cause misunderstandings during subsequent construction according to the drawings, but also easy to cause CAE calculations to not converge when modeling and calculating according to the drawings. In addition, for large cleanrooms, the number of FFUs and elevated floors is huge, and the following problems are prone to occur during CAD drawing: (1) Inaccurate alignment of FFUs and elevated floors leads to a certain degree of obstruction of air flow; (2) When laying out FFUs or elevated floors, inaccurate coordinate positioning may lead to incorrect or uneven equipment layout; (3) Improper operation when using functions such as copy, mirror or array may lead to incorrect placement or orientation of elements. In order to reduce these errors, practitioners need to be strictly trained, familiar with the functions and limitations of CAD software, and conduct multiple reviews and verifications during the design process. Therefore, the disadvantages of the existing technology are: (1) When the CAD drawings are relatively complex, especially for the semiconductor industry, manually extracting each layer requires a lot of manpower; (2) During the tracing process, it is easy for many gaps to appear in the CAD drawings due to drawing errors or human errors. This causes the grid to capture these errors when drawing the structured grid in the CFD software, resulting in large grid volume, slow calculation speed, or even non-convergence; (3) Human errors can easily cause drawing errors, which can easily lead to misunderstandings in subsequent construction. Summary of the invention
[0004] Purpose of the invention: To address the deficiencies of the prior art, the present invention proposes a clean room model virtual grid alignment method, system, device and storage medium, which can realize automatic alignment, reduce personnel input costs, and improve drawing accuracy and efficiency.
[0005] Technical solution: A clean room model virtual grid alignment method of the present invention comprises the following steps:
[0006] Identify the layer names of the drawings read in, extract the layers required for modeling, and identify the graphic elements in each layer;
[0007] Calculate and obtain layer operation parameters; including identifying the graphic data of each graphic element, finding the minimum and maximum values in the x and y directions respectively according to the graphic data of each graphic element, and determining the calculation graphic range;
[0008] Calculate and obtain the operating parameters of the ceiling keel; including obtaining the node range of the ceiling keel according to the graphic data of each graphic element in the layer containing the ceiling keel;
[0009] Processing the graphic elements according to the operation parameters; including comparing the graphic range with the ceiling keel node range, if the ceiling keel node range is larger than the graphic range, refining the keel nodes, calculating the keel node refinement value, and calculating the minimum distance from all coordinate points in each graphic data to each keel node, and using the corresponding keel node refinement value as the graphic data of the corresponding graphic element to redraw the graphic element; if the keel node range is smaller than the graphic range, the keel node range needs to be expanded according to the image range before the keel node refinement process, so that the expanded keel node range includes the graphic range; using the keel node or the refined keel node as a virtual grid node;
[0010] Finally, the endpoints of the graphic elements in the graphic data of the clean room model are aligned to the virtual grid nodes.
[0011] Furthermore, the layers required for modeling are extracted, and the graphic elements in each layer are identified, specifically: the layer names are split, the structure names to be modeled in the layer names are obtained, and all layers containing the structure names to be modeled are extracted; the graphic elements in each extracted layer are read, and the graphic elements include: polylines, circles, arcs and line segments.
[0012] Further, the graphic data of each graphic element is identified, specifically: the graphic data G of the extracted graphic element is identified 0 include:
[0013] If the graphic element is a polyline, identify the coordinates of each node and record them as an array ((x p1 ,y p1 ),(x p2 ,y p2 )…), where (x pi ,y pi ) is the coordinate of the node i of the polyline, i = 1, 2, ...;
[0014] If the graphic element is a circle, identify its center coordinates (x c ,y c ) and radius r, recorded as array (x c ,y c ,r);
[0015] If the graphic element is an arc, identify its center coordinates (xc ,y c ), radius r, and the angles angles and anglee between the two radii and the horizontal line, recorded as an array (xc, yc, r, angles, anglee);
[0016] If the graphic element is a line segment, identify its starting point coordinates (x s ,y s ) and the end point coordinates (x e ,y e ), recorded as array (x s ,y s ,x e ,y e ).
[0017] Further, obtain the range of ceiling keel nodes, specifically:
[0018] (1) Read the coordinates P of all the keel nodes of the ceiling keel 0 , recorded as array ((x 1 ,y 1 )(x 2 ,y 2 )…);
[0019] (2) Calculate the keel node spacing P in the x and y directions of the CAD drawing △ :(P △x ,P △y );
[0020] (3) According to the array data identified in step (1), find the minimum and maximum values of the ceiling keel nodes in the x and y directions respectively, determine the range of the ceiling keel nodes, and record them as array
[0021] Further, the keel node is refined, specifically: the alignment node refinement value P is calculated according to the refinement value N 2 , where P 2 for The refinement value N means dividing the spacing of a single ceiling keel into N parts.
[0022] Further, the keel node range is expanded according to the image range, and the new keel node range P obtained after expansion is 1 The expression is: Among them, P 0 is the initial keel node range, P △ is the keel node spacing, G 0 The initial graphics data for the graphics element.
[0023] Furthermore, the endpoints of the graphic elements in the graphic data of the clean room model are aligned to the virtual grid nodes, specifically:
[0024] If the graphic element is a polyline, then find the virtual grid node closest to each of its node coordinates, and assign the virtual grid node coordinate value to the corresponding node coordinate, that is, complete the alignment operation of one node, and so on, complete the alignment operation of each node of the polyline;
[0025] If the graphic element is a line segment, the virtual grid node closest to the start point and the end point is found respectively, and the coordinate value of the virtual grid node is assigned to the coordinates of the start point and the end point to complete the alignment operation of the line segment;
[0026] If the graphic element is a circle, then find the virtual grid node closest to the center coordinates of the circle, and assign the virtual grid node coordinates to the center coordinates of the circle; according to the identified radius r value, determine whether the circumference of the circle falls on a certain virtual grid node, that is, determine r = M*D, where D is the distance between two virtual grid nodes in the x or y direction, and M represents the number of virtual grid node spacings contained in the radius r. If it does not fall on any virtual grid node, then find the virtual grid node closest to the circumference, calculate the distance d between the virtual grid node and the assigned center coordinates of the circle, and assign d to the radius r, thus completing the "alignment" operation of the circle;
[0027] If the graphic element is an arc, find the virtual grid node closest to the center coordinates and assign the virtual grid node coordinates to the center coordinates; if the arc has an extreme point other than the endpoint, find the virtual grid node closest to the extreme point and assign the coordinate value of the virtual grid node to the extreme point of the arc, then calculate the angle angle between the two radii and the horizontal line. s and angle e , determine the coordinates of the two end points of the arc, draw the arc, and thus complete the "alignment" operation of the arc.
[0028] In one embodiment of the present invention, a clean room model virtual grid alignment system includes:
[0029] The layer extraction and image element recognition unit is used to identify the layer name of the read-in drawing, extract the layer required for modeling, and identify the graphic elements in each layer;
[0030] The layer operation parameter calculation unit is used to calculate and obtain the layer operation parameters; including identifying the graphic data of each graphic element, finding the minimum value and the maximum value in the x and y directions respectively according to the graphic data of each graphic element, and determining the calculation graphic range;
[0031] The ceiling keel operation parameter calculation unit is used to calculate and obtain the ceiling keel operation parameters; including obtaining the ceiling keel node range according to the graphic data of each graphic element in the layer containing the ceiling keel;
[0032] The virtual grid alignment unit is used to process the graphic elements according to the operation parameters; including comparing the graphic range with the ceiling keel node range. If the ceiling keel node range is larger than the graphic range, the keel nodes are refined, the keel node refinement values are calculated, and the minimum spacing from all coordinate points in each graphic data to each keel node is calculated, and the corresponding keel node refinement values are used as the graphic data of the corresponding graphic element to redraw the graphic element; if the keel node range is smaller than the graphic range, the keel node range needs to be expanded according to the image range before the keel node refinement process so that the expanded keel node range includes the graphic range.
[0033] In one embodiment of the present invention, an electronic device includes:
[0034] A memory storing executable program code;
[0035] a processor coupled to the memory;
[0036] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned clean room model virtual grid alignment method.
[0037] In one embodiment of the present invention, a computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the steps of virtual grid alignment of a clean room model as described above.
[0038] Beneficial effects: Compared with the prior art, the advantages of the present invention are: (1) for CAD drawings of different industries, the required layers can be extracted, and redundant layer elements such as text and blocks can be removed, and only drawing-related layers can be retained, saving labor costs and improving drawing efficiency; (2) the clean room geometric model can be aligned according to the position of the building ceiling keel, eliminating interference or gaps between layers caused by manual drawing, reducing the time cost of manual review of drawings, avoiding the problem of large mesh volume and non-convergence of calculations caused by a large number of small gaps in CAD drawings due to human tracing errors, and improving the calculation efficiency of subsequent CAE simulations; (3) by eliminating drawing errors, the accuracy of construction drawings is guaranteed to avoid misunderstandings when constructing according to the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 is a flow chart of the method of the present invention;
[0040] Figure 2 Detailed flow chart of the method of the present invention;
[0041] Figure 3 A preview of the input model;
[0042] Figure 4 Related layers for identification;
[0043] Figure 5 Schematic diagram of the processed model opened in CAD software. DETAILED DESCRIPTION
[0044] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0045] like Figure 1 and Figure 2 As shown, the present invention provides a virtual grid alignment method for a clean room model. The so-called virtual grid refers to reading the node position of the ceiling keel as the position for aligning the remaining elements, and refining the alignment spacing according to the needs. The alignment points form a grid similar to a chessboard. The following steps are included:
[0046] (1) Read in the drawing; Figure 3 shown.
[0047] (2) Identify layer names; including: splitting layer names, obtaining keyword names in layer names, including: partition walls, equipment, DCC (Dry Cooling Coil), louvers, FFU (Fan Filter Unit), and ceiling keels; extracting layers required for modeling;
[0048] CAE simulation only needs to extract the layer data related to the simulation from the drawings of electromechanical, HVAC, construction, fire protection, process equipment, etc. For the semiconductor industry, it is necessary to extract the layer data of process equipment, building partition walls, columns, elevated floors, test benches, cabinets, FFU, return air ducts, etc.; for the pharmaceutical industry, it is necessary to extract the layer data of building partition walls, columns, equipment, laminar flow hoods, FFU, return air ducts, etc.
[0049] In this embodiment, the entire clean room can be divided into three types of graphic elements that need to be modeled: equipment (mech), FFU (Fan Filter Unit), and partition wall (room). Other layer information that does not contain the graphic elements that need to be modeled can be deleted, and only the required layer information is retained, such as Figure 4 shown.
[0050] (3) Identify graphic elements in the layer; including:
[0051] (31) reading the graphic elements in each layer extracted in step (2), the graphic elements including: polylines, circles, arcs and line segments;
[0052] In this embodiment, the graphic elements in the layer retained in step (2) are read and identified, and irrelevant graphic elements are deleted to ensure that only graphic elements such as line segments and polylines related to modeling are retained.
[0053] (4) Calculate and obtain layer operation parameters; including:
[0054] (41) Identify the graphic data G of the graphic element extracted in step (3) 0 :1) For a polyline, identify the coordinates of each node, recorded as an array ((x p1 ,y p1 ),(x p2 ,y p2 )…), where (x pi ,y pi ) is the coordinate of the node i of the polyline, i = 1, 2, ...; 2) for the circle, identify its center coordinates (xc, yc) and radius r, recorded as an array (xc, yc, r); 3) for the arc, identify its center coordinates (xc, yc), radius r, and the angles angles and anglee between the two radii and the horizontal line, recorded as an array (x c ,y c ,r,angle s ,angle e );4) For the line segment, identify the coordinates of its starting point and end point, recorded as an array (x s ,y s ,x e ,y e ), where (x s ,y s ) is the starting point of the line segment, (x e ,y e ) is the end point of the line segment.
[0055] (42) According to the array data of the graphic elements identified in (41), find the minimum and maximum values in the x and y directions respectively, determine the calculation range of the graphic, and record it as the array
[0056] In this embodiment, there are only two types of graphic elements, line segments and polylines, and the graphic range is calculated by combining the geometric node coordinates of the graphic elements;
[0057] (5) Calculate and obtain the operating parameters of the ceiling keel; including:
[0058] According to step (3), all information of the graphics with the layer name of ceiling keel is filtered out; the range of the ceiling keel node is obtained, and the specific process is as follows:
[0059] (51) Read the coordinates P of all keel nodes of the ceiling keel 0 , recorded as array ((x1 ,y 1 )(x 2 ,y 2 )…);
[0060] (52) Calculate the keel node spacing P in the x and y directions of the CAD drawing △ :(P △ x,P △ y), the spacing between the keel nodes of each ceiling keel is the same;
[0061] (53) According to the array data identified in step (51), find the minimum and maximum values of the ceiling keel nodes in the x and y directions respectively, determine the range of the ceiling keel nodes, and record it as the array
[0062] (6) Processing the graphic elements according to the operation parameters; including:
[0063] (61) Compare the graphic range determined in step (4) with the keel node range determined in step (5); if the keel node range is larger than the graphic range, directly proceed to step (63); if the keel node range is smaller than the graphic range, proceed to step (62);
[0064] (62) Expand the keel node range according to the graphic range, so that the expanded keel node range includes all graphic ranges, and obtain the new keel node range P 1 ,in
[0065] (63) Calculate the alignment node refinement value P based on the refinement value N 2 , where P 2 for The refinement value can be set manually, which means dividing the spacing of a single ceiling keel into N parts;
[0066] (64) Calculate the distance G from all coordinate points in the graphic data to each keel node 0P2 ;
[0067] (65) Find the distance G from each coordinate point to each keel node 0P2 minimum value, and the corresponding P 2 Assign the value to G 0 Get G 1 ;
[0068] (66) Redraw the graphics elements using G1.
[0069] In this example, the ceiling keel nodes are consistent with the FFU endpoints. Therefore, the graphics range calculated in step (4) is checked to determine that the ceiling keel node range includes the data of all line segments and polylines in the embodiment (that is, the ceiling keel node range is larger than the graphics range); according to the specified refinement value N, the keel node refinement value is calculated. In this embodiment, the refinement value N is 4, which means that the spacing between a single ceiling keel node is divided into four parts; the node coordinate value of the graphic element in step (4) is compared with the coordinate value obtained after the node refinement in the vicinity, and the distance is compared. The coordinate point after the node refinement with the shortest distance is selected, and the value of this coordinate point is assigned to the node coordinate of the graphic element.
[0070] (7) Virtual grid alignment of graphic data in the clean room model;
[0071] The alignment operation is to place G 0 The endpoints (x and y data) of the graphic elements in the grid are aligned to the virtual grid nodes (referring to the keel nodes or the refined keel nodes).
[0072] Among them G 0 The endpoints (x and y data) of the graphic elements are mapped to virtual grid nodes:
[0073] For a polyline, it means identifying each node and recording the coordinates of each node as (x pi ,y pi ), find the virtual grid node closest to each node coordinate (the distance can be 0), and assign the virtual grid node coordinate value to the corresponding node coordinate, that is, complete the "alignment" operation of a node, and so on, complete the "alignment" operation of each node of the polyline;
[0074] For a line segment, it means identifying its starting point and end point (two nodes), (x s ,y s ) is the starting point of the line segment, (x e ,y e ) is the end point of the line segment, find the virtual grid node that is closest to the start and end points (the distance can be 0), and assign the coordinate value of this virtual grid node to the start and end point coordinates to complete the "alignment" operation of the line segment;
[0075] For a circle, identify its center coordinates (x c ,y c) and radius r, find the virtual grid node closest to the circle center coordinates (the distance can be 0), and assign the virtual grid node coordinates to the circle center coordinates; according to the identified radius r value, determine whether the circumference of the circle falls on a certain virtual grid node, that is, determine r = M*D, where D is the distance between two virtual grid nodes in the x or y direction, and M represents the number of virtual grid node spacings contained in the radius r. If it does not fall on any virtual grid node, then find the virtual grid node closest to the circumference, calculate the distance d between the point and the assigned center of the circle, and assign d to the radius r, thus completing the circle "alignment" operation;
[0076] For a circular arc, identify its center coordinates (xc, yc), radius r, and the angles angles and angle between the two radii and the horizontal line. e , find the virtual grid node closest to the center coordinates (the distance can be 0), and assign the coordinates of this virtual grid node to the center coordinates; if there is an extreme point in the arc except the endpoint, find the virtual grid node closest to this extreme point, and assign the coordinate value of this virtual grid node to the extreme point of the arc, and then according to the angle angle between the two radii and the horizontal line s and angle e , determine the coordinates of the two end points of the arc, draw the arc, and thus complete the "alignment" operation of the arc.
[0077] (8) Output CAD drawings. The drawings output by this embodiment are as follows: Figure 5 shown.
[0078] In one embodiment of the present invention, a clean room model virtual grid alignment system includes:
[0079] The layer extraction and image element recognition unit is used to identify the layer name of the read-in drawing, extract the layer required for modeling, and identify the graphic elements in each layer;
[0080] The layer operation parameter calculation unit is used to calculate and obtain the layer operation parameters; including identifying the graphic data of each graphic element, finding the minimum value and the maximum value in the x and y directions respectively according to the graphic data of each graphic element, and determining the calculation graphic range;
[0081] The ceiling keel operation parameter calculation unit is used to calculate and obtain the ceiling keel operation parameters; including obtaining the ceiling keel node range according to the graphic data of each graphic element in the layer containing the ceiling keel;
[0082] The virtual grid alignment unit is used to process the graphic elements according to the operation parameters; including comparing the graphic range with the ceiling keel node range. If the ceiling keel node range is larger than the graphic range, the keel nodes are refined, the keel node refinement values are calculated, and the minimum spacing from all coordinate points in each graphic data to each keel node is calculated, and the corresponding keel node refinement values are used as the graphic data of the corresponding graphic element to redraw the graphic element; if the keel node range is smaller than the graphic range, the keel node range needs to be expanded according to the image range before the keel node refinement process so that the expanded keel node range includes the graphic range.
[0083] In one embodiment of the present invention, an electronic device includes:
[0084] A memory storing executable program code;
[0085] a processor coupled to the memory;
[0086] The processor calls the executable program code stored in the memory to execute the steps of the above-mentioned clean room model virtual grid alignment method.
[0087] In one embodiment of the present invention, a computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the steps of virtual grid alignment of a clean room model as described above.
Claims
1. A virtual grid alignment method for a clean room model, characterized in that: The following steps are involved: Identify the layer names of the drawings read in, extract the layers required for modeling, and identify the graphic elements in each layer; Calculate and obtain layer operation parameters; The method includes identifying the graphic data of each graphic element, finding the minimum value and the maximum value in the x and y directions respectively according to the graphic data of each graphic element, and determining the calculation graphic range; Calculate and obtain the operating parameters of the ceiling keel; including obtaining the node range of the ceiling keel according to the graphic data of each graphic element in the layer containing the ceiling keel; Processing the graphic elements according to the operation parameters; including comparing the graphic range with the ceiling keel node range, if the ceiling keel node range is larger than the graphic range, refining the keel nodes, calculating the keel node refinement value, and calculating the minimum distance between all coordinate points in each graphic data and each keel node, and using the corresponding keel node refinement value as the graphic data of the corresponding graphic element to redraw the graphic element; If the keel node range is smaller than the graphic range, the keel node range needs to be expanded according to the image range before the keel node is refined so that the expanded keel node range includes the graphic range; the keel node or the refined keel node is used as a virtual mesh node; Finally, the endpoints of the graphic elements in the graphic data of the clean room model are aligned to the virtual grid nodes.
2. A clean room model virtual grid alignment method according to claim 1, characterized in that: Extract the layers required for modeling and identify the graphic elements in each layer, specifically: split the layer name, obtain the structure name to be modeled in the layer name, and extract all layers containing the structure name to be modeled; Read the extracted graphic elements in each layer, including polylines, circles, arcs and line segments.
3. A clean room model virtual grid alignment method according to claim 1, characterized in that: Identify the graphic data of each graphic element, specifically: Identify the graphic data G0 of the extracted graphic element including: If the graphic element is a polyline, identify the coordinates of each node and record them as an array ((x p1 ,y p1 ),(x p2 ,y p2 )…), where (x pi ,y pi ) is the coordinate of the node i of the polyline, i = 1, 2, ...; If the graphic element is a circle, identify its center coordinates (x c ,y c ) and radius r, recorded as array (x c ,y c ,r); If the graphic element is an arc, identify its center coordinates (x c ,y c ), radius r, and the angles angles and anglee between the two radii and the horizontal line, recorded as an array (xc, yc, r, angles, anglee); If the graphic element is a line segment, identify its starting point coordinates (x s ,y s ) and the end point coordinates (x e ,y e ), recorded as array (x s ,y s ,x e ,y e ).
4. A clean room model virtual grid alignment method according to claim 1, characterized in that: Get the range of ceiling keel nodes, specifically: (1) Read the coordinates P0 of all the keel nodes of the ceiling keel, recorded as an array ((x1, y1)(x2, y2)…); (2) Calculate the keel node spacing P in the x and y directions of the CAD drawing △ :(P △x ,P △y ); (3) According to the array data identified in step (1), find the minimum and maximum values of the ceiling keel nodes in the x and y directions respectively, determine the range of the ceiling keel nodes, and record them as array 5. A clean room model virtual grid alignment method according to claim 1, characterized in that: The keel node is refined, specifically: the alignment node refinement value P2 is calculated according to the refinement value N, where P2 is The refinement value N means dividing the spacing of a single ceiling keel into N parts.
6. A clean room model virtual grid alignment method according to claim 1, characterized in that: The keel node range is expanded according to the image range, and the expression of the new keel node range P1 obtained after expansion is: Among them, P0 is the initial keel node range, P △ is the keel node spacing, and G0 is the initial graphic data of the graphic element.
7. A clean room model virtual grid alignment method according to claim 1, characterized in that: Align the endpoints of the graphic elements in the graphic data of the clean room model to the virtual grid nodes, specifically: If the graphic element is a polyline, then find the virtual grid node closest to each of its node coordinates, and assign the virtual grid node coordinate value to the corresponding node coordinate, that is, complete the alignment operation of one node, and so on, complete the alignment operation of each node of the polyline; If the graphic element is a line segment, the virtual grid node closest to the start point and the end point is found respectively, and the coordinate value of the virtual grid node is assigned to the coordinates of the start point and the end point to complete the alignment operation of the line segment; If the graphic element is a circle, find the virtual grid node closest to the center coordinates of the circle, and assign the virtual grid node coordinates to the center coordinates of the circle; according to the identified radius r value, determine whether the circumference of the circle falls on a certain virtual grid node, that is, determine r = M*D, where D is the distance between two virtual grid nodes in the x or y direction, and M represents the number of virtual grid node spacings contained in the radius r. If it does not fall on any virtual grid node, find the virtual grid node closest to the circumference, calculate the distance d between the virtual grid node and the assigned center coordinates, and assign d to the radius r, thus completing the "alignment" operation of the circle; If the graphic element is an arc, find the virtual grid node closest to the center coordinates and assign the virtual grid node coordinates to the center coordinates; if the arc has an extreme point other than the endpoint, find the virtual grid node closest to the extreme point and assign the coordinate value of the virtual grid node to the extreme point of the arc, then calculate the angle angle between the two radii and the horizontal line. s and angle e , determine the coordinates of the two end points of the arc, draw the arc, and thus complete the "alignment" operation of the arc.
8. A clean room model virtual grid alignment system, characterized in that: include: The layer extraction and image element recognition unit is used to identify the layer name of the read-in drawing, extract the layer required for modeling, and identify the graphic elements in each layer; A layer operation parameter calculation unit, used for calculating and obtaining layer operation parameters; The method includes identifying the graphic data of each graphic element, finding the minimum value and the maximum value in the x and y directions respectively according to the graphic data of each graphic element, and determining the calculation graphic range; A ceiling keel operating parameter calculation unit, used for calculating and obtaining the ceiling keel operating parameters; The method includes obtaining the range of the ceiling keel nodes according to the graphic data of each graphic element in the layer including the ceiling keel; A virtual grid alignment unit, used for processing graphic elements according to operation parameters; The process includes comparing the graphic range with the ceiling keel node range. If the ceiling keel node range is larger than the graphic range, the keel nodes are refined, the keel node refinement values are calculated, and the minimum distances from all coordinate points in each graphic data to each keel node are calculated. The corresponding keel node refinement values are used as graphic data of corresponding graphic elements to redraw the graphic elements. If the keel node range is smaller than the graphic range, the keel node range needs to be expanded according to the image range before the keel node refinement process, so that the expanded keel node range includes the graphic range.
9. An electronic device, characterized in that: The device comprises: 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 steps of a clean room model virtual grid alignment method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are called, they are used to execute the steps of virtual grid alignment of a clean room model as described in any one of claims 1-7.
