Methods and apparatus for generating 3D models

By extracting and analyzing architectural elements from 2D drawings, the 3D model is automatically constructed, which solves the cumbersome and error problems of manual mold turning process, achieves efficient and accurate 3D model generation, and reduces time and labor costs.

CN113987653BActive Publication Date: 2024-08-23JIULING (SHANGHAI) INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111277456.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-29
Publication Date
2024-08-23
Estimated Expiration
2041-10-29

AI Technical Summary

Technical Problem

In the construction industry, the existing process of manually turning over molds to generate three-dimensional models based on two-dimensional drawings is cumbersome and error-prone, resulting in high time and labor costs.

Method used

By extracting target primitives (such as beams, columns, walls, doors, and window primitives) from two-dimensional drawings, analyze and process them to generate corresponding information, and use this information to automatically build three-dimensional models, including wall models, beams, etc. model, plate model, column model, door model and window model.

Benefits of technology

It reduces the designer's workload, avoids manual placement errors, saves time and labor costs, and improves the efficiency and accuracy of 3D model generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987653B
    Figure CN113987653B
Patent Text Reader

Abstract

The present application relates to a method and device for generating a three-dimensional model. The method comprises: extracting target graphics from a two-dimensional drawing of a target building; wherein the target graphics include beam graphics, column graphics, wall graphics, door graphics and window graphics; analyzing and processing the target graphics to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information; generating a three-dimensional model of the target building according to the target information, wherein the three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model. The use of this method can save time and labor costs in the mold remodeling work.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computer-aided architectural design, and in particular to a method and device for generating a three-dimensional model. Background Art

[0002] In the construction industry, two-dimensional drawings of buildings are usually drawn using CAD (Computer Aided Design).

[0003] In the related art, when building a 3D model based on a 2D drawing, it is mainly done by the designer manually turning the mold. This work is not only highly repetitive and tedious, but also prone to errors in manual placement, and the time and labor costs are very high. Summary of the invention

[0004] Based on this, it is necessary to provide a method and device for generating a three-dimensional model that can save time and labor costs in mold remodeling work in order to solve the above technical problems.

[0005] A method for generating a three-dimensional model, the method comprising:

[0006] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0007] Analyze and process the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0008] A three-dimensional model of a target building is generated according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0009] In one embodiment, the above-mentioned analyzing and processing the target primitive to obtain the target information includes:

[0010] Analyze and process the beam element to obtain the beam information;

[0011] The beam information is analyzed and processed to obtain the plate information.

[0012] In one embodiment, the beam information includes position information, size information and beam area information of multiple beam edges; the plate information includes plate area information; the plate information is obtained by analyzing and processing the beam information, including:

[0013] Preprocess the beam edge according to its position information and size information;

[0014] According to each pre-processed beam edge line, two half edges with opposite directions are obtained respectively;

[0015] The area enclosed by multiple half-edges connected end to end along the same direction is determined as a closed area;

[0016] The information of the plate area is determined based on the information of the beam area and the closed area.

[0017] In one embodiment, the above-mentioned analyzing and processing the beam element to obtain the beam information includes:

[0018] Analyzing and processing the beam element to obtain position information of multiple beam edges, and determining multiple line segment sets according to the position information of the multiple beam edges; each line segment set includes multiple beam edges parallel to each other;

[0019] For each line segment set, the line segment set is divided into a plurality of collinear sets; each collinear set includes at least one beam edge line located on the same straight line;

[0020] For any collinear set, find another collinear set adjacent to the collinear set, project the beam edges in the two collinear sets onto the first plane, and obtain the size information of the beam edges according to the first projection result; wherein the distance between the beam edges of the two collinear sets is less than a first preset distance threshold;

[0021] The information of the beam area is obtained based on the position information and size information of multiple beam edges.

[0022] In one embodiment, the above-mentioned analyzing and processing the target primitive to obtain the target information includes:

[0023] Analyze and process the column graphics to obtain column information.

[0024] In one embodiment, the above-mentioned analyzing and processing the target primitive to obtain the target information includes:

[0025] Analyze and process the door graphic element to obtain the door information;

[0026] Analyze and process the window primitives to obtain window information;

[0027] The wall information is obtained by analyzing and processing the wall elements based on the door information and the window information.

[0028] In one embodiment, the door information includes the door type, position information and size information of the door; the window information includes the window type, position information and size information of the window; the wall information includes the position information and size information of multiple wall lines; the wall information is obtained by analyzing and processing the wall element based on the door information and the window information, including:

[0029] Analyze and process the wall elements to obtain the location information of the wall lines;

[0030] Perform line merging processing according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information to obtain a wall line set;

[0031] For each wall line in the wall line set, find another wall line adjacent to the wall line, project the two wall lines onto a second plane, and obtain size information of the wall line according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold;

[0032] The wall information is obtained according to the position information and size information of the plurality of wall lines.

[0033] In one embodiment, the above-mentioned analyzing and processing the door primitive to obtain the door information includes:

[0034] Analyze and process the door graphic element to obtain multiple door blocks;

[0035] The corresponding door type, location information and size information are determined according to each door block to obtain the door information.

[0036] In one embodiment, the above-mentioned analyzing and processing the window primitive to obtain the window information includes:

[0037] Analyze and process the window primitives to obtain multiple window blocks;

[0038] The corresponding window type, position information and size information are determined according to each window block to obtain the window information.

[0039] A method for generating a three-dimensional model, the method comprising:

[0040] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0041] Analyze and process the beam element to obtain the beam information;

[0042] Analyze and process the beam information to obtain the plate information;

[0043] Analyze and process the column element to obtain column information;

[0044] Analyze and process the door graphic element to obtain the door information;

[0045] Analyze and process the window primitives to obtain window information;

[0046] Analyze and process the wall element based on the door information and the window information to obtain the wall information;

[0047] A three-dimensional model of a target building is generated according to beam information, slab information, column information, wall information, door information and window information. The three-dimensional model of the target building includes a wall model, a beam model, a slab model, a column model, a door model and a window model.

[0048] A three-dimensional model generation device, the device comprising:

[0049] An element extraction module is used to extract target elements from the two-dimensional drawings of the target building; wherein the target elements include beam elements, column elements, wall elements, door elements and window elements;

[0050] The graphic element analysis module is used to analyze and process the target graphic element to obtain the target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0051] The model generation module is used to generate a three-dimensional model of a target building according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0052] In one of the embodiments, the above-mentioned graphic element analysis module is specifically used to analyze and process the beam graphic element to obtain beam information; and analyze and process the beam information to obtain plate information.

[0053] In one of the embodiments, the beam information includes position information, size information and beam area information of multiple beam edges; the plate information includes plate area information; the above-mentioned graphic element analysis module is specifically used to pre-process the beam edges according to the position information and size information of the beam edges; obtain two half edges in opposite directions according to each pre-processed beam edge; determine the area enclosed by multiple half edges connected end to end along the same direction as a closed area; and determine the plate area information according to the beam area information and the closed area.

[0054] In one of the embodiments, the above-mentioned element analysis module is specifically used to analyze and process the beam element to obtain the position information of multiple beam edge lines, and determine multiple line segment sets based on the position information of the multiple beam edge lines; each line segment set includes multiple beam edge lines parallel to each other; for each line segment set, the line segment set is divided into multiple collinear sets; each collinear set includes at least one beam edge line located on the same straight line; for any collinear set, another collinear set adjacent to the collinear set is found, the beam edge lines in the two collinear sets are projected onto the first plane, and the size information of the beam edge lines is obtained based on the first projection result; wherein the distance between the beam edge lines of the two collinear sets is less than a first preset distance threshold; information on the beam area is obtained based on the position information and size information of the multiple beam edge lines.

[0055] In one of the embodiments, the above-mentioned graphic element analysis module is specifically used to analyze and process the column graphic element to obtain the column information.

[0056] In one of the embodiments, the above-mentioned graphic element analysis module is specifically used to analyze and process the door graphic element to obtain door information; analyze and process the window graphic element to obtain window information; and analyze and process the wall graphic element based on the door information and the window information to obtain wall information.

[0057] In one of the embodiments, the door information includes the door type, position information and size information of the door; the window information includes the window type, position information and size information of the window; the wall information includes the position information and size information of multiple wall lines; the above-mentioned graphic element analysis module is specifically used to analyze and process the wall graphic elements to obtain the position information of the wall lines; according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information, line merging processing is performed to obtain a wall line set; for each wall line in the wall line set, another wall line adjacent to the wall line is found, the two wall lines are projected onto a second plane, and the size information of the wall line is obtained according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; the wall information is obtained according to the position information and size information of the multiple wall lines.

[0058] In one of the embodiments, the above-mentioned graphic element analysis module is specifically used to analyze and process the door graphic element to obtain multiple door blocks; determine the corresponding door type, position information and size information according to each door block to obtain door information.

[0059] In one of the embodiments, the above-mentioned primitive analysis module is specifically used to analyze and process the window primitive to obtain multiple window blocks; determine the corresponding window type, position information and size information according to each window block to obtain window information.

[0060] A three-dimensional model generation device, the device comprising:

[0061] An element extraction module is used to extract target elements from the two-dimensional drawings of the target building; wherein the target elements include beam elements, column elements, wall elements, door elements and window elements;

[0062] Beam element analysis module, used to analyze and process beam elements to obtain beam information;

[0063] The beam information analysis module is used to analyze and process the beam information to obtain the plate information;

[0064] A column element analysis module is used to analyze and process the column element to obtain column information;

[0065] A door element analysis module is used to analyze and process the door element to obtain door information;

[0066] A window element analysis module is used to analyze and process the window element to obtain window information;

[0067] A wall element analysis module is used to analyze and process the wall element based on the door information and the window information to obtain the wall information;

[0068] The model generation module is used to generate a three-dimensional model of the target building according to the beam information, plate information, column information, wall information, door information and window information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0069] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0070] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0071] Analyze and process the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0072] A three-dimensional model of a target building is generated according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0073] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0074] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0075] Analyze and process the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0076] A three-dimensional model of a target building is generated according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0077] The above-mentioned three-dimensional model generation method and device extract the target graphics element from the two-dimensional drawing of the target building; wherein the target graphics element includes the beam graphics element, the column graphics element, the wall graphics element, the door graphics element and the window graphics element; the target graphics element is analyzed and processed to obtain the target information; wherein the target information includes the beam information, the plate information, the column information, the wall information, the door information and the window information; and the three-dimensional model of the target building is generated according to the target information. Through the embodiment of the present disclosure, the computer device can automatically generate the three-dimensional model of the target building according to the two-dimensional drawing of the target building, which can reduce the designer's work and avoid errors in manual placement compared with the manual mold turning in the prior art, thereby saving time and labor costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 A diagram of an application environment of a method for generating a three-dimensional model in an embodiment;

[0079] Figure 2 is a schematic flow chart of a method for generating a three-dimensional model in an embodiment;

[0080] Figure 3 It is a flowchart of the steps of analyzing and processing the target graphic element to obtain the target information in one embodiment;

[0081] Figure 4 A schematic diagram of a flow chart of steps for analyzing and processing a beam element in one embodiment;

[0082] Figure 5 is a schematic diagram of a beam element in one embodiment;

[0083] Figure 6a A schematic diagram of dividing a beam edge into two half edges in one embodiment;

[0084] Figure 6b A schematic diagram of a plate area enclosed by half edges in one embodiment;

[0085] Figure 7a One of the schematic diagrams of searching the plate area in one embodiment;

[0086] Figure 7b A second schematic diagram of searching a plate area in an embodiment;

[0087] Figure 8 It is a flowchart of the step of analyzing and processing the target graphic element to obtain the target information in another embodiment;

[0088] Figure 9a One of the schematic diagrams of a swing door in one embodiment;

[0089] Figure 9b This is a second schematic diagram of a swing door in an embodiment;

[0090] Fig.10 is a schematic diagram of a sliding door in one embodiment;

[0091] Fig.11 is a schematic diagram of a window in one embodiment;

[0092] Fig.12 is a schematic diagram of a door and a wall line in one embodiment;

[0093] Fig.13 is a flow chart of a method for generating a three-dimensional model in another embodiment;

[0094] Fig.14 is a structural block diagram of a device for generating a three-dimensional model in one embodiment;

[0095] Fig.15 It is a structural block diagram of a device for generating a three-dimensional model in another embodiment. DETAILED DESCRIPTION

[0096] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0097] The method for generating a three-dimensional model provided in this application can be applied to Figure 1 Computer equipment shown.

[0098] The computer device comprises a processor, a memory, a network interface, a database, a display screen and an input device connected via a system bus, wherein the processor of the computer device is used to provide computing and control capabilities.

[0099] The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store various entity models and related information of the entity models in the following embodiments. For specific descriptions of various entity models and related information of the entity models, please refer to the specific descriptions in the following embodiments. The network interface of the computer device can be used to communicate with other external devices through a network connection. Optionally, the computer device can be a server, a desktop, a personal digital assistant, or other terminal devices, such as a tablet computer, a mobile phone, etc., or a cloud or remote server. The specific form of the computer device is not limited in the embodiments of the present application. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the housing of the computer device, or an external keyboard, touchpad or mouse, etc. Of course, the input device and the display screen may not be part of the computer device, and may be an external device of the computer device.

[0100] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0101] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0102] It should be noted that the execution subject of the following method embodiment may be a device for generating a three-dimensional model, which may be implemented as part or all of the above-mentioned computer device through software, hardware, or a combination of software and hardware. The following method embodiment is described by taking the execution subject as a computer device as an example.

[0103] In one embodiment, Figure 2 As shown, a method for generating a three-dimensional model is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate, including the following steps:

[0104] Step 101, extracting target graphics elements from the two-dimensional drawing of the target building.

[0105] The target primitives include beam primitives, column primitives, wall primitives, door primitives, and window primitives. In practical applications, the target primitives may also include other primitives, which are not limited in the embodiments of the present disclosure.

[0106] The computer device obtains the two-dimensional drawing of the target building in advance. Optionally, the two-dimensional drawing is drawn using CAD and saved in a preset format. The preset format may be DWG, which is not limited in the embodiment of the present disclosure.

[0107] Afterwards, the computer equipment uses ODA (Open Design Alliance) to parse the two-dimensional drawings in a preset format to obtain relevant data of the target building; then, the computer equipment extracts beam elements, column elements, wall elements, door elements, window elements, etc. from the relevant data of the target building.

[0108] The above-mentioned ODA is a non-profit organization with more than 1,100 members in more than 40 countries. ODA is committed to promoting the exchange of open, industrial standard CAD data and legacy CAD data formats. ODA develops Teigha, a core platform for technical graphics applications. Teigha supports data exchange between dwg, dgn, stl, and pdf. Teigha supports multiple platforms: Windows, Mac, Unix, Linux, etc. ODA members can develop their own applications using C++, NET, and ActiveX interfaces. The purpose of ODA is to develop a core graphics technology library to allow software developers to focus on application development. Like ITC, it is also member-oriented.

[0109] Step 102, analyzing and processing the target primitive to obtain target information.

[0110] The target information is used to indicate the position and size of the target element; the target information includes beam information, plate information, column information, wall information, door information and window information. In practical applications, the target information may also include information corresponding to other elements, which is not limited in the embodiments of the present disclosure.

[0111] After extracting the target graphic element, the computer device analyzes and processes the target graphic element to obtain the target information. Specifically, the computer device analyzes and processes the beam graphic element, column graphic element, wall graphic element, door graphic element and window graphic element to obtain the beam information, column information, wall information, door information and window information; then, the computer device analyzes and processes the beam information to obtain the plate information.

[0112] Step 103: Generate a three-dimensional model of the target building according to the target information.

[0113] The three-dimensional model of the target building includes a wall model, a beam model, a slab model, a column model, a door model and a window model.

[0114] After obtaining the target information, the computer device calls Revit, and Revit generates a three-dimensional model of the target building according to the preset floors, beam information, slab information, column information, wall information, door information, and window information. Specifically, based on the preset floors, Revit generates a beam model according to the beam information, a slab model according to the slab information, a column model according to the column information, a wall model according to the wall information, a door model according to the door information, and a window model according to the window information; finally, the three-dimensional model of the target building is composed of the beam model, slab model, column model, wall model, door model, and window model.

[0115] For example, Revit determines the centerline position, thickness, and length of the beam according to the beam information, and generates a beam model in a preset floor; Revit determines the shape and size of the plate according to the plate information, and generates a plate model in a preset floor; Revit determines the shape, size, and position of the cross section of the column according to the column information, and generates a column model in a preset floor; Revit determines the wall location line, wall thickness, and wall height according to the wall information, and generates a wall model in a preset floor; Revit determines the type, size, and position of the door according to the door information, and generates a door model on the wall in the preset floor; Revit determines the type, size, and position of the window according to the window information, and generates a window model on the wall in the preset floor. The disclosed embodiment does not limit how Revit generates the model, and it can be set according to actual conditions.

[0116] The above-mentioned preset floors can be set by the user or can be set by default. After the computer device obtains the preset floors, it can determine the column height, wall height and other information according to the preset floors, and verify whether the beam model, plate model, column model, wall model, door model and window model are reasonable. The embodiments of the present disclosure do not limit the preset floors.

[0117] The above-mentioned Revit is the name of a series of software from Autodesk. The Revit series of software is built for building information modeling (BIM), which can help building designers design, build and maintain buildings with better quality and higher energy efficiency.

[0118] In the above-mentioned three-dimensional model generation method, target graphics are extracted from the two-dimensional drawings of the target building; wherein the target graphics include beam graphics, column graphics, wall graphics, door graphics and window graphics; the target graphics are analyzed and processed to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information; a three-dimensional model of the target building is generated according to the target information; wherein the three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model. Through the disclosed embodiment, a computer device can automatically generate a three-dimensional model of a target building according to the two-dimensional drawings of the target building. Compared with the manual mold turning in the prior art, it can reduce the work of designers and avoid errors in manual placement, thereby saving time and labor costs.

[0119] In one embodiment, it involves an implementation process of analyzing and processing the target primitive to obtain the target information. Figure 3 As shown, the embodiment of the present disclosure may include the following steps:

[0120] Step 201, analyzing and processing the beam element to obtain beam information.

[0121] The beam information includes the position information, size information and beam area information of multiple beam edges. Figure 4 As shown, the computer equipment can use the following steps to analyze and process the beam element:

[0122] Step 2011, analyzing and processing the beam element to obtain position information of multiple beam edges, and determining multiple line segment sets based on the position information of the multiple beam edges, wherein each line segment set includes multiple beam edges that are parallel to each other.

[0123] like Figure 5 As shown in the figure, the beam element is analyzed and processed to obtain the position information of the beam edges a, b, c, d, e, f, g, h, i, j, k and l. These beam edges are parallel to each other and form a line segment set S. By analogy, other line segment sets can be obtained.

[0124] Step 2012: for each line segment set, divide the line segment set into a plurality of collinear sets; each collinear set includes at least one beam edge line located on the same straight line.

[0125] like Figure 5As shown, for the line segment set S, there are 2 beam edge lines located on the same straight line as the beam edge line a, forming a collinear set A; there is 1 beam edge line located on the same straight line as the beam edge line b, forming a collinear set B; there are 3 beam edge lines located on the same straight line as the beam edge line c, forming a collinear set C; there are 3 beam edge lines located on the same straight line as the beam edge line e, forming a collinear set D; there are 3 beam edge lines located on the same straight line as the beam edge line g, forming a collinear set E; there are 3 beam edge lines located on the same straight line as the beam edge line j, forming a collinear set E.

[0126] Step 2013, for any collinear set, find out another collinear set adjacent to the collinear set, project the beam edges in the two collinear sets onto the first plane, and obtain the size information of the beam edges according to the first projection result; wherein the distance between the beam edges of the two collinear sets is less than the first preset distance threshold.

[0127] like Figure 5 As shown, for collinear set A, if collinear set B is found to have a beam edge line distance less than a first preset distance threshold value, collinear set B is determined to be a collinear set adjacent to collinear set A. In practical applications, the first preset distance threshold value can be set according to the beam width, and the embodiment of the present disclosure does not limit the first preset distance threshold value.

[0128] After finding the collinear set B adjacent to the collinear set A, the beam edges in the collinear set A and the beam edges in the collinear set B are projected onto the first plane, where the first plane can be the ground. The projected beam edges a and b have overlapping parts, and the projected beam edges a are longer than the beam edges b. Therefore, the beam edges b are extended to be equal to the beam edges a, and the lengths of the two beam edges of a beam are obtained.

[0129] After that, the beam edge a is removed from the collinear set A, the beam edge b is removed from the collinear set B, and the beam edges a and b are removed from the line segment set S. Then, the remaining beam edges in the collinear set are projected and compared according to the above method, so as to determine the size information of multiple beam edges in the line segment set S.

[0130] Then, other line segment sets are analyzed according to the above method to obtain the size information of multiple beam edges in each line segment set.

[0131] Step 2014, obtaining information of the beam area based on the position information and size information of multiple beam edges.

[0132] The computer equipment calculates according to the position information and size information of multiple beam edges to obtain the beam area information.

[0133] Step 202: Analyze and process the beam information to obtain the plate information.

[0134] The board information includes information about the board area.

[0135] The computer device may analyze and process the beam information by: preprocessing the beam edge according to the position information and size information of the beam edge; obtaining two half edges in opposite directions according to each preprocessed beam edge, such as Figure 6a As shown; the area enclosed by multiple half-edges connected end to end along the same direction is determined as a closed area, such as Figure 6b As shown; the information of the plate area is determined based on the information of the beam area and the closed area.

[0136] like Figure 7a As shown, the intersection points between the beam edges are determined according to the position information and size information of the beam edges, and the beam edges are pre-processed by interrupting the intersection points between the beam edges. Then, each pre-processed beam edge is marked, as shown in FIG. Figure 7b As shown, along the direction of one half edge of the beam edge a, the half edges of the beam edges b, c, and d connected to the end of the beam edge a are found; and the area enclosed by the half edges of the beam edges a, b, c, and d is determined as a closed area.

[0137] By analogy, multiple closed areas can be determined. Afterwards, the computer device subtracts the beam area from each closed area to obtain a remaining area, and uses the remaining area as the plate area to obtain information about the plate area.

[0138] In the above embodiment, the beam element is analyzed and processed to obtain the beam information; the beam information is analyzed and processed to obtain the plate information. Through the disclosed embodiment, the computer device can automatically analyze the beam information and the plate information according to the beam element, which provides a basis for the subsequent automatic generation of the beam entity and the plate entity, saving time and labor costs.

[0139] In one embodiment, an implementation process involving analyzing and processing a target primitive to obtain target information may include: analyzing and processing a column primitive to obtain column information; the column information includes position information and size information of cross sections of multiple columns.

[0140] ODA is used to extract column primitives from the two-dimensional drawings of the target building. The column primitives may include column edge lines in column blocks and scattered column edge lines. For column blocks, the computer device obtains the lines in the column blocks to obtain the cross-section of the column, thereby determining the position information and size information of the cross-section of the column; for scattered column edge lines, the computer device performs line merging processing based on whether the column edge lines are connected and closed at the beginning and end to obtain the cross-section of the column, thereby determining the position information and size of the cross-section of the column. Finally, the computer device summarizes the position information and size information of the cross-sections of multiple columns to obtain column information.

[0141] In the above embodiment, the column primitive is analyzed and processed to obtain the column information. Through the embodiment of the present disclosure, the computer device can automatically analyze the column information according to the column primitive, which provides a basis for the subsequent automatic generation of the column entity, saving time and labor costs.

[0142] In one embodiment, it involves an implementation process of analyzing and processing the target primitive to obtain the target information. Figure 8 As shown, the embodiment of the present disclosure may include the following steps:

[0143] Step 301, analyzing and processing the door primitive to obtain door information.

[0144] The door information includes the door type, location information and size information of the door.

[0145] The computer device analyzes and processes the door graphic element to obtain a plurality of door blocks; the corresponding door type, position information and size information are determined according to each door block to obtain door information, wherein the door type may include a swing door, a sliding door and the like.

[0146] like Figure 9a As shown, the door block of the swing door may include an arc shape, and the position of the center of the circle, the length of the corner side, etc. can be determined according to the arc shape, thereby obtaining the position information and size information of the swing door. Figure 9b As shown, if the corners of the casement doors are connected and the opening and closing directions are vertical, they are combined into double doors.

[0147] The door block of the sliding door may include lines connected end to end and enclosing a rectangle, and the position information and size information of the sliding door may be determined based on the rectangle. Fig.10 As shown, the sliding doors have close rectangular positions, the same length and width, and are arranged in the same straight line, and can also be merged.

[0148] Step 302: Analyze and process the window primitive to obtain window information.

[0149] The window information includes the window type, position information and size information of the window.

[0150] The computer device analyzes and processes the window primitives to obtain a plurality of window blocks; the corresponding window type, position information and size information are determined according to each window block to obtain window information.

[0151] There are usually markings in the window block, such as Fig.11As shown, the annotation may include the placement height of the window, and the computer device may determine the position information of the window based on the annotation. In addition, the multiple lines parallel to each other in the window block are the long sides of the window, and the two lines perpendicular to the multiple lines are the wide sides of the window. The computer device may determine the size information of the window based on the long side and the wide side of the window. Finally, the computer device summarizes the window type, position information, and size information of the multiple windows to obtain the window information.

[0152] Step 303: Analyze and process the wall element based on the door information and the window information to obtain the wall information.

[0153] The wall information includes location information and size information of multiple wall lines.

[0154] The computer device analyzes and processes the wall graphic element to obtain the position information of the wall line; and performs line merging processing according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information to obtain a wall line set. Fig.12 As shown, according to the door information and the position information of the wall line, it can be determined that the wall line is interrupted by the door, and then the door and the wall line are merged to obtain a wall line set.

[0155] For each wall line in the wall line set, find another wall line adjacent to the wall line, project the two wall lines onto a second plane, and obtain size information of the wall line based on the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; and obtain wall information based on the position information and size information of the multiple wall lines.

[0156] The specific process of determining the wall line can refer to the method of determining the beam edge line. The second preset distance threshold can be set according to the wall thickness, and the embodiment of the present disclosure does not limit the second preset distance threshold.

[0157] In the above embodiment, the door element is analyzed and processed to obtain the door information; the window element is analyzed and processed to obtain the window information; based on the door information and the window information, the wall element is analyzed and processed to obtain the wall information. Through the embodiment of the present disclosure, the computer device can automatically analyze the door information, window information and wall information according to the door element, the window element and the wall element, providing a basis for the subsequent automatic generation of the door entity, the window entity and the wall entity, saving time and labor costs.

[0158] In one embodiment, Fig.13 As shown, a method for generating a three-dimensional model is provided, and the method is applied to Figure 1 The computer in the example is used to illustrate the process, including the following steps:

[0159] Step 401, extracting target graphics elements from the two-dimensional drawing of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements.

[0160] Step 402, analyzing and processing the beam element to obtain beam information.

[0161] The beam information includes position information and size information of multiple beam edges.

[0162] In one of the embodiments, the beam element is analyzed and processed to obtain the position information of multiple beam edges, and multiple line segment sets are determined based on the position information of the multiple beam edges; each line segment set includes multiple beam edges parallel to each other; for each line segment set, the line segment set is divided into multiple collinear sets; each collinear set includes at least one beam edge located on the same straight line; for any collinear set, another collinear set adjacent to the collinear set is found, the beam edges in the two collinear sets are projected onto a first plane, and the size information of the beam edges is obtained based on the first projection result; wherein the distance between the beam edges of the two collinear sets is less than a first preset distance threshold; the beam information is obtained based on the position information and size information of the multiple beam edges.

[0163] Step 403, analyzing and processing the beam information to obtain the plate information.

[0164] The board information includes information about the board area.

[0165] In one of the embodiments, the beam edge line is preprocessed according to the position information and size information of the beam edge line; two half-edge lines in opposite directions are obtained according to each preprocessed beam edge line; the area enclosed by multiple half-edge lines connected end to end along the same direction is determined as a closed area; and the information of the plate area is determined according to the information of the beam area and the closed area.

[0166] Step 404, analyzing and processing the column primitive to obtain column information.

[0167] The column information includes the position information and size information of the cross section of the column.

[0168] Step 405: Analyze and process the door primitive to obtain door information.

[0169] The door information includes the door type, location information and size information of the door.

[0170] In one of the embodiments, the door graphic element is analyzed and processed to obtain a plurality of door blocks; the corresponding door type, position information and size information are determined according to each door block to obtain the door information.

[0171] Step 406: Analyze and process the window primitive to obtain window information.

[0172] The window information includes the window type, position information and size information of the window.

[0173] In one of the embodiments, the window primitives are analyzed and processed to obtain a plurality of window blocks; the corresponding window type, position information and size information are determined according to each window block to obtain the window information.

[0174] Step 407: Analyze and process the wall element based on the door information and the window information to obtain the wall information.

[0175] The wall information includes location information and size information of multiple wall lines.

[0176] In one of the embodiments, wall graphics are analyzed and processed to obtain position information of wall lines; line merging is performed based on the door type, door position information, door size information, window type, window position information, window size information and wall line position information to obtain a wall line set; for each wall line in the wall line set, another wall line adjacent to the wall line is found, the two wall lines are projected onto a second plane, and the size information of the wall line is obtained based on the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; and wall information is obtained based on the position information and size information of multiple wall lines.

[0177] Step 408, generating a three-dimensional model of the target building according to the beam information, slab information, column information, wall information, door information and window information.

[0178] The three-dimensional model of the target building includes a wall model, a beam model, a slab model, a column model, a door model and a window model.

[0179] In the above embodiment, the computer device extracts beam elements, column elements, wall elements, door elements and window elements from the two-dimensional drawings of the target building, and then analyzes and processes the beam elements, column elements, wall elements, door elements and window elements to obtain beam information, plate information, column information, wall information, door information and window information, and finally generates a three-dimensional model of the target building according to the beam information, plate information, column information, wall information, door information and window information. In this process, the computer automatically extracts, analyzes and generates a three-dimensional model, which saves time and labor costs compared to manual modeling in the prior art.

[0180] It should be understood that although Figures 2 to 13 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figures 2 to 13At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0181] In one embodiment, Fig.14 As shown, a three-dimensional model generation device is provided, comprising:

[0182] The graphic element extraction module 501 is used to extract the target graphic element from the two-dimensional drawing of the target building; wherein the target graphic element includes a beam graphic element, a column graphic element, a wall graphic element, a door graphic element and a window graphic element;

[0183] The graphic element analysis module 502 is used to analyze and process the target graphic element to obtain the target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0184] The model generation module 503 is used to generate a three-dimensional model of the target building according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0185] In one embodiment, the above-mentioned graphic element analysis module 502 is specifically used to analyze and process the beam graphic element to obtain beam information; and analyze and process the beam information to obtain plate information.

[0186] In one embodiment, the beam information includes position information, size information and beam area information of multiple beam edges; the plate information includes plate area information; the above-mentioned primitive analysis module 502 is specifically used to preprocess the beam edges according to the position information and size information of the beam edges; obtain two half edges in opposite directions according to each preprocessed beam edge; determine the area enclosed by multiple half edges connected end to end along the same direction as a closed area; and determine the plate area information according to the beam area information and the closed area.

[0187] In one of the embodiments, the above-mentioned element analysis module 502 is specifically used to analyze and process the beam element to obtain the position information of multiple beam edge lines, and determine multiple line segment sets based on the position information of the multiple beam edge lines; each line segment set includes multiple beam edge lines parallel to each other; for each line segment set, the line segment set is divided into multiple collinear sets; each collinear set includes at least one beam edge line located on the same straight line; for any collinear set, another collinear set adjacent to the collinear set is found, the beam edge lines in the two collinear sets are projected onto the first plane, and the size information of the beam edge lines is obtained based on the first projection result; wherein the distance between the beam edge lines of the two collinear sets is less than a first preset distance threshold; the beam information is obtained based on the position information and size information of the multiple beam edge lines.

[0188] In one embodiment, the above-mentioned primitive analysis module 502 is specifically used to analyze and process the column primitive to obtain the column information.

[0189] In one embodiment, the above-mentioned graphic element analysis module 502 is specifically used to analyze and process the door graphic element to obtain door information; analyze and process the window graphic element to obtain window information; and analyze and process the wall graphic element based on the door information and the window information to obtain wall information.

[0190] In one of the embodiments, the door information includes the door type, position information and size information of the door; the window information includes the window type, position information and size information of the window; the wall information includes the position information and size information of multiple wall lines; the above-mentioned graphic element analysis module 502 is specifically used to analyze and process the wall graphic element to obtain the position information of the wall line; according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information, line merging processing is performed to obtain a wall line set; for each wall line in the wall line set, another wall line adjacent to the wall line is found, the two wall lines are projected onto a second plane, and the size information of the wall line is obtained according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; the wall information is obtained according to the position information and size information of the multiple wall lines.

[0191] In one embodiment, the above-mentioned primitive analysis module 502 is specifically used to analyze and process the door primitive to obtain multiple door blocks; determine the corresponding door type, position information and size information according to each door block to obtain door information.

[0192] In one embodiment, the primitive analysis module 502 is specifically used to analyze and process the window primitives to obtain a plurality of window blocks; determine the corresponding window type, position information and size information according to each window block to obtain window information.

[0193] In one embodiment, Fig.15 As shown, a three-dimensional model generation device is provided, comprising:

[0194] The graphic element extraction module 601 is used to extract the target graphic element from the two-dimensional drawing of the target building; wherein the target graphic element includes a beam graphic element, a column graphic element, a wall graphic element, a door graphic element and a window graphic element;

[0195] The beam element analysis module 602 is used to analyze and process the beam element to obtain beam information;

[0196] The beam information analysis module 603 is used to analyze and process the beam information to obtain the plate information;

[0197] The column element analysis module 604 is used to analyze and process the column element to obtain column information;

[0198] The door element analysis module 605 is used to analyze and process the door element to obtain door information;

[0199] The window primitive analysis module 606 is used to analyze and process the window primitive to obtain window information;

[0200] A wall element analysis module 607 is used to analyze and process the wall element based on the door information and the window information to obtain the wall information;

[0201] The model generation module 608 is used to generate a three-dimensional model of the target building according to the beam information, slab information, column information, wall information, door information and window information. The three-dimensional model of the target building includes a wall model, a beam model, a slab model, a column model, a door model and a window model.

[0202] For the specific definition of the three-dimensional model generation device, please refer to the definition of the three-dimensional model generation method above, which will not be repeated here. Each module in the above-mentioned three-dimensional model generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0203] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0204] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0205] Analyze and process the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0206] A three-dimensional model of a target building is generated according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0207] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0208] Analyze and process the beam element to obtain the beam information;

[0209] The beam information is analyzed and processed to obtain the plate information.

[0210] In one embodiment, the beam information includes position information, size information and beam area information of multiple beam edges; the plate information includes plate area information; and the processor further implements the following steps when executing the computer program:

[0211] Preprocess the beam edge according to its position information and size information;

[0212] According to each pre-processed beam edge line, two half edges with opposite directions are obtained respectively;

[0213] The area enclosed by multiple half-edges connected end to end along the same direction is determined as a closed area;

[0214] The information of the plate area is determined based on the information of the beam area and the closed area.

[0215] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0216] Analyzing and processing the beam element to obtain position information of multiple beam edges, and determining multiple line segment sets according to the position information of the multiple beam edges; each line segment set includes multiple beam edges parallel to each other;

[0217] For each line segment set, the line segment set is divided into a plurality of collinear sets; each collinear set includes at least one beam edge line located on the same straight line;

[0218] For any collinear set, find another collinear set adjacent to the collinear set, project the beam edges in the two collinear sets onto the first plane, and obtain the size information of the beam edges according to the first projection result; wherein the distance between the beam edges of the two collinear sets is less than a first preset distance threshold;

[0219] The information of the beam area is obtained based on the position information and size information of multiple beam edges.

[0220] In one embodiment, when the processor executes the computer program, the following steps are also implemented:

[0221] Analyze and process the column graphics to obtain column information.

[0222] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0223] Analyze and process the door graphic element to obtain the door information;

[0224] Analyze and process the window primitives to obtain window information;

[0225] The wall information is obtained by analyzing and processing the wall elements based on the door information and the window information.

[0226] In one embodiment, the door information includes the door type, position information and size information of the door; the window information includes the window type, position information and size information of the window; the wall information includes the position information and size information of multiple wall lines; when the processor executes the computer program, the following steps are also implemented:

[0227] Analyze and process the wall elements to obtain the location information of the wall lines;

[0228] Perform line merging processing according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information to obtain a wall line set;

[0229] For each wall line in the wall line set, find another wall line adjacent to the wall line, project the two wall lines onto a second plane, and obtain size information of the wall line according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold;

[0230] The wall information is obtained according to the position information and size information of the plurality of wall lines.

[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0232] Analyze and process the door graphic element to obtain multiple door blocks;

[0233] The corresponding door type, location information and size information are determined according to each door block to obtain the door information.

[0234] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0235] Analyze and process the window primitives to obtain multiple window blocks;

[0236] The corresponding window type, position information and size information are determined according to each window block to obtain the window information.

[0237] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0238] Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements;

[0239] Analyze and process the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information;

[0240] A three-dimensional model of a target building is generated according to the target information. The three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model.

[0241] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0242] Analyze and process the beam element to obtain the beam information;

[0243] The beam information is analyzed and processed to obtain the plate information.

[0244] In one embodiment, the beam information includes position information, size information and beam area information of a plurality of beam edges; the plate information includes plate area information; and when the computer program is executed by the processor, the following steps are also implemented:

[0245] Preprocess the beam edge according to its position information and size information;

[0246] According to each pre-processed beam edge line, two half edges with opposite directions are obtained respectively;

[0247] The area enclosed by multiple half-edges connected end to end along the same direction is determined as a closed area;

[0248] The information of the plate area is determined based on the information of the beam area and the closed area.

[0249] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0250] Analyzing and processing the beam element to obtain position information of multiple beam edges, and determining multiple line segment sets according to the position information of the multiple beam edges; each line segment set includes multiple beam edges parallel to each other;

[0251] For each line segment set, the line segment set is divided into a plurality of collinear sets; each collinear set includes at least one beam edge line located on the same straight line;

[0252] For any collinear set, find another collinear set adjacent to the collinear set, project the beam edges in the two collinear sets onto the first plane, and obtain the size information of the beam edges according to the first projection result; wherein the distance between the beam edges of the two collinear sets is less than a first preset distance threshold;

[0253] The information of the beam area is obtained based on the position information and size information of multiple beam edges.

[0254] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0255] Analyze and process the column graphics to obtain column information.

[0256] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0257] Analyze and process the door graphic element to obtain the door information;

[0258] Analyze and process the window primitives to obtain window information;

[0259] The wall information is obtained by analyzing and processing the wall elements based on the door information and the window information.

[0260] In one embodiment, the door information includes the door type, position information and size information of the door; the window information includes the window type, position information and size information of the window; the wall information includes the position information and size information of multiple wall lines; when the computer program is executed by the processor, the following steps are also implemented:

[0261] Analyze and process the wall elements to obtain the location information of the wall lines;

[0262] Perform line merging processing according to the door type, door position information, door size information, window type, window position information, window size information and wall line position information to obtain a wall line set;

[0263] For each wall line in the wall line set, find another wall line adjacent to the wall line, project the two wall lines onto a second plane, and obtain size information of the wall line according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold;

[0264] The wall information is obtained according to the position information and size information of the plurality of wall lines.

[0265] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0266] Analyze and process the door graphic element to obtain multiple door blocks;

[0267] The corresponding door type, location information and size information are determined according to each door block to obtain the door information.

[0268] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0269] Analyze and process the window primitives to obtain multiple window blocks;

[0270] The corresponding window type, position information and size information are determined according to each window block to obtain the window information.

[0271] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0272] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0273] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for generating a three-dimensional model, characterized in that: The method comprises: Extracting target graphics elements from the two-dimensional drawings of the target building; wherein the target graphics elements include beam graphics elements, column graphics elements, wall graphics elements, door graphics elements and window graphics elements; Analyzing and processing the target graphic element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information; Generate a three-dimensional model of the target building according to the target information, wherein the three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model; The step of analyzing and processing the target primitive to obtain target information includes: Analyzing and processing the door primitive to obtain the door information, wherein the door information includes the door type, location information and size information of the door; Analyzing and processing the window primitive to obtain the window information, wherein the window information includes the window type, position information and size information of the window; Analyzing and processing the wall element based on the door information and the window information to obtain the wall information includes: Analyzing and processing the wall graphic element to obtain the position information of the wall line; Performing line merging processing according to the door type, the door position information, the door size information, the window type, the window position information, the window size information and the wall line position information to obtain a wall line set; For each wall line in the wall line set, find another wall line adjacent to the wall line, project the two wall lines onto a second plane, and obtain size information of the wall line according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; The wall information is obtained according to the position information and size information of the plurality of wall lines.

2. The method according to claim 1, characterized in that The step of analyzing and processing the target primitive to obtain target information includes: Analyzing and processing the beam graphic element to obtain the beam information; The beam information is analyzed and processed to obtain the plate information.

3. The method according to claim 2, characterized in that The beam information includes position information, size information and beam area information of multiple beam edges; the plate information includes plate area information; and the plate information is obtained by analyzing and processing the beam information, including: Preprocessing the beam edge line according to the position information and size information of the beam edge line; According to each pre-processed beam edge line, two half edges with opposite directions are obtained respectively; Determine an area enclosed by a plurality of half-edge lines connected end to end along the same direction as a closed area; The information of the plate area is determined according to the information of the beam area and the closed area.

4. The method according to claim 3, characterized in that The step of analyzing and processing the beam element to obtain the beam information includes: Analyzing and processing the beam element to obtain position information of a plurality of beam edges, and determining a plurality of line segment sets according to the position information of the plurality of beam edges; each of the line segment sets includes the beam edges having the same extension direction; For each of the line segment sets, the line segment set is divided into a plurality of collinear sets; each of the collinear sets includes at least one beam edge line located on the same straight line; For any collinear set, find another collinear set adjacent to the collinear set, project the beam edges in the two collinear sets onto a first plane, and obtain size information of the beam edges according to the first projection result; wherein the distance between the beam edges of the two collinear sets is less than a first preset distance threshold; The information of the beam area is obtained according to the position information and size information of the plurality of beam edges.

5. The method according to claim 1, characterized in that The step of analyzing and processing the target primitive to obtain target information includes: The column information is obtained by analyzing and processing the column primitive.

6. The method according to claim 1, characterized in that The analyzing and processing the door primitive to obtain the door information includes: Analyzing and processing the door graphic element to obtain a plurality of door blocks; The corresponding door type, position information and size information are determined according to each door block to obtain the door information.

7. The method according to claim 1, characterized in that The step of analyzing and processing the window primitive to obtain the window information includes: Analyzing and processing the window primitives to obtain a plurality of window blocks; The corresponding window type, position information and size information are determined according to each of the window blocks to obtain the window information.

8. A three-dimensional model generation device, characterized in that: The device comprises: An element extraction module is used to extract target elements from the two-dimensional drawings of the target building; wherein the target elements include beam elements, column elements, wall elements, door elements and window elements; An element analysis module is used to analyze and process the target element to obtain target information; wherein the target information includes beam information, plate information, column information, wall information, door information and window information; A model generation module, used to generate a three-dimensional model of the target building according to the target information, wherein the three-dimensional model of the target building includes a wall model, a beam model, a plate model, a column model, a door model and a window model; Wherein, the graphic element analysis module includes: A door element analysis module: used for analyzing and processing the door element to obtain the door information, wherein the door information includes the door type, location information and size information of the door; Window primitive analysis module: used for analyzing and processing the window primitive to obtain the window information, wherein the window information includes the window type, position information and size information of the window; A wall element analysis module: used for analyzing and processing the wall elements based on the door information and the window information to obtain the wall information, including: analyzing and processing the wall elements to obtain the position information of the wall lines; merging lines according to the door type, the position information of the door, the size information of the door, the window type, the position information of the window, the size information of the window and the position information of the wall lines to obtain a wall line set; for each wall line in the wall line set, finding another wall line adjacent to the wall line, projecting the two wall lines onto a second plane, and obtaining the size information of the wall line according to the second projection result; wherein the distance between the two wall lines is less than a second preset distance threshold; and obtaining the wall information according to the position information and size information of the plurality of wall lines.