Filling room three-dimensional modeling method, system and equipment based on two-dimensional plane graph

By automatically processing two-dimensional plane drawings and generating three-dimensional models, it solves the problems of slow manual modeling and low accuracy in the existing technology, realizes fast and accurate three-dimensional modeling and simulation calculations, and supports digital collaboration between filling rooms. design.

CN118691741APending Publication Date: 2024-09-24CHINA ELECTRONICS SYST ENG NO 2 CONSTR
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410720686.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing three-dimensional modeling process of pharmaceutical filling rooms relies on manual reading of two-dimensional CAD drawings, which results in slow modeling speed and the possibility of model errors. Moreover, simulation calculation and drawing design are relatively independent, and collaborative design cannot accurately reflect the structural status of the indoor model. .

Method used

Through a three-dimensional modeling method of the filling room based on two-dimensional plane drawings, including cleaning drawings, renaming layers, identifying layer elements, obtaining operating parameters, and forming a three-dimensional model based on these parameters, reducing manual intervention and improving modeling Efficiency and accuracy.

Benefits of technology

It realizes automatic reading of 2D plan drawing information and quickly generates 3D models, reducing human errors, improving modeling speed and accuracy, enhancing the utilization of 2D plan drawings in simulation calculations, and supporting digital collaboration between filling rooms. design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118691741A
    Figure CN118691741A
Patent Text Reader

Abstract

The invention discloses a filling room three-dimensional modeling method, system and equipment based on a two-dimensional plane drawing. The method comprises the steps that the two-dimensional plane drawing is cleaned; renaming each layer in the two-dimensional plane drawing; splitting the layer name and obtaining related information, reading and identifying geometric elements contained in the layer, and if character height information exists, replacing the height information obtained after splitting the layer name with the character height information; surface operation parameters or body operation parameters are obtained through calculation; processing the geometric elements according to the operation parameters to form a three-dimensional model; and summarizing the three-dimensional voxel models generated by different geometric elements in the layers in one file, and performing deemed output according to name information in the layers. According to the method, the two-dimensional plane drawing of each part of the filling room can be converted into the three-dimensional model, so that the work of manual modeling can be simplified, errors caused by manual drawing recognition and modeling can be avoided, the utilization degree of the two-dimensional plane graph in the simulation modeling process is increased, and collaborative design and accurate and efficient modeling are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of pharmaceutical building modeling, and in particular to a three-dimensional modeling method, system and equipment for a filling room based on a two-dimensional plane diagram. Background Art

[0002] The pharmaceutical filling room needs to continuously control the indoor temperature and humidity and maintain the indoor cleanliness. Therefore, during the design process, a series of simulation calculations are required for the indoor airflow organization under different working conditions to finally determine the appropriate clean air conditioning solution for the filling room. In the flow field in the filling room, even the slightest dimensional changes in the indoor structure may have a significant impact on the flow field. It can be said that the accuracy of the geometric structure determines to a certain extent whether the simulation results are accurate and reliable. Therefore, in the simulation calculation process of the filling room, modeling is the most complex and labor-intensive work.

[0003] There are complex structures involving multiple disciplines in the filling room, such as walls, filling equipment, return air passages, laminar flow hoods, extended laminar flow, high-efficiency air outlets, and return air louvers. The plane drawings of different disciplines contain different information of different structures, such as workflow lines, wall contours, flow rates, elevations, and dimensioning lines. For simulation modeling, only information such as model contours and elevations is involved. At present, the three-dimensional modeling of pharmaceutical filling rooms usually relies on manual reading of two-dimensional CAD drawing information of different disciplines, screening and recording the required information, and then manually drawing points, connecting lines, and pictures to artificially equivalent models. The modeling speed is slow and there is a possibility of model errors in the artificial equivalent process; it is necessary to manually identify drawings of different disciplines to obtain basic data and be able to skillfully use three-dimensional modeling software. The efficiency of image recognition is low, the required professionalism is high, and there is a possibility of recognition errors; the simulation calculation process is relatively independent of the drawing design process. In the process of three-dimensional modeling, the utilization of plane template drawings is low, and collaborative design cannot accurately reflect the structural status of the indoor model. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to provide a method, system and equipment for three-dimensional modeling of a filling room based on a two-dimensional plane diagram.

[0005] Technical solution: A three-dimensional modeling method of a filling room based on a two-dimensional plane drawing of the present invention comprises the following steps:

[0006] S1. Clean up the two-dimensional plane drawings: determine the types of geometric elements that need to be modeled in the entire filling room and the height parameter information that can be used, delete the geometric elements and related annotations that do not need to be modeled in the two-dimensional plane drawings of the filling room, and only keep the geometric elements and related height parameter information that need to be modeled;

[0007] S2. Rename each layer in the two-dimensional plane drawing: determine whether the geometric element is in a suitable layer according to whether the voxel type after the geometric element modeling is a body or a surface; and rename the layer according to the geometric element information in the layer, and name the layer in a standard form for subsequent program operations;

[0008] S3, identifying the layer and the geometric elements in the layer: split the layer name and obtain relevant information, read and identify the geometric elements contained in the layer after splitting the layer name, and determine whether the geometric elements contain text height parameter information; if there is text height parameter information, use it to replace the height parameter information obtained after splitting the layer name;

[0009] S4, obtaining operation parameters: judging the type information of the modeled voxels separated in step S3, if the voxel type is a surface, performing calculation of obtaining surface operation parameters; if it is a volume, performing calculation of obtaining volume operation parameters;

[0010] S5. Process the geometric elements according to the operation parameters to form a three-dimensional model: generate a default standard unit body or surface at the origin of the coordinate system; then translate, stretch and rotate the unit surface or body according to the parameters calculated in step S4 to form the required three-dimensional voxel model of the production equipment;

[0011] S6. Combine and output the 3D voxel models: combine the 3D voxel models generated by different geometric elements in the layer into one file, and output them with the name information in the layer.

[0012] Furthermore, the types of geometric elements that need to be modeled in the entire filling room in step S1 include production equipment, equipment static pressure box, equipment glass windows, air vents, return air louvers and partition walls.

[0013] Furthermore, if the voxel type of the geometric element after modeling is a body, the height parameter information content in step S1 is in the form of P5_P6, where P5 and P6 are the elevations of the lower and upper surfaces of the geometric element respectively; if the voxel type of the geometric element after modeling is a surface, the height parameter information content in step S1 is in the form of P5, where P5 is the relative elevation after modeling; the corresponding geometric element is a polygon or a circle; the text coordinates are contained inside the corresponding polygon or circle.

[0014] Furthermore, the standard form of layer naming for subsequent program operations in step S2 is: P1_P2_P3_P4;

[0015] Among them, P1 is the name and can be any value;

[0016] P2 is the type of three-dimensional voxels modeled from the plane geometric elements in the layer. If the voxel type is a face, the value is F; if the voxel type is a body, the value is B.

[0017] P3 is the relationship between the modeled voxel and the original plane geometric element. If the plane geometric element can be stretched to become the modeled voxel, the value is E; if the plane geometric element can be translated to become the modeled voxel, the value is M;

[0018] P4 is the height parameter information of the layer. If P3 is E, the value should be two values, which are the elevations of the lower surface and the upper surface respectively; if P3 is M, the value should be one value, which refers to the relative elevation of the voxel after modeling.

[0019] Furthermore, step S3 specifically includes:

[0020] (1) Split the layer name, obtain the name, the voxel type after the geometric element is modeled, the relationship between the modeled voxel and the original geometric element, and the height parameter information;

[0021] (2) Read the plane geometric element in the layer. If the plane geometric element contains the height parameter information in the text form that meets the requirements of step S1, replace the height parameter information and subsequently use the height parameter information in the text form. Otherwise, use the height parameter information in the layer name.

[0022] (3) Identify the planar geometric elements in the layer and read the coordinates of the planar corner points of the geometric elements.

[0023] Furthermore, the calculation process of obtaining the body operation parameters in step S4 is specifically as follows:

[0024] (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of the corner points of the voxels after modeling are obtained;

[0025] (2) Calculate the length, width, radius, and height characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel;

[0026] (3) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0027] Furthermore, the process of calculating the surface operation parameters in step S4 is as follows: determining the relationship between the modeled voxels and the original plane geometric elements; if it is a translation, executing the process of calculating the operation parameters of the translation surface; if it is a stretch, executing the process of calculating the operation parameters of the stretch surface;

[0028] The specific calculation process of the operation parameters of the translation surface is as follows:

[0029] (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of each corner point of the modeled voxel are obtained;

[0030] (2) Calculate the length, width, and radius characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel;

[0031] (3) According to the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated;

[0032] The specific calculation process of the operating parameters of the stretch surface is as follows:

[0033] (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of each corner point of the modeled voxel are obtained;

[0034] (2) Calculate the length, height, and radius characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel;

[0035] (3) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0036] Furthermore, step S5 specifically includes:

[0037] (1) Generate a standard surface or volume corresponding to the voxel type at the origin of the standard Cartesian coordinate system;

[0038] (2) moving the standard surface or volume to the spatial coordinate parameters of the voxel corner points calculated in step S4;

[0039] (3) stretching and scaling the edge of the standard surface or volume to the voxel characteristic size calculated in step S4;

[0040] (4) Rotate the standard plane or body by the angle difference calculated in step S4.

[0041] In one embodiment of the present invention, a filling room three-dimensional modeling system based on a two-dimensional plane drawing includes:

[0042] The 2D plane drawing cleaning module is used to clean up the 2D plane drawings; determine the types of geometric elements that need to be modeled in the entire filling room and the height parameter information that can be used, delete the geometric elements and related annotations that do not need to be modeled in the 2D plane drawings of the filling room, and only retain the geometric elements and related height parameter information that need to be modeled;

[0043] The layer renaming module is used to rename each layer in the 2D plane drawing; determine whether the geometric element is in the appropriate layer according to the voxel type of the geometric element after modeling, whether it is a body or a surface; and rename the layer according to the geometric element information in the layer, naming the layer in the standard form for subsequent program operations;

[0044] The layer splitting module is used to split the names of each layer and obtain relevant information;

[0045] The contour processing module is used to identify the plane geometric elements in each layer and determine whether the geometric elements contain text height parameter information; if there is text height parameter information, it is used to replace the height parameter information in the layer splitting module;

[0046] A calculation module, used to calculate the spatial corner coordinates, the size of each side, and the angle difference between the side and the standard Cartesian coordinate axis of the modeled voxel;

[0047] A forming module is used to generate a default standard unit body or surface at the origin of the coordinate system, and then translate, stretch and rotate the unit surface or body according to the coordinates of the spatial corner points, the dimensions of each side, and the angle difference between the side and the standard Cartesian coordinate axis after the modeling, so as to form a three-dimensional voxel model;

[0048] The output module is used to aggregate the 3D voxel models generated by different geometric elements in the layer into one file, and output them by naming them according to the name information in the layer.

[0049] In one embodiment of the present invention, a computer device includes:

[0050] A memory storing executable program code;

[0051] a processor coupled to the memory;

[0052] The processor calls the executable program code stored in the memory to execute the steps of the method for three-dimensional modeling of a filling room based on a two-dimensional plane drawing as described in any one of claims 1 to 8.

[0053] Beneficial effects: Compared with the prior art, the advantages of the present invention are as follows: (1) it can automatically read the relevant information of the two-dimensional plane drawing, automatically generate the corresponding three-dimensional model, and realize the rapid modeling of the filling room; (2) through the layer splitting, contour processing and calculation module, it can automatically read the layer name and various required information in the drawing, and calculate and obtain the basic data; (3) through the contour processing, calculation module and forming module, it can automatically identify the two-dimensional geometric elements to be modeled, calculate and obtain the required basic data, and automatically translate, stretch and rotate the unit surface / body to form a three-dimensional voxel model; it can make modeling faster, and reduce the process of artificial equivalent model in the modeling process, and reduce the probability of model error; (4) by modifying the geometric element contour and height parameters on the two-dimensional plane drawing, the two-dimensional plane design drawing can be integrated into the simulation calculation, and the corresponding three-dimensional voxel model can be automatically generated. With the change of the drawing parameters, the real state of the indoor model in the design process can be quickly and accurately reflected; (5) a set of modeling methods for obtaining data from the plane drawing and batch processing can be formed, which can be automatically operated by the system and can be used in the digital collaborative design platform of the filling room in the future. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is a simplified flow chart of the method of the present invention;

[0055] Figure 2 is a flow chart of the method of the present invention;

[0056] Figure 3 It is a cleaned up two-dimensional plane drawing;

[0057] Figure 4 This is a schematic diagram of the renamed layer;

[0058] Figure 5 It is the final generated 3D voxel file. DETAILED DESCRIPTION

[0059] Since most filling rooms have similar design principles, the appearance of buildings, HVAC and equipment has certain commonalities, and the data required for modeling also has commonalities. Therefore, the present invention provides a filling room three-dimensional modeling method and system based on two-dimensional plane drawings in view of this rule. The two-dimensional drawings of various parts of the filling room can be converted into three-dimensional models through the method of the present invention, which can not only simplify the work of manual modeling, but also avoid errors in manual image recognition and modeling, increase the utilization of two-dimensional plane drawings in the simulation modeling process, and realize collaborative design and accurate and efficient modeling.

[0060] like Figure 1 and Figure 2 As shown, a three-dimensional modeling method of a filling room based on a two-dimensional plane drawing of the present invention comprises the following steps:

[0061] S1. Clean up the two-dimensional plane drawing;

[0062] First, determine the types of geometric elements that need to be modeled and the available height parameter information in the entire filling room, delete the geometric elements and related annotations that do not need to be modeled in the two-dimensional plane drawings of the filling room, and only retain the geometric elements and height parameter information that need to be modeled. Geometric elements include: line segments, polylines, arcs, circles, polygons, etc. The height parameter information needs to be saved in the form of text in the graphics of the corresponding geometric elements. The height parameter information requirements are as follows:

[0063] (1) The height parameter information content is in the form of P5_P6, where P5 and P6 are the elevations of the lower and upper surfaces of the geometric element respectively;

[0064] (2) The corresponding geometric element is a polygon or a circle;

[0065] (3) The height parameter information is contained in the corresponding polygon or circle in the form of text coordinates.

[0066] In this embodiment, the entire filling room can be divided into six types of geometric elements that need to be modeled, such as production equipment, equipment static pressure box, equipment glass window, air vent, return air louver, partition wall, etc. The two-dimensional plane drawing of the filling room does not contain usable height parameter information. You can delete other layer information that does not contain geometric elements that need to be modeled, and only keep the required layer information. Furthermore, check the geometric elements in the retained layers, delete irrelevant elements, and ensure that only modeling-related line segments, polylines, polygons and other geometric elements are retained. Figure 3 shown.

[0067] S2. Rename each layer in the 2D plan drawing;

[0068] According to the voxel type of the geometric element after modeling, whether it is a body or a surface, determine whether the geometric element is in the appropriate layer. And rename the layer according to the geometric element information in the layer, and name the layer in the standard form of subsequent program operations: P1_P2_P3_P4.

[0069] Among them, P1 is the name and can be any value.

[0070] P2 is the type of three-dimensional voxel modeled by the planar geometric elements in this layer. If the voxel type is a face, the value is F; if the voxel type is a body, the value is B.

[0071] P3 is the relationship between the modeled voxel and the original plane geometric element. If the plane geometric element can become the modeled voxel by stretching, the value is E; if the plane geometric element can become the modeled voxel by translation, the value is M.

[0072] P4 is the height parameter information of the layer. If P3 is E, the value should be two values, which are the elevation of the lower surface and the upper surface. If P3 is M, the value should be one value, which refers to the relative elevation of the voxel after modeling.

[0073] Generally, high-efficiency air outlets, punching equalizing plates, etc. are established as surfaces, their geometric models are established using closed polylines, and three-dimensional surface models are established by moving surfaces;

[0074] Establish the return air outlet as a surface or line, use closed polylines or line segments to establish its geometric model, and establish a three-dimensional surface model by moving the surface (horizontally arranged) or stretching the line (vertically arranged);

[0075] Establish return air louvers, equipment glass windows, partition walls, etc. as line segments or polylines, use line segments to establish their geometric models, and establish three-dimensional surface models by stretching surfaces;

[0076] The production equipment, transmission equipment, computers, raw materials, etc. are established as surfaces, their geometric models are established using closed polylines, and three-dimensional models are established by stretching the surfaces.

[0077] The information for renaming layers usually comes from drawing annotations, geometric element types, and related design parameter tables. For example, in this embodiment, the EQP layer contains information about production equipment, and usually uses closed polylines to establish its plane geometric model, and uses extruded surfaces to establish a three-dimensional model. The voxel type after modeling is body, and the relationship between the three-dimensional voxel and the plane geometric element is extrusion. The plane geometric element does not contain usable height parameter information. By consulting the equipment parameter table, it is determined that the production equipment corresponding to the geometric element in the layer is placed on the ground and has a height of 1000, so it is named EQP_B_E_0_1000, such as Figure 4 shown.

[0078] S3, identifying the layer name and the geometric elements in the layer;

[0079] (1) Split the layer name, obtain the name, the voxel type after the geometric element is modeled, the relationship between the modeled voxel and the original geometric element, and the height parameter information;

[0080] (2) Read the plane geometric element in the layer. If the plane geometric element contains height parameter information in the text form described in step S1, replace the height parameter information and subsequently use the height parameter information in the text form. Otherwise, use the height parameter information in the layer name.

[0081] (3) Identify the plane geometric elements in the layer and read the plane corner point coordinates of the plane geometric elements.

[0082] In this embodiment, the layer name must first be split and relevant information must be obtained. For example, in this embodiment, the production equipment layer name EQP_B_E_0_1000 will be split into the following information and stored: ① Name: EQP; ② Voxel type: body; ③ Relationship between voxels and plane geometric elements: stretch; ④ Voxel height parameter information: the lower surface elevation is 0, and the upper surface elevation is 1000. Further, after the layer name is split, the geometric elements contained in the layer are read and identified to determine whether there is usable height parameter information. For example, in this embodiment, the geometric element is a polygon, in which there is no usable height parameter information, so the previously read and stored height parameter information is not replaced with the corresponding height information.

[0083] S4, obtaining operation parameters: judging the type information of the modeled voxels separated in step S3, if the voxel type is a surface, performing calculation of obtaining surface operation parameters; if it is a volume, performing calculation of obtaining volume operation parameters; specifically:

[0084] The specific calculation process for obtaining volume operation parameters is as follows: (1) Combining the coordinates of the plane corner points of the geometric elements with the height information, the spatial coordinate parameters of the corner points of the modeled voxels are obtained; (2) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the length, width, radius, height and other characteristic dimensions of the voxels are calculated; (3) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0085] The specific process of obtaining the surface operation parameter calculation is: determine the relationship between the modeled voxels and the original plane geometric elements. If it is a translation, execute the operation parameter calculation process of the translation surface; if it is a stretch, execute the operation parameter calculation process of the stretch surface. Specifically:

[0086] The specific calculation process of the operation parameters of the translation surface is as follows: (1) Combining the coordinates of the corner points of the geometric element plane with the height data, the spatial coordinate parameters of each corner point of the modeled voxel are obtained; (2) Based on the spatial coordinate parameters of the corner points of the modeled voxel, the characteristic dimensions of the voxel such as length, width, and radius are calculated; (3) Based on the spatial coordinate parameters of the corner points of the modeled voxel, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0087] The specific calculation process of the operating parameters of the stretched surface is as follows: (1) Combining the coordinates of the plane corner points of the geometric element with the height data, the spatial coordinate parameters of each corner point of the modeled voxel are obtained; (2) Based on the spatial coordinate parameters of the corner points of the modeled voxel, the characteristic dimensions of the voxel such as length, height, and radius are calculated; (3) Based on the spatial coordinate parameters of the corner points of the modeled voxel, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0088] In this embodiment, the layer name information split out in step S3 must first be judged and the appropriate calculation process must be selected. For example, in this embodiment, the production equipment layer name EQP_B_E_0_1000 is a volume because its voxel type is volume, so the volume operation parameter acquisition calculation is performed. (1) Combine the coordinates of the corner points of the geometric element plane and the height parameter information to obtain the spatial coordinate parameters of the corner points of the modeled voxels; (2) According to the spatial coordinate parameters of the corner points of the modeled voxels, the length, width and height of the voxels are calculated; (3) According to the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

[0089] S5. Processing the geometric elements according to the operation parameters to form a three-dimensional model; including:

[0090] (1) Generate a standard surface / volume corresponding to the voxel type at the origin of the standard Cartesian coordinate system;

[0091] (2) moving the standard surface / volume to the spatial coordinate parameters of the voxel corner points calculated in step S4;

[0092] (3) stretching and scaling the edge of the standard surface / volume to the voxel characteristic size calculated in step S4;

[0093] (4) Rotate the standard plane / body by the angle difference calculated in step S4.

[0094] In this embodiment, a default standard unit volume / surface is first generated at the origin of the coordinate system, that is, a volume with each side length of 1 and the coordinates of the spatial corner points are all located on the positive coordinate axis, or a surface with each side length of 1 and located on the XY plane. Then, according to the parameters calculated in step S4, the unit surface / volume is translated, stretched and rotated to form a three-dimensional voxel model. For example, in this embodiment, the layer name EQP_B_E_0_1000 is a volume because its voxel type is a volume, so a standard unit volume is first established at the origin of the coordinate system. Then, according to the operating parameters in step S4, the unit volume is translated, stretched and rotated to form the required three-dimensional model of the production equipment.

[0095] S6. Combining and outputting the three-dimensional models; including:

[0096] (1) Combine the geometric model contained in the layer and the 3D model generated by the above steps into the same file;

[0097] (2) Use the layer name split in step S3 to name the file and output it as a FreeCAD file.

[0098] A layer may contain multiple 2D geometric models that need to be modeled. After the 3D voxel models corresponding to the multiple 2D geometric models are established through the above operations, these 3D voxel models are combined into one file and the FreeCAD file is named with the layer name. For example, in this embodiment, the 3D voxel model FreeCAD file corresponding to the geometric model in the layer EQP_B_E_0_1000 is named EQP. The final 3D model file is as follows: Figure 5 shown.

[0099] This embodiment also discloses a filling room three-dimensional modeling system based on a two-dimensional plane map, which includes a data recognition subsystem, a model building subsystem and a combined output subsystem; wherein the data recognition subsystem includes: a layer splitting and a contour processing module, and the above two modules are connected in sequence, and the layers of the two-dimensional plane map are cyclically scanned until the data recognition of all layers is completed. The model building subsystem is responsible for establishing a three-dimensional voxel model corresponding to the two-dimensional geometric model, which includes a calculation module and a molding model. By calculating the relevant parameters obtained by the data recognition system, it is determined that the molding module needs to move, stretch, and rotate the standard unit body / surface, so as to adjust and improve the three-dimensional voxel model required for the simulation calculation. Finally, the combined output subsystem combines the three-dimensional voxel models generated by each geometric model in the layer to generate a corresponding three-dimensional voxel model file.

[0100] Specifically, the layer splitting module is used to split the names of each layer and identify the corresponding information.

[0101] The contour processing module is used to identify the plane geometric elements in each layer and determine whether the geometric elements contain height parameter information in text form; if there is height parameter information in text form, it is used to replace the height parameter information in the layer splitting module.

[0102] The calculation module is used to calculate the spatial corner coordinates, the size of each side, and the angle difference between the side and the standard Cartesian coordinate axis of the voxel after modeling.

[0103] The forming module is used to generate a unit surface / volume at the coordinate origin, and then translate, stretch and rotate the unit surface / volume according to the coordinates of the spatial corner points, the dimensions of each side, and the angle difference between the side and the standard Cartesian coordinate axis after calculation and modeling to form a three-dimensional voxel model.

[0104] The output module is used to aggregate the 3D voxel models generated by different geometric elements in the layer into one file and name it according to the name information in the layer.

[0105] If the two-dimensional plan drawings of the filling room contain geometric elements and related annotations that do not need to be modeled, the two-dimensional plan drawings need to be processed to retain only the geometric elements and related height parameter information that need to be modeled. Therefore, the system also includes: a two-dimensional plan drawing cleaning module and a layer renaming module, in which:

[0106] The 2D plane drawing cleaning module is used to clean up the 2D plane drawings; determine the types of geometric elements that need to be modeled in the entire filling room and the height parameter information that can be used, delete the geometric elements and related annotations that do not need to be modeled in the 2D plane drawings of the filling room, and only retain the geometric elements and related height parameter information that need to be modeled;

[0107] The layer renaming module is used to rename each layer in the 2D plane drawing; determine whether the geometric element is in the appropriate layer according to the voxel type of the geometric element after modeling, whether it is a body or a surface; and rename the layer according to the geometric element information in the layer, naming the layer in the standard form for subsequent program operations;

[0108] The division of the functional modules in the above method example is not unique, and can be adaptively adjusted according to the actual situation. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module; the above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present invention is schematic, which is only a logical function division, and there may be other division methods in actual implementation.

[0109] Specifically, the system and method are carried on a filling room three-dimensional modeling computer device based on a two-dimensional plane template diagram, including a processor and a memory; the memory is used to store computer execution instructions, the processor is connected to the memory through the bus, the processor executes the computer execution instructions stored in the memory, and the communication device is responsible for connecting to the external network to perform the data transmission and reception process; the processor is connected to the memory, and the memory includes database software;

[0110] The processor and memory contain several instructions for enabling a personal computer, server or network device to execute all or part of the steps of the method; the processor types used include central processing units, general-purpose processors, digital signal processors, application-specific integrated circuits, field programmable gate arrays or other programmable logic devices, transistor logic devices, hardware components or any combination thereof; the storage medium includes a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.

[0111] Specifically, the software system is partially carried by a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the contents of the present invention. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of DSP and microprocessor, and the like. The communication equipment for communication between relevant personnel and users can utilize a transceiver, a transceiver circuit or a communication interface, and the like.

[0112] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, firmware or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.

[0113] Computer-readable media includes both computer storage media and communication media, including any media that facilitates transfer of a computer program from one place to another. Storage media may be any available media that can be accessed by a general or special purpose computer.

[0114] Those skilled in the art should understand that the method and system of the present invention are not limited to the embodiments in the specific implementation mode, and the above specific description is only for the purpose of explaining the present invention, and is not used to limit the present invention. Those skilled in the art can derive other implementation modes based on the technical solution of the present invention, which also belong to the technical innovation scope of the present invention, and the protection scope of the present invention is defined by the claims and their equivalents.

Claims

1. A three-dimensional modeling method for a filling room based on a two-dimensional plane drawing, characterized in that: The following steps are involved: S1. Clean up the two-dimensional plane drawings: determine the types of geometric elements that need to be modeled in the entire filling room and the height parameter information that can be used, delete the geometric elements and related annotations that do not need to be modeled in the two-dimensional plane drawings of the filling room, and only keep the geometric elements and related height parameter information that need to be modeled; S2. Rename each layer in the two-dimensional plane drawing: determine whether the geometric element is in a suitable layer according to whether the voxel type after the geometric element modeling is a body or a surface; and rename the layer according to the geometric element information in the layer, and name the layer in a standard form for subsequent program operations; S3, identifying the layer and the geometric elements in the layer: split the layer name and obtain relevant information, read and identify the geometric elements contained in the layer after splitting the layer name, and determine whether the geometric elements contain text height parameter information; if there is text height parameter information, use it to replace the height parameter information obtained after splitting the layer name; S4, obtaining operation parameters: judging the type information of the modeled voxels separated in step S3, if the voxel type is a surface, performing calculation of obtaining surface operation parameters; if it is a volume, performing calculation of obtaining volume operation parameters; S5. Process the geometric elements according to the operation parameters to form a three-dimensional model: generate a default standard unit body or surface at the origin of the coordinate system; then translate, stretch and rotate the unit surface or body according to the parameters calculated in step S4 to form the required three-dimensional voxel model of the production equipment; S6. Combine and output the 3D voxel models: combine the 3D voxel models generated by different geometric elements in the layer into one file, and output them with the name information in the layer.

2. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: In step S1, the types of geometric elements that need to be modeled in the entire filling room include production equipment, equipment static pressure box, equipment glass windows, air vents, return air louvers and partition walls.

3. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: If the voxel type of the geometric element after modeling is a body, the height parameter information content in step S1 is in the form of P5_P6, where P5 and P6 are the elevations of the lower and upper surfaces of the geometric element respectively; if the voxel type of the geometric element after modeling is a surface, the height parameter information content in step S1 is in the form of P5, where P5 is the relative elevation after modeling; the corresponding geometric element is a polygon or a circle; the text coordinates are contained inside the corresponding polygon or circle.

4. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: The standard form of layer naming for subsequent program operations in step S2 is: P1_P2_P3_P4; Among them, P1 is the name and can be any value; P2 is the type of three-dimensional voxels modeled from the plane geometric elements in the layer. If the voxel type is a face, the value is F; if the voxel type is a body, the value is B. P3 is the relationship between the modeled voxel and the original plane geometric element. If the plane geometric element can be stretched to become the modeled voxel, the value is E; if the plane geometric element can be translated to become the modeled voxel, the value is M; P4 is the height parameter information of the layer. If P3 is E, the value should be two values, which are the elevations of the lower surface and the upper surface respectively; if P3 is M, the value should be one value, which refers to the relative elevation of the voxel after modeling.

5. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: Step S3 specifically includes: (1) Split the layer name, obtain the name, the voxel type after the geometric element is modeled, the relationship between the modeled voxel and the original geometric element, and the height parameter information; (2) Read the plane geometric element in the layer. If the plane geometric element contains the height parameter information in text form that meets the requirements of step S1, then the height parameter information in text form is used subsequently. Otherwise, the height parameter information in the layer name is used. (3) Identify the planar geometric elements in the layer and read the coordinates of the planar corner points of the geometric elements.

6. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: The specific process of obtaining the body operation parameter calculation in step S4 is as follows: (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of the corner points of the voxels after modeling are obtained; (2) Calculate the length, width, radius, and height characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel; (3) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

7. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: The specific process of obtaining the surface operation parameter calculation process in step S4 is: judging the relationship between the modeled voxels and the original plane geometric elements, if it is a translation, executing the operation parameter calculation process of the translation surface; if it is a stretching, executing the operation parameter calculation process of the stretching surface; The specific calculation process of the operation parameters of the translation surface is as follows: (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of each corner point of the modeled voxel are obtained; (2) Calculate the length, width, and radius characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel; (3) According to the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated; The specific calculation process of the operating parameters of the stretch surface is as follows: (1) Combining the coordinates of the plane corner points of the geometric elements with the height parameter information, the spatial coordinate parameters of each corner point of the modeled voxel are obtained; (2) Calculate the length, height, and radius characteristic dimensions of the voxel based on the spatial coordinate parameters of the corner points of the modeled voxel; (3) Based on the spatial coordinate parameters of the corner points of the modeled voxels, the angle difference between the voxel edge and the standard Cartesian coordinate axis is calculated.

8. The three-dimensional modeling method of a filling room based on a two-dimensional plane drawing according to claim 1 is characterized in that: Step S5 specifically includes: (1) Generate a standard surface or volume corresponding to the voxel type at the origin of the standard Cartesian coordinate system; (2) moving the standard surface or volume to the spatial coordinate parameters of the voxel corner points calculated in step S4; (3) stretching and scaling the edge of the standard surface or volume to the voxel characteristic size calculated in step S4; (4) Rotate the standard plane or body by the angle difference calculated in step S4.

9. A filling room three-dimensional modeling system based on two-dimensional plane drawings, characterized in that: include: A two-dimensional plane drawing cleaning module is used to clean up two-dimensional plane drawings; Determine the types of geometric elements that need to be modeled in the entire filling room and the height parameter information that can be used, delete the geometric elements and related annotations that do not need to be modeled in the two-dimensional plane drawings of the filling room, and only retain the geometric elements and related height parameter information that need to be modeled; The layer renaming module is used to rename each layer in the 2D plane drawing; determine whether the geometric element is in the appropriate layer according to the voxel type of the geometric element after modeling, whether it is a body or a surface; and rename the layer according to the geometric element information in the layer, naming the layer in the standard form for subsequent program operations; The layer splitting module is used to split the names of each layer and obtain relevant information; The contour processing module is used to identify the plane geometric elements in each layer and determine whether the geometric elements contain text height parameter information; if there is text height parameter information, it is used to replace the height parameter information in the layer splitting module; A calculation module, used to calculate the spatial corner coordinates, the size of each side, and the angle difference between the side and the standard Cartesian coordinate axis of the modeled voxel; A forming module is used to generate a default standard unit body or surface at the origin of the coordinate system, and then translate, stretch and rotate the unit surface or body according to the coordinates of the spatial corner points, the dimensions of each side, and the angle difference between the side and the standard Cartesian coordinate axis after the modeling, so as to form a three-dimensional voxel model; The output module is used to aggregate the 3D voxel models generated by different geometric elements in the layer into one file, and output them by naming them according to the name information in the layer.

10. A computer 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 the method for three-dimensional modeling of a filling room based on a two-dimensional plane drawing as described in any one of claims 1 to 8.

Citation Information

Cited By

  • Three-dimensional modeling method and device, storage medium and electronic equipment

    CN119888068A

  • Space H-shaped steel tubular joint parametric modeling method based on layer information

    CN120597393A