CN112528379A - Building model generation method and device and electronic equipment - Google Patents
Building model generation method and device and electronic equipment Download PDFInfo
- Publication number
- CN112528379A CN112528379A CN202011502739.4A CN202011502739A CN112528379A CN 112528379 A CN112528379 A CN 112528379A CN 202011502739 A CN202011502739 A CN 202011502739A CN 112528379 A CN112528379 A CN 112528379A
- Authority
- CN
- China
- Prior art keywords
- building
- model
- bim
- cad
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012216 screening Methods 0.000 claims description 16
- 238000004364 calculation method Methods 0.000 claims description 9
- 238000011960 computer-aided design Methods 0.000 description 140
- 238000006243 chemical reaction Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000009877 rendering Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000012800 visualization Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/13—Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Computational Mathematics (AREA)
- Civil Engineering (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Structural Engineering (AREA)
- General Engineering & Computer Science (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Software Systems (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a building model generation method, a building model generation device and electronic equipment, wherein when a three-dimensional building model is constructed, building position information of each building can be obtained based on CAD data, and then the building position of each building in a BIM model is adjusted to the building position information of the corresponding building in the CAD model, namely the building position in the BIM model can be automatically adjusted based on the CAD data.
Description
Technical Field
The invention relates to the field of modeling, in particular to a building model generation method and device and electronic equipment.
Background
In practical application, a three-dimensional building model of each building in a region, such as a community, can be constructed and displayed, so that a user can visually know the appearance and the position of each building in the community, and the subsequent planning of the interior of the community is facilitated.
When Building a three-dimensional Building model, generally, BIM (Building Information model) data of a cell is loaded into a three-dimensional scene to obtain the three-dimensional Building model, and then the positions of each Building in the three-dimensional Building model are manually adjusted based on CAD (Computer Aided Design) data of the cell to obtain a final three-dimensional Building model.
However, the method for manually adjusting the building position is prone to manual misoperation, so that the accuracy of the finally obtained three-dimensional building model is low, and the accuracy of planning the interior of the cell based on the constructed three-dimensional building model is also low.
Disclosure of Invention
In view of this, the present invention provides a building model generation method, an apparatus and an electronic device, so as to solve the problem that a manual error operation is easy to occur in a method for manually adjusting a building position, so that the accuracy of a finally obtained three-dimensional building model is low.
In order to solve the technical problems, the invention adopts the following technical scheme:
a building model generation method, comprising:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Optionally, acquiring CAD data corresponding to the target area includes:
acquiring initial CAD data corresponding to a target area;
screening target CAD data meeting preset screening rules from the initial CAD data;
and converting the target CAD data into CAD data in a preset format.
Optionally, the building position information includes a central point position and a direction angle of the building;
determining building location information for each of the buildings in the CAD model, including:
calculating to obtain the central point position of each building in the CAD model in a preset central point position calculation mode;
for each building, determining a contour line point set for describing the building; the contour line point set comprises a plurality of contour points;
constructing a line segment between two contour points with the longest distance;
and determining the included angle between the line segment and a preset coordinate axis as the direction angle of the building.
Optionally, loading the BIM data corresponding to the target region to obtain a BIM model, including:
acquiring initial BIM data corresponding to a target area; the initial BIM data comprises material names of all parts;
combining the components with the same material name to obtain intermediate BIM data;
setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area;
and carrying out loading operation on the BIM data to obtain a BIM model.
Optionally, performing a loading operation on the BIM data to obtain a BIM model, including:
loading the BIM data to obtain a BIM initial model;
and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
Optionally, adjusting the building position of each building in the BIM model to the building position information of the corresponding building in the CAD model includes:
for each building in the BIM model, determining a target building with the same name as the building of the building in the CAD model; the same building name of the same building in the CAD data and the BIM data is the same;
acquiring building position information of the target building;
setting the building position of the building as the building position information of the target building.
A building model generation apparatus comprising:
the data acquisition module is used for acquiring CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
the information determining module is used for constructing a CAD model corresponding to the CAD data and determining the building position of each building in the CAD model;
the data loading module is used for loading the BIM data corresponding to the target area to obtain a BIM model;
and the position adjusting module is used for adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain the three-dimensional building model.
Optionally, the data obtaining module is specifically configured to:
acquiring initial CAD data corresponding to a target area, screening target CAD data meeting a preset screening rule from the initial CAD data, and converting the target CAD data into CAD data in a preset format.
A storage medium comprising a stored program, wherein the apparatus on which the storage medium is located is controlled to execute the building model generation method when the program runs.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a building model generation method, a building model generation device and electronic equipment, wherein when a three-dimensional building model is constructed, building position information of each building can be obtained based on CAD data, and then the building position of each building in a BIM model is adjusted to the building position information of the corresponding building in the CAD model, namely the building position in the BIM model can be automatically adjusted based on the CAD data.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a method for generating a building model according to an embodiment of the present invention;
FIG. 2 is a scene diagram of a CAD model according to an embodiment of the present invention;
FIG. 3 is a flow chart of another method for generating a building model according to an embodiment of the present invention;
FIG. 4 is a schematic view of a model with a set building position according to an embodiment of the present invention;
FIG. 5 is a schematic view of a scene of a method for generating a building model according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a method for generating a building model according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a building model generation apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
When Building a three-dimensional Building model, generally, Building Information Modeling (BIM) data of a cell is loaded into a three-dimensional scene to obtain the three-dimensional Building model, and then the position of each Building in the BIM model is obtained by manually referring to Computer Aided Design (CAD) data of the cell, and then the position of each Building in the BIM model is adjusted.
However, the CAD data is analyzed manually through experience, so that the analysis error is easy to occur, and the problem of inaccurate building position adjustment in the BIM model is solved.
In order to solve this problem, the inventors have studied and found that if the CAD data can be automatically analyzed, the position of each building is obtained from the CAD data, and then the position of the building in the BIM model is adjusted according to the position. Because the whole process is automatically executed, and the CAD data can provide an accurate spatial position, the accuracy when the building position in the BIM is automatically adjusted based on the CAD data is higher, the problem of misoperation caused by manual operation can be avoided, the accuracy of the finally obtained three-dimensional building model is improved, and the accuracy of the cell internal planning based on the constructed three-dimensional building model is further improved.
On the basis of the above, an embodiment of the present invention provides a building model generation method, and an execution subject of the building model generation method in this embodiment may be a server. Referring to fig. 1, may include:
and S11, acquiring CAD data corresponding to the target area.
In practical applications, the target area may be a cell or the like, and a plurality of buildings may be disposed in the cell, that is, the target area includes a plurality of buildings therein.
In an implementation manner of the present invention, the target region corresponds to the CAD data and the BIM data, so in this embodiment, the CAD data and the BIM data corresponding to the target region may be obtained simultaneously, or may be obtained sequentially.
The CAD data in this embodiment refers to CAD data specifically used for constructing a three-dimensional building model, and includes data of relevant types such as building contour lines, red land lines, and the like. The BIM data mainly refers to a three-dimensional information model for describing a building.
It should be noted that the CAD data and the BIM data in this embodiment both correspond to the same target region, and further, the two data have mutual reference. And the names of the same buildings in the CAD data and the BIM data are the same.
In practical application, the process of acquiring CAD data corresponding to a target area is specifically as follows:
the server in this embodiment has a CAD conversion function, such as a CAD conversion server. The CAD data, referred to as initial CAD data (dxf format) in this embodiment, is uploaded to a CAD conversion server (mainly, the data is uploaded through a front-end web page, and the server is notified through an http request to perform processing), the server reads and analyzes the CAD data in the dxf format, performs data screening according to a predetermined naming rule (the CAD drawing is named according to the predetermined rule), which is also referred to as data thinning, and retains relevant layers such as a building profile, a ground profile, a red earth line, and the like, wherein the building profile layer includes relevant sub-attributes such as a building name, profile description data, a floor height, a color, and the like. For example, some data names are Buildings and outlines, which belong to the relevant description of Buildings and land red lines, and then these data are extracted, and others are excluded, and these names are specified by technicians in advance before cad data is created, and have special standards. It should be noted that, the preservation of the relevant image layers such as the building outline, the ground outline, the red land line, etc. is a preset screening rule preset by the technician.
And then storing the screened data into a preset format, such as JSON format export, wherein the function of the step is to enable the web front end to be correctly analyzed, and finally obtaining the CAD data.
The JSON-format data, namely, the CAD data, may include the following:
the property of the land parcel is as follows: a plot line name and a contour line point set;
the properties of the building are as follows: building ID, building name (to match BIM model), set of contour points, height value (to stretch the block to form a three-dimensional object).
It should be noted that the data in the JSON format in this embodiment is obtained by the server itself, or may be obtained by processing the data in the JSON format by the CAD conversion server and then sending the data to the server.
In addition, the data thinning process in the invention can be executed once or for multiple times. Specifically, after the data thinning is completed, the data is converted into the JSON format, and then the data thinning operation is performed again, so that the data volume to be processed is further reduced.
The BIM data in this embodiment is obtained by material combination, which can reduce the data processing amount, and specifically, the obtaining process of the BIM data corresponding to the target region includes:
1) and acquiring initial BIM data corresponding to the target area.
Wherein the initial BIM data includes material names of the respective parts.
2) And combining the components with the same material name to obtain intermediate BIM data.
The server in the above embodiment has a BIM conversion function, specifically, the initial BIM data (for example, rvt format) is uploaded to a BIM conversion server (upload principle is the same as CAD), and the backend deploys a revit conversion plug-in, which is secondarily developed by revit, and the main steps include:
rvt format data are read, and data content is analyzed;
traversing all materials in the model data, judging whether the materials are the outer facades or not according to the material names (the BIM model can carry out material modeling according to the naming standards during modeling, and can judge the types of the materials according to the naming standards), and filtering the materials to remove the materials except the outer facades.
And traversing the residual materials in the model data, and merging the materials with the same name or part of the same name. After the materials are merged, the times of rendering the materials when the materials are loaded to the web end can be effectively reduced, for example, 10 times of rendering may be required for 10 materials at the web end, and only 1 time of rendering is required when the materials are merged into one.
3) Setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area.
Specifically, the center axis of the model with the combined materials is reset to be the center of the model, the height is set as the lowest point of the model, namely zero, and the model with the format of GLtf is derived, the name is kept unchanged, and the unit is meter.
It should be noted that the model with the export format GLtf in this embodiment is obtained by processing with a server, or may be obtained by sending the model with the export format GLtf to the server in this embodiment after the BIM conversion server obtains the model.
S12, constructing a CAD model corresponding to the CAD data, and determining building position information of each building in the CAD model.
The building position information comprises a central point position and a direction angle of the building.
Specifically, a three-dimensional scene is built through a ThreeJS engine, and basic parameters such as background color, illumination intensity, coordinate axis direction and the like are set, so that the coordinate axis of the Threejs engine is consistent with the coordinate axis of the BIM model.
The CAD data in the JSON format is parsed, contour data (two-dimensional point set) of a land parcel, a red earth line, and a building are extracted, a contour plane is generated through three. The naming rule of the building model is consistent with the name of the building in the JSON data.
It should be noted that, referring to fig. 3, CAD has the advantages of being able to provide an accurate spatial location, and has the defects of being relatively simple in visualization effect and lacking in detail expression, whereas BIM data has the advantages of being rich in detail expression, and having the defects of being excessive in redundant data, too large in volume capacity and lacking in spatial location, and further being able to use CAD data to provide an accurate spatial location, so as to adjust a BIM model, so that the BIM model has both the advantage of being rich in detail expression and the advantage of having an accurate spatial location.
After the CAD model is constructed, building position information (a central point position and a direction angle of a building) of each building in the CAD model is determined, and specifically, referring to fig. 3, the method includes the following steps:
and S21, calculating the central point position of each building in the CAD model in a preset central point position calculation mode.
Specifically, each building in the CAD model is extracted, and the central point position and the direction angle of each building are calculated in a traversing mode.
The position of the central point is mainly the minimum bounding rectangle of the calculation model (calculated by a bbox3() function in ThreeJS), and then the position of the central point of the rectangle (calculated by a bbox3.GetCenter () function) is solved, so that the position of the central point of the building is calculated.
S22, determining a contour line point set for describing the buildings for each building; the set of contour line points includes a plurality of contour points.
The contour line point set can be obtained from the building attribute data in the CAD data.
And S23, constructing a line segment between the two contour points with the longest distance.
And S24, determining the included angle between the line segment and the preset coordinate axis as the direction angle of the building.
Specifically, when the direction angle of the building is calculated, the line segment with the longest length in the line segments describing the building outline is judged to be the azimuth angle of the building according to the conventional shape of the building. The specific calculation method is to traverse a building contour point set, wherein the contour point set comprises a plurality of contour points, calculate the longest line segment connecting the two contour points, and calculate the included angle between the line segment and the X axis, thereby obtaining the direction angle of the building.
And S13, loading the BIM data corresponding to the target area to obtain the BIM model.
Specifically, first, the BIM data corresponding to the target area is obtained according to the corresponding parts, and then the loading operation is performed on the BIM data to obtain the BIM model.
The specific loading process is as follows: and loading the BIM data to obtain a BIM initial model, and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
In detail, the transformed BIM model (in format of GItf) is loaded into a scene of ThreeJS, and then the position of the center point of the BIM model is calculated through a bbox3.getcenter () function, and the Z-axis is zeroed, so that the center point is ensured to be at the bottom midpoint of the model.
In summary, loading the BIM data corresponding to the target region to obtain the BIM model includes:
acquiring initial BIM data corresponding to a target area; the initial BIM data comprises material names of all parts;
combining the components with the same material name to obtain intermediate BIM data;
setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area;
and carrying out loading operation on the BIM data to obtain a BIM model.
S14, adjusting the building position of each building in the BIM model to the building position information of the corresponding building in the CAD model to obtain a three-dimensional building model.
Because the names of the same buildings in the CAD data and the BIM data are the same, the buildings with the same building names can be found in the BIM model and the CAD model according to the building names, then the building position information of the buildings in the CAD model is obtained, and the building position of the building in the BIM model is set as the building position information of the target building.
In more detail, step S14 may include:
for each building in the BIM model, determining a target building with the same name as the building of the building in the CAD model, acquiring building position information of the target building, and setting the building position of the building as the building position information of the target building.
In practical application, a building model with the same model name as the BIM is searched in a CAD scene, the central point position (shown in a world coordinate form) and the direction angle of the model are obtained, the coordinate and the angle are assigned to the BIM, then the corresponding building model in the scene is hidden, and then the next building is operated until all buildings in the BIM model are traversed and replaced successfully.
Referring to fig. 4 and 5, based on CAD data and BIM data, a flow method of CAD three-dimensional modeling, BIM data processing and conversion to automatic identification and replacement is adopted to complete lightweight display of BIM data at a Web end, and the implementation of the process is fully automatic.
Columns 1-2 (excluding the last row) of fig. 4 have corrected the building location information, which has the advantage of rich detail expression as well as the advantage of accurate spatial location.
In addition, the BIM model in the GLtf format can be loaded through the ThreeJS engine, the model name is matched with the building in the CAD model, the building in the CAD model is replaced by the building in the BIM model after matching, and the position and the direction angle of the center point which are calculated originally are set on the BIM model.
In order to make the whole implementation process of the present invention more clear to those skilled in the art, a detailed implementation process diagram is drawn, and specifically, refer to fig. 6. It should be noted that, for the specific implementation process of each step, please refer to the corresponding description of the above parts, which is not described herein again.
The white data in fig. 6 refers to data in the CAD model.
In this embodiment, when the three-dimensional building model is constructed, building position information of each building can be obtained based on CAD data, and then the building position of each building in the BIM model is adjusted to the building position information of the corresponding building in the CAD model, that is, the building position in the BIM model can be automatically adjusted based on the CAD data.
In addition, in the BIM model material filtering process, a part of non-facade of the model is removed through the material name, and therefore the complexity of the model is reduced.
In addition, the names of the buildings in the CAD are matched with the names of the BIM models, and if the names of the buildings are matched with the names of the BIM models, replacement and assignment are carried out, so that automatic replacement is realized. The whole process does not need excessive manual intervention, only the existing BIM model is uploaded to a conversion background, and the visualization engine mainly refers to an open-source WebGL engine (ThreeJS) for development, so that the cost is low.
Alternatively, on the basis of the above-described embodiment of the building model generation method, another embodiment of the present invention provides a building model generation apparatus, including:
the data acquisition module 11 is configured to acquire CAD data corresponding to a target area, where the target area includes a plurality of buildings;
the information determining module 12 is used for constructing a CAD model corresponding to the CAD data and determining the building position of each building in the CAD model;
the data loading module 13 is configured to load BIM data corresponding to the target region to obtain a BIM model;
and the position adjusting module 14 is used for adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Further, the data acquisition module is specifically configured to:
acquiring initial CAD data corresponding to a target area, screening target CAD data meeting a preset screening rule from the initial CAD data, and converting the target CAD data into CAD data in a preset format.
Further, the building position information comprises a central point position and a direction angle of the building;
the information determination module includes:
the position calculation submodule is used for calculating and obtaining the position of the central point of each building in the CAD model in a preset central point position calculation mode;
the set determining submodule is used for determining a contour line point set for describing the buildings for each building; the contour line point set comprises a plurality of contour points;
the line segment construction submodule is used for constructing a line segment between two contour points with the longest distance;
and the direction angle determining submodule is used for determining an included angle between the line segment and a preset coordinate axis as a direction angle of the building.
Further, the data loading module comprises:
the data acquisition submodule is used for acquiring initial BIM data corresponding to the target area; the initial BIM data comprises material names of all parts;
the data merging submodule is used for merging the components with the same material name to obtain middle BIM data;
the data setting submodule is used for setting the horizontal position of a central shaft of each building of the middle BIM data as the positive center of the building, setting the height of the central shaft as the height of the building as a preset height, and obtaining the BIM data corresponding to the target area;
and the data loading submodule is used for loading the BIM data to obtain the BIM model.
Further, the data loading submodule is specifically configured to:
and loading the BIM data to obtain a BIM initial model, and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
Further, the position adjustment module includes:
the building determining submodule is used for determining a target building with the same building name as the building in the CAD model for each building in the BIM model; the same building name of the same building in the CAD data and the BIM data is the same;
the information acquisition submodule is used for acquiring the building position information of the target building;
and the position setting submodule is used for setting the building position of the building as the building position information of the target building.
In this embodiment, when the three-dimensional building model is constructed, building position information of each building can be obtained based on CAD data, and then the building position of each building in the BIM model is adjusted to the building position information of the corresponding building in the CAD model, that is, the building position in the BIM model can be automatically adjusted based on the CAD data.
It should be noted that, for the working processes of each module and sub-module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
Optionally, on the basis of the embodiments of the building model generation method and apparatus, another embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, a device in which the storage medium is located is controlled to execute the building model generation method.
The building model generation method specifically comprises the following steps:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Further, acquiring CAD data corresponding to the target area includes:
acquiring initial CAD data corresponding to a target area;
screening target CAD data meeting preset screening rules from the initial CAD data;
and converting the target CAD data into CAD data in a preset format.
Further, the building position information comprises a central point position and a direction angle of the building;
determining building location information for each of the buildings in the CAD model, including:
calculating to obtain the central point position of each building in the CAD model in a preset central point position calculation mode;
for each building, determining a contour line point set for describing the building; the contour line point set comprises a plurality of contour points;
constructing a line segment between two contour points with the longest distance;
and determining the included angle between the line segment and a preset coordinate axis as the direction angle of the building.
Further, loading the BIM data corresponding to the target region to obtain a BIM model, including:
acquiring initial BIM data corresponding to a target area; the initial BIM data comprises material names of all parts;
combining the components with the same material name to obtain intermediate BIM data;
setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area;
and carrying out loading operation on the BIM data to obtain a BIM model.
Further, performing a loading operation on the BIM data to obtain a BIM model, including:
loading the BIM data to obtain a BIM initial model;
and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
Further, adjusting the building position of each building in the BIM model to the building position information of the corresponding building in the CAD model includes:
for each building in the BIM model, determining a target building with the same name as the building of the building in the CAD model; the same building name of the same building in the CAD data and the BIM data is the same;
acquiring building position information of the target building;
setting the building position of the building as the building position information of the target building.
Optionally, on the basis of the above embodiment of the building model generation method and apparatus, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Further, acquiring CAD data corresponding to the target area includes:
acquiring initial CAD data corresponding to a target area;
screening target CAD data meeting preset screening rules from the initial CAD data;
and converting the target CAD data into CAD data in a preset format.
Further, the building position information comprises a central point position and a direction angle of the building;
determining building location information for each of the buildings in the CAD model, including:
calculating to obtain the central point position of each building in the CAD model in a preset central point position calculation mode;
for each building, determining a contour line point set for describing the building; the contour line point set comprises a plurality of contour points;
constructing a line segment between two contour points with the longest distance;
and determining the included angle between the line segment and a preset coordinate axis as the direction angle of the building.
Further, loading the BIM data corresponding to the target region to obtain a BIM model, including:
acquiring initial BIM data corresponding to a target area; the initial BIM data comprises material names of all parts;
combining the components with the same material name to obtain intermediate BIM data;
setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area;
and carrying out loading operation on the BIM data to obtain a BIM model.
Further, performing a loading operation on the BIM data to obtain a BIM model, including:
loading the BIM data to obtain a BIM initial model;
and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
Further, adjusting the building position of each building in the BIM model to the building position information of the corresponding building in the CAD model includes:
for each building in the BIM model, determining a target building with the same name as the building of the building in the CAD model; the same building name of the same building in the CAD data and the BIM data is the same;
acquiring building position information of the target building;
setting the building position of the building as the building position information of the target building.
In this embodiment, when the three-dimensional building model is constructed, building position information of each building can be obtained based on CAD data, and then the building position of each building in the BIM model is adjusted to the building position information of the corresponding building in the CAD model, that is, the building position in the BIM model can be automatically adjusted based on the CAD data.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for generating a building model, comprising:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
2. The building model generation method according to claim 1, wherein acquiring CAD data corresponding to the target area includes:
acquiring initial CAD data corresponding to a target area;
screening target CAD data meeting preset screening rules from the initial CAD data;
and converting the target CAD data into CAD data in a preset format.
3. The building model generation method according to claim 1, wherein the building position information includes a central point position of a building and a direction angle;
determining building location information for each of the buildings in the CAD model, including:
calculating to obtain the central point position of each building in the CAD model in a preset central point position calculation mode;
for each building, determining a contour line point set for describing the building; the contour line point set comprises a plurality of contour points;
constructing a line segment between two contour points with the longest distance;
and determining the included angle between the line segment and a preset coordinate axis as the direction angle of the building.
4. The building model generation method according to claim 1, wherein loading the BIM data corresponding to the target area to obtain the BIM model comprises:
acquiring initial BIM data corresponding to a target area; the initial BIM data comprises material names of all parts;
combining the components with the same material name to obtain intermediate BIM data;
setting the horizontal position of a central shaft of each building of the middle BIM data as the center of the building, and setting the height of the central shaft as the height of the building as a preset height to obtain the BIM data corresponding to the target area;
and carrying out loading operation on the BIM data to obtain a BIM model.
5. The building model generation method according to claim 4, wherein performing a loading operation on the BIM data to obtain a BIM model comprises:
loading the BIM data to obtain a BIM initial model;
and setting the height of the central point position of each building in the BIM initial model as a preset height to obtain the BIM model.
6. The building model generation method according to claim 1, wherein adjusting the building location of each building in the BIM model to the building location information of the corresponding building in the CAD model includes:
for each building in the BIM model, determining a target building with the same name as the building of the building in the CAD model; the same building name of the same building in the CAD data and the BIM data is the same;
acquiring building position information of the target building;
setting the building position of the building as the building position information of the target building.
7. An architectural model generation apparatus, comprising:
the data acquisition module is used for acquiring CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
the information determining module is used for constructing a CAD model corresponding to the CAD data and determining the building position of each building in the CAD model;
the data loading module is used for loading the BIM data corresponding to the target area to obtain a BIM model;
and the position adjusting module is used for adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain the three-dimensional building model.
8. The architectural model generation apparatus of claim 7, wherein the data acquisition module is specifically configured to:
acquiring initial CAD data corresponding to a target area, screening target CAD data meeting a preset screening rule from the initial CAD data, and converting the target CAD data into CAD data in a preset format.
9. A storage medium comprising a stored program, wherein the apparatus on which the storage medium is stored is controlled to perform the building model generation method according to any one of claims 1 to 6 when the program is executed.
10. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
obtaining CAD data corresponding to a target area, wherein the target area comprises a plurality of buildings;
building a CAD model corresponding to the CAD data, and determining the building position of each building in the CAD model;
loading BIM data corresponding to the target area to obtain a BIM model;
and adjusting the building position of each building in the BIM model to the building position of the corresponding building in the CAD model to obtain a three-dimensional building model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011502739.4A CN112528379B (en) | 2020-12-17 | 2020-12-17 | Building model generation method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011502739.4A CN112528379B (en) | 2020-12-17 | 2020-12-17 | Building model generation method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112528379A true CN112528379A (en) | 2021-03-19 |
CN112528379B CN112528379B (en) | 2024-06-07 |
Family
ID=75001399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011502739.4A Active CN112528379B (en) | 2020-12-17 | 2020-12-17 | Building model generation method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112528379B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113140041A (en) * | 2021-04-29 | 2021-07-20 | 安徽省绿安建筑信息模型咨询有限公司 | Cloud-based three-dimensional automatic modeling system and modeling method for building field |
CN113343345A (en) * | 2021-08-05 | 2021-09-03 | 北京知优科技有限公司 | Three-dimensional building model information generation method and system and computer storage medium |
CN113609567A (en) * | 2021-08-18 | 2021-11-05 | 中铁六局集团有限公司 | BIM-based two-area three-factory building space planning method and device |
CN114925419A (en) * | 2022-05-06 | 2022-08-19 | 中国十七冶集团有限公司 | BIM and SI system-based operation and maintenance construction method for internal and external spaces of community |
CN115391876A (en) * | 2022-07-29 | 2022-11-25 | 北京城市网邻信息技术有限公司 | Building model establishing method and device, electronic equipment and storage medium |
CN117036561A (en) * | 2023-03-22 | 2023-11-10 | 北京凡米物联科技有限公司 | GIS/CAD/three-dimensional three-in-one coal mine production visual scene hybrid rendering technology based on data driving |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103942388A (en) * | 2014-04-18 | 2014-07-23 | 重庆市勘测院 | Large-scale building information model and three-dimensional digital city integration method |
US20170032581A1 (en) * | 2015-07-27 | 2017-02-02 | Applied Software Technology, Inc. | Creating and merging two-dimensional floor plans within three-dimensional models |
WO2018040838A1 (en) * | 2016-08-29 | 2018-03-08 | 广州地铁设计研究院有限公司 | Modeling and designing method for elevated structure bim model |
CN107833105A (en) * | 2017-11-14 | 2018-03-23 | 青岛理工大学 | Shopping mall visual lease management method and system based on building information model |
US20180349522A1 (en) * | 2017-06-05 | 2018-12-06 | Siteaware Systems Ltd. | Adaptive Modeling of Buildings During Construction |
CN109710963A (en) * | 2018-11-05 | 2019-05-03 | 陈树铭 | Three-dimensional rapid modeling system and method based on building two-dintension CAD drawing |
CN109993827A (en) * | 2019-03-29 | 2019-07-09 | 宁波睿峰信息科技有限公司 | A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model |
CN110309618A (en) * | 2019-07-10 | 2019-10-08 | 中煤航测遥感集团有限公司 | Modeling method, model building device and the modeling of Building Information Model |
CN111813738A (en) * | 2020-08-20 | 2020-10-23 | 深圳须弥云图空间科技有限公司 | Data conversion method, data downloading method and related device |
WO2020238086A1 (en) * | 2019-05-31 | 2020-12-03 | 广东小天才科技有限公司 | Method for determining position of building and terminal device |
-
2020
- 2020-12-17 CN CN202011502739.4A patent/CN112528379B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103942388A (en) * | 2014-04-18 | 2014-07-23 | 重庆市勘测院 | Large-scale building information model and three-dimensional digital city integration method |
US20170032581A1 (en) * | 2015-07-27 | 2017-02-02 | Applied Software Technology, Inc. | Creating and merging two-dimensional floor plans within three-dimensional models |
WO2018040838A1 (en) * | 2016-08-29 | 2018-03-08 | 广州地铁设计研究院有限公司 | Modeling and designing method for elevated structure bim model |
US20180349522A1 (en) * | 2017-06-05 | 2018-12-06 | Siteaware Systems Ltd. | Adaptive Modeling of Buildings During Construction |
CN107833105A (en) * | 2017-11-14 | 2018-03-23 | 青岛理工大学 | Shopping mall visual lease management method and system based on building information model |
CN109710963A (en) * | 2018-11-05 | 2019-05-03 | 陈树铭 | Three-dimensional rapid modeling system and method based on building two-dintension CAD drawing |
CN109993827A (en) * | 2019-03-29 | 2019-07-09 | 宁波睿峰信息科技有限公司 | A kind of elevation recognition methods that architectural drawing is converted to three-dimensional BIM model |
WO2020238086A1 (en) * | 2019-05-31 | 2020-12-03 | 广东小天才科技有限公司 | Method for determining position of building and terminal device |
CN110309618A (en) * | 2019-07-10 | 2019-10-08 | 中煤航测遥感集团有限公司 | Modeling method, model building device and the modeling of Building Information Model |
CN111813738A (en) * | 2020-08-20 | 2020-10-23 | 深圳须弥云图空间科技有限公司 | Data conversion method, data downloading method and related device |
Non-Patent Citations (2)
Title |
---|
张孝勇;沈蕊;温丹琪;: "建筑信息模型与3D WebGIS平台集成方法研究", 测绘, no. 04, 15 August 2019 (2019-08-15), pages 16 - 20 * |
齐保良;蔺玉璞;杨秀芝;汪晴晴;: "Revit三维模型中房间信息的自动标注方法", 计算机系统应用, no. 05, 15 May 2020 (2020-05-15), pages 228 - 234 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113140041A (en) * | 2021-04-29 | 2021-07-20 | 安徽省绿安建筑信息模型咨询有限公司 | Cloud-based three-dimensional automatic modeling system and modeling method for building field |
CN113343345A (en) * | 2021-08-05 | 2021-09-03 | 北京知优科技有限公司 | Three-dimensional building model information generation method and system and computer storage medium |
CN113609567A (en) * | 2021-08-18 | 2021-11-05 | 中铁六局集团有限公司 | BIM-based two-area three-factory building space planning method and device |
CN114925419A (en) * | 2022-05-06 | 2022-08-19 | 中国十七冶集团有限公司 | BIM and SI system-based operation and maintenance construction method for internal and external spaces of community |
CN114925419B (en) * | 2022-05-06 | 2024-03-19 | 中国十七冶集团有限公司 | Community internal and external space operation and maintenance construction method based on BIM and SI system |
CN115391876A (en) * | 2022-07-29 | 2022-11-25 | 北京城市网邻信息技术有限公司 | Building model establishing method and device, electronic equipment and storage medium |
CN117036561A (en) * | 2023-03-22 | 2023-11-10 | 北京凡米物联科技有限公司 | GIS/CAD/three-dimensional three-in-one coal mine production visual scene hybrid rendering technology based on data driving |
Also Published As
Publication number | Publication date |
---|---|
CN112528379B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112528379B (en) | Building model generation method and device and electronic equipment | |
CN108648269B (en) | Method and system for singulating three-dimensional building models | |
CN112927370B (en) | Three-dimensional building model construction method and device, electronic equipment and storage medium | |
CN112633657B (en) | Construction quality management method, device, equipment and storage medium | |
US7133551B2 (en) | Semi-automatic reconstruction method of 3-D building models using building outline segments | |
CN111629193A (en) | Live-action three-dimensional reconstruction method and system | |
CN111737790B (en) | Method and equipment for constructing simulated city model | |
US10115165B2 (en) | Management of tax information based on topographical information | |
CN111080662A (en) | Lane line extraction method and device and computer equipment | |
CN112233249A (en) | B spline surface fitting method and device based on dense point cloud | |
KR20140062831A (en) | Method for acquiring and processing a variety of three-dimensional data to product a precise wide-area scale model | |
CN112991424B (en) | Fractal dimension calculation method and device based on octree algorithm | |
CN117745969A (en) | Building singulation method, device and related equipment | |
CN114202610B (en) | Texture mapping method for monocoque model of oblique photography building | |
CN118247429A (en) | Air-ground cooperative rapid three-dimensional modeling method and system | |
CN118115691A (en) | Construction progress detection method and system based on three-dimensional model | |
CN114663629A (en) | Building scene modeling method | |
CN112687000B (en) | Correction method, system and computer readable storage medium for three-dimensional model coordinates | |
CN111982077B (en) | Electronic map drawing method and system and electronic equipment | |
CN112884890A (en) | Multi-format basic geographic information data fusion display method | |
CN113409458A (en) | Lightweight real-scene three-dimensional model production method integrated with BIM design platform | |
CN113140022B (en) | Digital mapping method, system and computer readable storage medium | |
CN114943814B (en) | Three-dimensional scanning auxiliary face modeling analysis system | |
CN118537472A (en) | Optimized rendering interaction method for fusing nerve radiation field and three-dimensional system | |
CN118484914A (en) | Power distribution network equipment graph model parameterization design method, system, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |