Urban building automatic generation method based on land planning map

文档序号:169115 发布日期:2021-10-29 浏览:38次 中文

阅读说明:本技术 一种基于用地规划图的城市建筑自动生成方法 (Urban building automatic generation method based on land planning map ) 是由 冯岳云 于 2021-08-10 设计创作,主要内容包括:本发明涉及生成方法技术领域,且公开了一种基于用地规划图的城市建筑自动生成方法,包括以下步骤:S1、CAD数据转换;S2、三维立体模型生成;S3、多边形面转点;S4、原型系统的实现。本发明提出一种基于用地规划图的城市建筑自动生成方法,本发明将繁琐的手工操作建模方法变成计算机自动化的操作,使建模方法得到完善和提高。(The invention relates to the technical field of generation methods, and discloses an automatic urban building generation method based on a land planning map, which comprises the following steps: s1, converting CAD data; s2, generating a three-dimensional model; s3, turning points of polygonal surfaces; and S4, realizing a prototype system. The invention provides an automatic urban building generation method based on a land planning map, which changes a fussy manual operation modeling method into computer automation operation, so that the modeling method is improved.)

1. A city building automatic generation method based on a land planning map is characterized by comprising the following steps:

s1, converting CAD data;

s2, generating a three-dimensional model;

s3, turning points of polygonal surfaces;

and S4, realizing a prototype system.

2. The method according to claim 1, wherein in S1, during the process of preprocessing the CAD bottom data, redundant elements are deleted, only the bottom of the building and the annotation layer with related attributes are retained, and the attributes of each polygon are guaranteed to be complete, and then the preprocessed CAD bottom data is imported into ArcGIS and converted into shape surface layers, where the attribute table of the surface layer includes model material, model layer number, model name, and model bottom area.

3. The method of claim 1, wherein in S2, reading each row record of the converted shape data sequentially, including reading coordinates of each polygon bottom contour point and corresponding attribute information, and generating a three-dimensional model by using DirectX3D plug-in provided by microsoft to generate a.x format file by mapping; the x-format file is extracted from skyline software by a writer and is subjected to an xpl generation module, so that a xpl 2-format model file with a four-layer pyramid structure can be further generated; in the process of generating the model, firstly, the height of the model is required to be calculated, the number of building layers is taken by a writer, so that the building height is calculated according to the number of layers multiplied by 3.8m, and then 4 node coordinates (x, y, z) of rectangles on the upper, lower and side surfaces of the building and an array index are stored by using the array verticals to store the index of the node of each rectangle after the rectangle is divided into two triangles in the array verticals;

and finally, utilizing Mesh and Material interface functions provided by Direct3D to realize rapid construction of three-dimensional models and texture maps, wherein in the specified map file, a person specifies the corresponding map file through the Material attributes of the attribute table.

4. The method for automatically generating the urban building based on the ground plan according to claim 1, wherein in S3, the center point extracted from the bottom surface of the polygon is converted into a point map layer, and a rapidly generated model file and attribute information of the model can be hooked in the point map layer, so that consistency between the model and the attribute information is ensured;

the bottom surface of the polygon is stored in the dot layer by calculating X, Y coordinates of the centroid of the polygon, and meanwhile, relevant attribute information of the polygon layer is copied into the dot layer, wherein the elevation attribute is indispensable, and in the process, the general condition of the model and the principle that a person builds the model by Direct3D are considered, so that the person does not completely eliminate the bottom surface of the simple polygon.

5. The method for automatically generating urban buildings according to the land planning map as claimed in claim 1, wherein at S4, it is required to process and convert CAD data into SHAPE format data in ArcGIS software to check the integrity and correctness of attribute data and prepare texture pictures of three-dimensional models, and before conversion, it is required to specify the input/output data path and the whole conversion process is fully automated;

after the three-dimensional model is rapidly modeled, an x file provided by skyline is converted into an xpl2 file plug-in, the model pyramid is built, the spatial position and attribute information of each model can be known in detail in a mode of hooking the model through a SHAPE file, and the effect of the rapidly modeled three-dimensional model is displayed.

6. The method as claimed in claim 3, wherein the attribute information includes the number of floors and the material of the city building.

Technical Field

The invention relates to the field of generation methods, in particular to an automatic urban building generation method based on a land planning map.

Background

At present, digital city construction is well developed nationwide, the three-dimensional modeling industry presents a great situation of thriving, and particularly, various three-dimensional modeling methods and modeling software are endless and greatly enrich the theory of three-dimensional modeling, promote the competitive environment of three-dimensional modeling and rapidly develop the three-dimensional modeling industry. Meanwhile, due to the diversity, complexity and workload and trivial work presented by modern building forms, the limitations and challenges brought by software and hardware technologies still face when computer software is used for automatic modeling at present. In order to make a more detailed and vivid three-dimensional model and reflect a real objective world more truly, many data production departments and manufacturers select a more traditional manual modeling method, which is undoubtedly time-consuming, labor-consuming and high in cost.

For the construction method of the urban three-dimensional model, various technical route schemes are formed due to the fact that the cognition is different due to the professions and knowledge structures in different fields. Generally, these solutions can be roughly divided into two categories:

the first technical scheme is that the general idea of the urban three-dimensional modeling method or oblique photography three-dimensional modeling method based on the spatial information technology is to utilize 4D products in the surveying and mapping industry, including resources such as digital topographic map Data (DLG), remote sensing image Data (DOM), digital elevation model Data (DEM), laser scanning data (LIDAR) and the like. Firstly, a ground surface model with real elevation fluctuation is built by utilizing DOM and DEM data, then a house model is built on the ground surface model by utilizing DILG or LIDAR data, and finally a complete digital city three-dimensional model is formed.

The second technical scheme is a city three-dimensional modeling method based on a Virtual Reality (Virtual Reality) technology or an Augmented Reality (Augmented Reality) technology, which takes the general idea of the technology that a computer technology is used as a core to generate vivid visual, auditory and tactile integrated Virtual environment users in a specific range, interact with objects in a Virtual environment in a natural way by means of necessary equipment (such as special clothes, helmets, gloves, shoes and the like) so as to generate feeling and experience of 'immersing' in the equivalent real environment.

The first technical solution is more adopted in three-dimensional fine modeling of digital cities at present (refer to fig. 2). Specifically, 3D Max software is used for establishing a three-dimensional city building model through 3 steps, namely firstly, processing CAD data of a plane base map; establishing a three-dimensional building model according to the height of the building; and thirdly, pasting cut textures on the three-dimensional building model, so that the model is more real, but the manual operation modeling method is more complicated.

In order to solve the problems, the application provides an automatic urban building generation method based on a land use planning map.

Disclosure of Invention

Objects of the invention

In order to solve the technical problems in the background art, the invention provides an automatic urban building generation method based on a land planning map.

(II) technical scheme

In order to solve the problems, the invention provides an automatic urban building generation method based on a land use planning map, which comprises the following steps:

s1, converting CAD data;

s2, generating a three-dimensional model;

s3, turning points of polygonal surfaces;

and S4, realizing a prototype system.

Preferably, in S1, in the process of preprocessing the CAD bottom data, the redundant elements are deleted, only the bottom surface of the building and the annotation layer containing the relevant attributes are reserved, and the integrity of the attributes of each polygon is ensured, and then the preprocessed CAD bottom data is imported into ArcGIS and converted into shape surface layers, where the attribute table of the surface layers should include model material, model layer number, model name, and model bottom surface area.

Preferably, in S2, sequentially reading each line record of the converted shape data, including reading coordinates and corresponding attribute information of each polygon bottom surface contour point, and then generating a three-dimensional model by using a DirectX3D plug-in provided by microsoft, and generating an x-format file by mapping; the x-format file is extracted from skyline software by a writer and is subjected to an xpl generation module, so that a xpl 2-format model file with a four-layer pyramid structure can be further generated; in the process of generating the model, firstly, the height of the model is required to be calculated, the number of building layers is taken by a writer, so that the building height is calculated according to the number of layers multiplied by 3.8m, and then 4 node coordinates (x, y, z) of rectangles on the upper, lower and side surfaces of the building and an array index are stored by using the array verticals to store the index of the node of each rectangle after the rectangle is divided into two triangles in the array verticals;

and finally, utilizing Mesh and Material interface functions provided by Direct3D to realize rapid construction of three-dimensional models and texture maps, wherein in the specified map file, a person specifies the corresponding map file through the Material attributes of the attribute table.

Preferably, in S3, the center point extracted from the bottom surface of the polygon is converted into a point map layer, and a rapidly generated model file and attribute information of the model can be hooked in the point map layer, so as to ensure consistency between the model and the attribute information;

the bottom surface of the polygon is stored in the dot layer by calculating X, Y coordinates of the centroid of the polygon, and meanwhile, relevant attribute information of the polygon layer is copied into the dot layer, wherein the elevation attribute is indispensable, and in the process, the general condition of the model and the principle that a person builds the model by Direct3D are considered, so that the person does not completely eliminate the bottom surface of the simple polygon.

Preferably, in S4, CAD data is first processed and converted into SHAPE format data in ArcGIS software to check the integrity and correctness of attribute data, and a texture picture of a three-dimensional model needs to be prepared, and the whole conversion process of an input/output data path is specified before conversion, so that the whole conversion process is completely automated;

after the three-dimensional model is rapidly modeled, an x file provided by skyline is converted into an xpl2 file plug-in, the model pyramid is built, the spatial position and attribute information of each model can be known in detail in a mode of hooking the model through a SHAPE file, and the effect of the rapidly modeled three-dimensional model is displayed.

Preferably, the attribute information includes a layer number and a material.

The technical scheme of the invention has the following beneficial technical effects:

and operation steps are reduced, so that modeling display is performed quickly.

Drawings

Fig. 1 is a flow chart of an automatic city building generation method based on a land planning map according to the present invention.

Fig. 2 is a diagram of a prior art solution.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings 1-2 in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.

The invention provides an automatic urban building generation method based on a land planning map, which comprises the following steps:

s1, converting CAD data;

s2, generating a three-dimensional model;

s3, turning points of polygonal surfaces;

and S4, realizing a prototype system.

Preferably, in S1, in the process of preprocessing the CAD bottom data, the redundant elements are deleted, only the bottom surface of the building and the annotation layer containing the relevant attributes are reserved, and the integrity of the attributes of each polygon is ensured, and then the preprocessed CAD bottom data is imported into ArcGIS and converted into shape surface layers, where the attribute table of the surface layers should include model material, model layer number, model name, and model bottom surface area.

In an alternative embodiment, in S2, sequentially reading each line record of the converted shape data, including reading coordinates of each polygon base contour point and corresponding attribute information, and then generating a three-dimensional model by using a DirectX3D plug-in provided by microsoft, and generating an x-format file by mapping; the x-format file is extracted from skyline software by a writer and is subjected to an xpl generation module, so that a xpl 2-format model file with a four-layer pyramid structure can be further generated; in the process of generating the model, firstly, the height of the model is required to be calculated, the number of building layers is taken by a writer, so that the building height is calculated according to the number of layers multiplied by 3.8m, and then 4 node coordinates (x, y, z) of rectangles on the upper, lower and side surfaces of the building and an array index are stored by using the array verticals to store the index of the node of each rectangle after the rectangle is divided into two triangles in the array verticals;

and finally, utilizing Mesh and Material interface functions provided by Direct3D to realize rapid construction of three-dimensional models and texture maps, wherein in the specified map file, a person specifies the corresponding map file through the Material attributes of the attribute table.

In an optional embodiment, in S3, the center point extracted from the bottom surface of the polygon is converted into a point layer, and a rapidly generated model file and attribute information of the model can be hooked in the point layer, so as to ensure consistency between the model and the attribute information;

the bottom surface of the polygon is stored in the dot layer by calculating X, Y coordinates of the centroid of the polygon, and meanwhile, relevant attribute information of the polygon layer is copied into the dot layer, wherein the elevation attribute is indispensable, and in the process, the general condition of the model and the principle that a person builds the model by Direct3D are considered, so that the person does not completely eliminate the bottom surface of the simple polygon.

In an alternative embodiment, at S4, CAD data is first processed and converted into SHAPE format data in ArcGIS software to check the integrity and correctness of attribute data, and a texture picture of a three-dimensional model needs to be prepared, and before conversion, an input/output data path is specified, and the whole conversion process is completely automated;

after the three-dimensional model is rapidly modeled, an x file provided by skyline is converted into an xpl2 file plug-in, the model pyramid is built, the spatial position and attribute information of each model can be known in detail in a mode of hooking the model through a SHAPE file, and the effect of the rapidly modeled three-dimensional model is displayed.

In an alternative embodiment, the attribute information includes a layer number and a material.

It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种盾构机姿态优化方法、系统及模型训练方法、系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类