Modularized CGA building white pattern generation method and system based on data driving

The data-driven modular CGA architectural white model generation method solves the problem that traditional modeling methods cannot meet the quantity and quality requirements of city-level buildings, and realizes flexible and detailed architectural white model generation, which is suitable for a variety of building types and styles.

CN120912786AActive Publication Date: 2025-11-07NANJING LAND & RESOURCES INFORMATION CENT +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202511429389.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2025-11-07
Estimated Expiration
2045-10-09

AI Technical Summary

Technical Problem

Traditional white modeling methods for buildings cannot meet the quantity and quality requirements of city-level buildings. CGA modeling relies on high-quality data, has a limited scope of application, unclear code rules, difficulty in handling unique or complex building structures, and cannot meet high-requirement design or display needs.

Method used

A data-driven, modular CGA architectural white model generation method is adopted. Through a component CGA library and a visual operation interface, a white model is generated, reducing data dependence and making it suitable for various building types and styles.

Benefits of technology

It achieves a flexible and visible modeling process, supports dynamic assembly of multi-level and multi-category CGA libraries, adapts to various building types and styles, improves the model's detail and visualization effects, and reduces repetitive costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120912786A_ABST
    Figure CN120912786A_ABST
Patent Text Reader

Abstract

The invention belongs to a computer-aided modeling technology, and relates to a modular CGA building white pattern generation method and system based on data driving, and the method comprises the steps: defining a CGAModule as a computer-oriented object which contains CGA fragment codes, is executed by a CGA engine, is used for generating a three-dimensional model, and can be mapped into a real building component; constructing a CGA library used for managing CGA modeling contents, wherein the CGA library comprises a CGAModule table, a CGA resource table and a CGA building instance table used for archiving; constructing a visual operation interface of the CGA library; and calling the CGA library through a visual operation interface, and generating a CGA code of the complete building model. According to the method, the white pattern model is generated through the component CGA library and the visual operation interface, data dependence is reduced, and the method is suitable for application scenes of various building types and various styles.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computer-aided modeling, and particularly relates to a data-driven modular CGA (Computer Generated Architecture) building white model generation method and system. BACKGROUND

[0002] The white model, also known as a simple model, is a three-dimensional model of a building after simplification, which is directly embodied as a box-shaped model similar to the actual building in height and shape. Because of its simple model structure, small material volume and low production cost, the building white model is mainly used to express the three-dimensional form of urban buildings and is widely used in urban building density analysis, height analysis, skyline display and other functions, as well as urban planning design, honeycomb network analysis, urban emergency rescue and other business fields. The basic data sources of the building white model include GIS (Geographic Information System) data (such as building base vector data, three-dimensional satellite images), meteorological data, point cloud scanning data, etc.

[0003] The traditional building white model modeling method is based on building bottom contour data, and uses 3D Max (3D modeling master) software to manually build houses one by one or directly stretches the three-dimensional model based on the building height. However, for urban-level building volume, the traditional modeling method cannot fully meet the model quantity and quality requirements, and cannot be applied to multiple building types and various styles.

[0004] CGA technology provides a new idea for building modeling, which uses a program-oriented development strategy to provide rich modeling methods, and users can complete complex and exquisite model design with a small amount of code. The CGA rule can generate building blocks with rich forms. However, there are many CGA rules, which are difficult to understand, lack of dynamic adaptation and meet the plot conditions, specification constraints and user needs, and the building modeling process cannot achieve visible results, so the cost of CGA modeling popularization is high. The existing defects include: ‌(1) Strong data dependency: CGA modeling is highly dependent on high-quality two-dimensional data such as building bottom contour data. If the data quality is not high or not accurate enough, it will affect the quality of the three-dimensional model finally generated.

[0005] ‌(2) Limited scope of application: Although CGA modeling is very effective in handling a large number of similar buildings, it needs to be manually adjusted and supplemented for unique or complex building structures, increasing the complexity of the work. And lack of code library for historical buildings and new buildings, it is complex to write CGA code, difficult to add fine textures and details, resulting in a relatively rough model in visual performance, which cannot meet the high demand for design or display requirements.

[0006] (3) Code rules are not clear: in the default development environment of the CityEngine tool, when generating programmed rules, the developer needs to constantly add conditional judgment statements to adapt to different data, the amount of code required is lengthy, the rule definition is not clear, and the program running efficiency is low. SUMMARY

[0007] In order to solve the problems existing in the prior art, the present application provides a data-driven modular CGA building white model generation method and system, which generates a white model through a component CGA library and a visual operation interface, provides a solution for city three-dimensional visualization and city operation management under a simple model, reduces data dependency, and is suitable for application scenarios of various building types and various styles.

[0008] In one aspect, the present application provides a data-driven modular CGA building white model generation method, comprising the following steps: Define CGAModule as a computer-implemented object for generating a three-dimensional model containing CGA segment code and executed by a CGA engine; CGAModule can be mapped to a real building component; a plurality of CGAModules can be assembled into a CGA model of a complete building model according to a preset strategy; An integrated library for managing CGA modeling content is constructed as a CGA library; the constructed CGA library includes a CGAModule table, a CGA resource table, and a CGA building instance table for archiving; the CGAModule table is used to store all building component instances; the CGA resource table is used to store shared resources, including building material textures, 3D model files, and geographic spatial data, each record in the CGA resource table corresponds to a resource object, and each resource object has a corresponding resource ID; the CGA building instance table is used to store designed complete building models, which can be assembled by building component instances in the CGAModule table; A visual operation interface of the CGA library is constructed to provide visual operation of CGAModule; Through the visual operation interface, the CGA library is called to generate CGA code of the complete building model; In the CGA building instance table, the construction method of each complete building model is stored as a record, and each record is defined as a building template; the building template has a construction hierarchy field, and the IDs of CGAModule used from the building main body to the building component and material are stored in the construction hierarchy field according to the parent-child node hierarchical relationship; all CGAModule used by the complete building model is organized into a tree-form multi-level building construction mode through the construction hierarchy.

[0009] Preferably, each CGAModule includes executable CGA fragment code and is stored in a CGACode field; the CGA fragment code includes parameters, construction rules and sub-components; the parameters include geometric parameters, static constants, dynamic variables and constraints; the construction rules define how to convert parameterized building components into three-dimensional forms through geometric operations or logical controls; the sub-components are smaller sub-components decomposed and refined from building components in the generation process.

[0010] Further preferably, the parameters and sub-components in the CGACode field are listed separately to form new fields, respectively named a parameter set field and a sub-component set field; the CGACode field stores CGA fragment code; the parameter set field stores parameters for human-computer interface interaction; the sub-component set field stores sub-components; the CGACode field, the parameter set field and the sub-component set field are interlinked.

[0011] Preferably, the sub-component set of the CGAModule includes a selector, a shape operation method and a plurality of sub-component items; the selector defines a content selection mode of the sub-component; after the selection mode is determined, the shape operation method is used to determine a form operation on the sub-component, and the form operation includes cutting and component segmentation; the CGAModule can be divided into a parent component and a sub-component, each sub-component in the sub-component item is a type of CGAModule, and the sub-component is used to enrich the details of the parent component; the parent component is divided into a plurality of blocks by using the selector and the shape operation method in combination, and the sub-component is combined and assembled into the sub-component set of the parent component through the corresponding blocks.

[0012] Preferably, the CGAModule includes an ID field and a parent ID field as an object; the ID and the parent ID of the CGAModule are used to build a multi-level organization mode of building component instances, and reflect the use relationship between a building main body and a building component, between building components, and between the building main body and materials.

[0013] Preferably, through a visual operation interface, a CGA library is called to generate CGA code of a complete building model, including: reading building vector data, obtaining geometric and attribute information therein, preprocessing, and generating a standardized vector data table; using a large language model or manually writing script content to flexibly process the standardized vector data table to obtain a processed vector data table; importing the processed vector data table into the visual operation interface of the CGA library, defining a building type, and calling the CGA library according to the building type to generate CGA code of the complete building model.

[0014] Further preferably, the CGA code of the complete building model is generated by calling the CGA library according to the building type, including: dividing the processed vector data table into a plurality of groups according to the building type; According to the building type, the building template is automatically matched from the CGA building instance table in the CGA library; Data of the construction hierarchy in the building template is extracted, and the corresponding CGAModule is found from the CGAModule table to obtain a plurality of CGAModule sets; The visual operation interface of the CGA library automatically selects the corresponding field from the processed vector data table, and automatically fills in the parameters and attributes of the CGAModule set; The visual operation interface of the CGA library automatically extracts the CGA fragment code of the CGAModule set, and merges the CGA fragment code into a piece of CGA code according to the parent-child node hierarchical relationship in the construction hierarchy; if a global shared resource is referenced, the corresponding resource object is found from the CGA resource table according to the resource ID and downloaded to the local directory, and the resource ID in the CGA code is replaced with the actual resource address; finally, the synthesized CGA code is exported as a text file in the format.

[0015] On the other hand, the embodiment of the present application also provides a data-driven modular CGA building white model generation system, which is realized by using the above generation method, and the generation system comprises the following modules: The CGAModule definition module defines the CGAModule as a computer-implemented object containing CGA fragment code and executed by the CGA engine to generate a three-dimensional model; the CGAModule can be mapped to a real building component; a plurality of CGAModules can be assembled into a CGA model of a complete building model according to a preset strategy; The CGA library construction module constructs an integrated library for managing CGA modeling content as a CGA library; the constructed CGA library comprises a CGAModule table, a CGA resource table, and a CGA building instance table for archiving; the CGAModule table is used to store all building component instances; the CGA resource table is used to store shared resources, including building material textures, 3D model files, and geographic space data; the CGA building instance table is used to store designed complete building models, and the complete building models can be assembled by the building component instances in the CGAModule table; The operation interface construction module is used to construct a visual operation interface of the CGA library to provide visual operation of the CGAModule; The CGA code generation module is used to generate the CGA code of the complete building model by calling the CGA library through the visual operation interface.

[0016] Overall, the technical solution of the present application is based on data-driven implementation of the production of assembled CGA white model, a dynamic rule engine integrating GIS data, specification text and user demand is constructed, CGA library and library management software are first constructed, and then white model is generated based on CGA library and management software, which provides a solution for city three-dimensional visualization and city operation management under the support of simple model, reduces data dependency, and is suitable for application scenarios of various building types and various styles. Compared with the prior art, the technical effects obtained by the present application include: 1. Flexible modeling process A multi-level and multi-category CGA library is established, and according to the building type, plot condition, specification constraint and user demand, a runnable CGA segment code can be flexibly configured and dynamically assembled; a building block type assembly architecture is adopted to support flexible configuration of building components and materials, facilitate extension of new building types (such as historical buildings, stadiums, etc.), realize the leap from "manual coding rules" to "data-driven rule generation", and have the characteristics of good flexibility and strong scalability.

[0017] ID / Parent ID (parent ID) is used to realize multi-level reference, and at the same time, code and parameter bidirectional linkage is realized to ensure real-time synchronization update of CGA segment code and parameters, child components, maintain modification consistency, and avoid manual coding errors. After code generation, it is migrated to CityEngine tool for operation, thereby producing a large number of three-dimensional models in batches, and realizing white model production of city-level multi-type building style.

[0018] 2. More close to the needs of building design and city form display The method of establishing a city white model can quickly realize full city coverage, effectively fill the area not covered by the fine model, and facilitate users to more efficiently study the city space pattern in a larger scene; through fine white model, details such as parapet and layer line are expressed, and building design styles such as blank and hand-drawing are fused, housing structure is increased by using wireframe and surface body closer to fine model; multiple base polygons are supported to be merged, and special building structures are adapted, breaking the limitations of existing technology on unique buildings.

[0019] 3. Parameterized tool supports generation of multiple building types and styles Multi-source heterogeneous building vector data is processed by using a large language model or a script, and data quality is improved through field name and attribute content standardization, geographic coordinate conversion to projection coordinate and other operations; CGA library management program generates building models in batches based on standardized data, supports real-time linkage adjustment of facade style, material and color, realizes personalized combination of material technology, can accurately restore building form, adapts to city design needs, and significantly reduces the repeated cost of traditional modeling. BRIEF DESCRIPTION OF DRAWINGS

[0020] Figure 1This is a schematic diagram of the overall process of the modular CGA building white model generation method in an embodiment of the present invention; Figure 2 This is a schematic diagram illustrating the multi-level organizational relationship of different building component instances constructed through ID and parent ID in an embodiment of the present invention; Figure 3 This is a schematic diagram illustrating the formation of a parent component by combining sub-components in an embodiment of the present invention; Figure 4 This is a schematic diagram showing the relationship between the components of the CGA library constructed in this embodiment of the invention. Detailed Implementation

[0021] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments, but the implementation of the present invention is not limited thereto.

[0022] Example like Figure 1 As shown, this embodiment provides a data-driven modular CGA building white model generation method, including the following steps: S1. Define CGAModule.

[0023] CGA code is a Python-like scripting language that can be executed by the CGA engine. In practice, writing CGA code is a complex task that takes a long time to debug. Therefore, this embodiment breaks down the CGA code of a complete building model into multiple CGA code fragments, and stores these fragments in several independently manageable CGAModules (Computer Generated Architecture Modules, also called CGA modules) for easy management, assembly, and adjustment.

[0024] In this embodiment, CGAModule is defined as a computer-oriented object containing CGA fragment code that can be executed by the CGA engine to generate a 3D model; CGAModule can be mapped to real building components, such as walls, beams, floors, roofs, windows, etc.; several CGAModules can be assembled into a complete building model CGA model according to a preset strategy.

[0025] CGA snippets are code that has been broken down from CGA code and stored in a CGAModule. A complete building model may have hundreds of lines of CGA code, while the code snippets in a CGAModule may only have 10 lines or less.

[0026] Further, each CGAModule includes executable CGA fragment code and is stored in a CGACode field. The CGA fragment code includes three main parts of parameters, construction rules and sub-components, the parameters include geometric parameters, static constants, dynamic variables, constraints, etc.; the construction rules define how to convert the parameterized building components into three-dimensional form through geometric operations or logical control; the sub-components are smaller sub-components decomposed and refined from the building components in the generation process, which can be further refined through recursive rules until the termination condition is met.

[0027] At the same time, in order to realize the human-computer interface interaction and reduce the difficulty of building assembly, the parameters and sub-components in the CGACode field are listed separately to form new fields, named Parameters field (parameter set field) and Components field (sub-component set field). That is, the CGACode field stores the CGA fragment code; the Parameters field stores the parameters, which can be used for human-computer interface interaction; and the Components field stores the sub-components. The three are interlinked, for example, after the user modifies the Parameters field or the Components field, the system will automatically update the corresponding CGA fragment code in the CGACode field, ensuring that the code is consistent with the human-computer interface operation.

[0028] The CGAModule as an object includes the fields and field attributes as shown in Table 1.

[0029] Table 1 Fields and field attributes of CGAModule

[0030] The Type field of CGAModule describes the architectural instance meaning of the CGAModule module, and the detailed content is shown in Table 2.

[0031] Table 2 Type field of CGAModule

[0032] The field attributes of CGAModule have the following characteristics: (1) The ID and parent ID of CGAModule are used to build a multi-level organization mode of building component instances, which reflects the use relationship between building main body and building component, building component and building component, and building main body and material. The parent ID of the CGAModule of the type of building main body is 0, and this CGAModule is an entrance module of a building main body.

[0033] The multi-level organization relationship of different building component instances constructed by the ID and parent ID of CGAModule is as follows: Figure 2As shown in FIG. 1. Figure 2 In the embodiment, the CGAModule of the type "building main body" is the parent ID of the building component A (roof), the building component B (ground), the building component C (exterior wall), and the material set. The building component C (exterior wall) is the parent ID of the building component D (front wall) and the building component E (side wall), i.e., the building component C is formed by the combination of the building component D and the building component E. Similarly, the material set is obtained by the combination of the material A (glass material) and the material B (steel frame material).

[0034] (2) The CGACode of the CGAModule is a CGA segment code that can construct a 3D model of the building component. The building main component code contains constants (Const) and variables (Attr). The child CGAModule can directly access the constants and variables of the parent CGAModule.

[0035] (3) The attributes in the CGAModule object are bidirectionally linked with the CGA segment code, i.e., the change of the parameters and variables in the CGAModule object will synchronously affect the CGA segment code, and vice versa.

[0036] (4) The Components of the CGAModule include a selector (Selector Strategy), a shape operation method (Shape Operation), and a plurality of component items (Component Items). The selector defines the content selection mode of the component, such as selecting all the faces of the component, other selection modes including selecting edges, selecting groups, selecting materials, etc. After the selection mode is determined, the shape operation method is used to determine the shape operation on the component, such as splitting (Split) and component division (Comp). The selector and the shape operation method are generally used jointly. For example, Comp(f) means selecting all the faces of the component, so as to decompose the shape of the component into a plurality of blocks (such as a roof and a wall); for another example, Split(y) means selecting the y-axis of the component, so as to divide the component along the y-axis to obtain a plurality of layered blocks. After the shape operation, the component is divided into a plurality of block names with standard names. The block names include front, back, left, right, top, etc.

[0037] According to the hierarchical structure relationship between building components, the CGA Module can be divided into parent components and child components, and each child component in the child component item is also a type of CGA Module, for example, the parent component is a building main body, and the child component is a corridor. The child component is used to enrich the details of the parent component, so that the building is more detailed. In this embodiment, according to the actual application scene, the selector and the shape operation method are used in combination to divide the parent component into multiple blocks, and the child component can be combined and assembled into a parent component or a child component set through the corresponding blocks. The formed parent component or child component set is stored in the CGA Module table, which can be directly called in the subsequent process of designing a building model by a user, so as to further convert the parameterized building component into a three-dimensional form according to the construction rules. For example, Figure 3 After the roof building component is combined with the four-wall building component, a house building main body is formed.

[0038] S2, constructing a CGA library.

[0039] An integrated library for managing CGA modeling content is constructed as a CGA library; the constructed CGA library includes a CGA Module table, a CGA resource table, and a CGA building instance table for archiving; and the CGA library adopts a relational database as a data storage medium. In the database, the relationship between the components in the CGA library is as shown in Figure 4 The CGA Module table is used to store all building component instances, and is the most important basic data in the entire fabricated CGA module. A user can find the corresponding building component instance in the CGA Module table according to the building component name and the building component type. The CGA resource table is used to store shared resources such as building material textures, 3D model files, and geographic space data. The CGA building instance table is used to store a complete building model designed by a user. The CGA building instance (i.e., the complete building model designed by the user) can be assembled by the building component instances in the CGA Module table, so as to facilitate re-editing and sharing.

[0040] That is, the CGA resource table stores a plurality of static shared resources, such as building material textures, 3D model files, and geographic space data. Each record in the CGA resource table corresponds to a resource object, and each resource object has a corresponding resource ID. A user can add, modify, or delete the resource objects in the CGA resource table. In order to facilitate understanding and retrieval, the resource object is provided with a category field and a classification field. The categories in the category field include a map category and a model category, and each category can be further classified to form the classification field. The classifications include wall map and roof map. In addition, the contents recorded in the CGA resource table are stored in the form of a binary large object (blob), which can be read and converted into a local resource. The CGA Module can refer to the resource ID in the CGA resource table to realize free configuration of the resource.

[0041] Specifically, in the CGA building instance table, the construction method of each complete building model is stored as a record, and each record is defined as a building template; the building template is provided with a construction hierarchy field, in which the IDs of the CGA modules used from the building main body to the building components and materials are stored in a parent-child node hierarchical relationship; all CGA modules used by the complete building model are organized into a multi-level building construction mode in the form of a tree through the construction hierarchy.

[0042] S3, constructing a visual operation interface of the CGA library.

[0043] The visual operation interface constructed in this step provides the user with visual operations of the CGA module, including updating the CGA module such as adding, modifying, and deleting the CGA module, checking whether the parameters, sub-components, and materials of the multi-layer CGA module are correct, and calling the CGA library through the visual interface to generate the CGA code of the complete building model. In actual applications, the visual operation interface of the CGA library can be presented as a CGA library management software.

[0044] Through the constructed visual operation interface, the specific functions that can be achieved include: (1) Replacing, adding, deleting, and modifying the CGA module, including creating, dividing, replacing, adding, deleting, and modifying the sub-components.

[0045] In the added CGA module, the user can fill in the basic information of the CGA module and store it in the CGA library. Among them, the name of the CGA module (Name) requires a uniform prefix for easy identification, for example, when the type (Type) is a building component, the prefix of the CGA module name is ; when the type (Type) is a material, the prefix of the CGA module name is In addition, the content of the CGA code field in the CGA module can also be filled in. After filling in, the CGA fragment code content is automatically identified, and the content of the parameter set (Parameters) field is extracted, and the specific implementation process includes: Using regular expressions to find the lines where the variable Atrr and the constant Const are located, and matching the variable content, then storing it in the parameter set field in the form of key-value pairs; automatically monitoring whether the content of the parameter set field matches the content of the CGA code field, so as to meet the user's visual adjustment goal.

[0046] (2) Call the CGA library to build the building main body CGAModule. First, add the building main body CGAModule, and then decompose the components of the building main body layer by layer, and constantly add the sub-components and materials of the building main body.

[0047] (3) Cascade check whether the building components and materials contained in the built building main body are complete, and whether the parameters are correctly referenced.

[0048] The specific method is: from the building main body to the bottom, whether the component set (Components) used by the building main body CGAModule (as the parent node) exists in its child node CGAModule, if not, the test fails; whether the parameters used in the child node CGAModule are defined in the building main body CGAModule, if not defined, the test fails; whether the material used in the child node CGAModule exists, if not, the test fails.

[0049] (4) The user generates the construction method of a number of typical complete building models in advance according to the requirements, and stores them in the CGA building instance table. In the CGA building instance table, the construction method of each typical complete building model is stored as a record, and each record is defined as a building template (Building Template), and the specific field description is shown in Table 3. The construction hierarchy (BuildHierarchy) field in the building template stores the ID of the CGAModule used from the building main body to the building component and material according to the parent-child node hierarchical relationship; through the construction hierarchy, all CGAModules used by the complete building model can be organized into a multi-level building construction mode in the form of a tree (Tree).

[0050] Table 3 Field description of building template

[0051] (5) Integrate GIS engine, rendering engine, and large language model to support the loading, preview, quality inspection, and preprocessing of multi-source and heterogeneous building vector data.

[0052] S4, through the visual operation interface of the CGA library, optimize and update the sub-components in the CGAModule.

[0053] At any time, the component set (Components) in the CGAModule can be optimized and updated to achieve flexible modeling strategies. The CGA library management software (i.e. the visual operation interface of the CGA library) provides the creation, replacement, addition, deletion, and modification operations of the sub-components in the CGAModule, and the specific process of the operation is as follows: (1) Create sub-components: If a sub-component needs to be created for a building component CGAModule, a Components object can be created for it, and the corresponding selector and shape operation method can be set.

[0054] (2) Add sub-components: According to the selector and shape operation method of the sub-component set in the building component CGAModule, one of the sub-components is selected; then a CGAModule is selected or created from the CGA library, and the selected sub-component is set as the sub-component of the building component.

[0055] For example, in a certain house, the selector is defined as a face, and the shape operation method of the component division Comp is used; then according to the position of the face, the house is divided into top (top), front (front), back (back), left (left), right (right), bottom (bottom) and other sub-blocks; then the top sub-block is set as the roof of the house, and the front, back, left and right sub-blocks are set as the facades of the house.

[0056] (3) Delete sub-components: Select a sub-component item in the sub-component set of CGAModule, and delete it.

[0057] (4) Modify sub-components: Select a sub-component item in the sub-component set of CGAModule, and modify the parameters therein, or select or create a new CGAModule from the CGA library and replace it.

[0058] After the above operations, the CGA library management software will automatically check whether the sub-component set of CGAModule is reasonable and whether the parameters are defined, and if not, the user will be prompted to modify.

[0059] S5, through the visual operation interface, calling the CGA library, generating the CGA code of the complete building model.

[0060] In the generation process of the CGA code, first, the building vector data is read and preprocessed by the GDAL (Geospatial Data Abstraction Library) component, including field normalization, coordinate conversion, height calculation, type identification, etc., to generate a standardized vector data table (Data Table). Then in the CGA library management software, the corresponding CGAModule is matched according to the building type, the parameters are automatically filled in, and the CGA fragment code is generated, and finally the complete rule file is merged to realize the batch generation of the complete building model.

[0061] In this embodiment, the following steps are specifically included: S51, read the building vector data using the GDAL component, obtain the geometry (Geometry), attribute (Attribute), etc. information, preprocess, and generate a standardized vector data table. If necessary, read the land information, traffic information, etc.

[0062] S52, use a large language model or manually write JS code, Python code script content to flexibly process the standardized vector data table, and generate a new vector data table, i.e. the processed vector data table.

[0063] Among them, the script content can include the following aspects: a, field name, attribute content standardization: standardize various sources and formats of data according to unified standards to reduce the workload of CGA customization fields.

[0064] b, coordinate conversion: convert the coordinates of the vector data from the geographic coordinate system to the projection coordinate system to meet the requirements of CGA processing according to the unit meter.

[0065] c, building height calculation: calculate the center point of each complete building model, and sample the elevation information of the center point from the terrain service, and add the elevation information to the building attribute information.

[0066] d, building type identification: according to the building attribute information, use text similarity judgment and other technologies to identify the building type, such as residential, commercial, industrial, etc.

[0067] e, calculate new building attributes: generate new building attributes according to one or more attribute information, such as building material according to building type.

[0068] f, calculate the length and width of the building main body (i.e. complete building): determine the main direction of the building main body by calculating the direction vector of each side of the polygon and analyzing its distribution. For example, you can calculate the direction angle of all sides and count the frequency of the angle range to determine the general orientation of the building main body. Usually, the length and width of the building main body are related to the main direction. You can also import road data to help determine the length and width of the building main body, and the side facing the road is the front of the building.

[0069] g, check if the same complete building model has the same building ID (Building ID): Generally, large buildings may have multiple component units, and different component units have independent geometry and attributes. After generating the complete building model, the same complete building model needs to be merged, so you can use the building ID to merge.

[0070] It should be noted that in the information contained in the script content, the fields such as building type and building height are necessary, and the fields such as building style are optional.

[0071] S53, import the processed vector data table in the visualization operation interface of the CGA library, define the building type, and call the CGA library according to the building type to generate the CGA code of the complete building model. The specific process is as follows: a. According to the building type, the processed vector data table is divided into multiple groups.

[0072] b. According to the building type, automatically match the building template from the CGA building instance table in the CGA library. If the corresponding record cannot be found, remind the user to create it.

[0073] c. Extract the data of the construction hierarchy in the building template, find the corresponding CGAModule in the CGAModule table, and obtain a number of CGAModule sets; this set still retains the parent-child node hierarchical relationship in the construction hierarchy.

[0074] d. The visualization operation interface of the CGA library automatically selects the corresponding fields from the processed vector data table, and automatically fills in the parameters and attributes of the CGAModule set.

[0075] e. The visualization operation interface of the CGA library automatically extracts the CGA fragment code of the CGAModule set, and merges it into a piece of CGA code according to the parent-child node hierarchical relationship in the construction hierarchy; if global shared resources are referenced, find the corresponding resource object from the CGA resource table according to the resource ID and download it to the local directory, replace the resource ID in the CGA code with the actual resource address; finally, export the synthesized CGA code into a text file in the format.

[0076] S6, three-dimensional model generation and release, specifically including: S61, use City Engine or other three-dimensional modeling software to execute the CGA code to obtain a set of three-dimensional models. This set of three-dimensional models is one-to-one corresponding to the records of building vector data.

[0077] S62, considering that a complex building may have multiple records in the building vector data, therefore, the method of executing the 3D layer to feature class of three-dimensional model in ArcGISPro or other three-dimensional data software can be used to select the building ID field, and multiple building three-dimensional models with the same building ID are merged into one building three-dimensional model.

[0078] S63, generate 3D Tiles, I3S and other tile three-dimensional services by using three-dimensional data software such as ArcGISPro, so as to facilitate quick display and service sharing on the CIM platform. When generating the tile three-dimensional service, the building vector data can be mounted, so that each building three-dimensional model has complete attributes.

[0079] Based on the same inventive concept, the embodiment also provides a data-driven modular CGA building white model generation system, which is implemented by using the modular CGA building white model generation method of the embodiment. The generation system includes the following modules: The CGAModule definition module defines the CGAModule as a computer-implemented object containing CGA fragment codes and executed by the CGA engine to generate a three-dimensional model; the CGAModule can be mapped to a real building component; and a plurality of CGAModules can be assembled into a CGA model of a complete building model according to a preset strategy. The CGA library construction module constructs an integrated library for managing CGA modeling content as a CGA library; the constructed CGA library includes a CGAModule table, a CGA resource table, and a CGA building instance table for archiving; the CGAModule table is used to store all building component instances; the CGA resource table is used to store shared resources, including building material textures, 3D model files, and geographic space data; and the CGA building instance table is used to store designed complete building models, which can be assembled by building component instances in the CGAModule table. The operation interface construction module is used to construct a visual operation interface of the CGA library to provide visual operation of the CGAModule. The CGA code generation module is used to generate CGA codes of the complete building model by calling the CGA library through the visual operation interface.

[0080] The specific implementation process of each module is described in the foregoing steps S1-S5, which will not be repeated here.

[0081] It is obvious for those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or essential characteristics of the present application. Therefore, the above examples are exemplary, and the protection scope of the present application is subject to the content recorded in the claims.

Claims

1. A data-driven based modular CGA building white model generation method, characterized in that, The method comprises the following steps: defining a CGA module as a computer-implemented object for generating a three-dimensional model, the CGA module comprising CGA fragment codes and being executed by a CGA engine; the CGA module can be mapped to a real building component; a plurality of CGA modules can be assembled into a CGA model of a complete building model according to a preset strategy; an integrated library for managing CGA modeling contents is constructed as a CGA library; the constructed CGA library comprises a CGA module table, a CGA resource table and a CGA building instance table for archiving; the CGA module table is used for storing all building component instances; the CGA resource table is used for storing shared resources, including building material textures, 3D model files and geographic space data, each record in the CGA resource table corresponding to a resource object, each resource object having a corresponding resource ID; the CGA building instance table is used for storing designed complete building models, the complete building models being able to be assembled by building component instances in the CGA module table; a visual operation interface of the CGA library is constructed for providing visual operation of the CGA module; the CGA library is called through the visual operation interface to generate CGA codes of the complete building model; wherein, in the CGA building instance table, a construction method of each complete building model is stored as a record, and each record is defined as a building template; the building template is provided with a construction hierarchy field, in which the IDs of the CGA modules used from a building main body to a building component and a material are stored in a parent-child node hierarchical relationship; all CGA modules used by the complete building model are organized into a tree-form multi-level building construction mode through the construction hierarchy.

2. The modular CGA building white mockup generation method of claim 1, wherein, Each CGA module comprises executable CGA fragment codes and is stored in a CGA code field; the CGA fragment codes comprise parameters, construction rules and sub-components; the construction rules define how to convert the parameterized building component into a three-dimensional form through geometric operations or logical controls; the sub-components are smaller sub-components decomposed and refined from the building component in the generation process.

3. The modular CGA building white mockup generation method of claim 2, wherein, parameters and sub-components in the CGA code field are listed separately to form new fields, namely a parameter set field and a sub-component set field; the CGA code field stores CGA fragment codes; the parameter set field stores parameters for human-computer interface interaction; the sub-component set field stores sub-components; the CGA code field, the parameter set field and the sub-component set field are interlinked.

4. The modular CGA building white mockup generation method of claim 3, wherein, The sub-component set of the CGAModule includes a selector, a shape operation method and a plurality of sub-component items; the selector defines a content selection mode of the sub-component; after the selection mode is determined, the shape operation method is used to determine a shape operation on the sub-component, and the shape operation includes cutting and component segmentation; the CGAModule can be divided into a parent component and a sub-component, each sub-component in the sub-component item is a type of the CGAModule, the sub-component is used to enrich details of the parent component, the parent component is divided into a plurality of blocks by using the selector and the shape operation method in combination, and the sub-component is combined and assembled into the sub-component set of the parent component through corresponding blocks.

5. The modular CGA building white mockup generation method of claim 2, wherein, The CGAModule serves as an object and includes an ID field and a parent ID field; the ID and the parent ID of the CGAModule are used to construct a multi-level organization mode of a building component instance, and reflect a use relationship between a building main body and a building component, between building components, and between the building main body and a material.

6. The modular CGA building white mockup generation method of claim 2, wherein, Through the constructed visual operation interface, the following specific functions can be implemented: (1) replacing, adding, deleting and modifying the CGAModule, including creating, dividing, replacing, adding, deleting and modifying the sub-component; (2) calling the CGA library, adding a building main body, then decomposing components of the building main body layer by layer, and continuously adding sub-components and materials of the building main body; (3) cascadingly checking whether building components and materials contained in the constructed building main body are complete and whether parameters are correctly referenced; (4) according to requirements, pre-generating construction methods of a plurality of complete building models and storing the construction methods in a CGA building instance table.

7. The modular CGA building white mockup generation method of claim 2, wherein, The modular CGA building white model generation method further includes the following steps: Through the visual operation interface of the CGA library, the sub-component in the CGAModule is optimized and updated, including creating, dividing, replacing, adding, deleting and modifying the sub-component in the CGAModule.

8. The modular CGA building white mockup generation method of claim 1, wherein, Through the visual operation interface, the CGA library is called to generate CGA code of a complete building model, including: reading building vector data, obtaining geometric and attribute information therein, pre-processing, and generating a standardized vector data table; flexibly processing the standardized vector data table by using a large language model or manually writing script content, and obtaining a processed vector data table; importing the processed vector data table into the visual operation interface of the CGA library, defining a building type, and calling the CGA library according to the building type to generate CGA code of a complete building model.

9. The modular CGA building white mockup generation method of claim 8, wherein, According to the building type, the processed vector data table is divided into a plurality of groups; According to the building type, the building template is automatically matched from the CGA building instance table in the CGA library; extracting data of a construction level in the building template, finding corresponding CGAModule from the CGAModule table, and obtaining a plurality of CGAModule sets; the visual operation interface of the CGA library automatically selects corresponding fields from the processed vector data table, and automatically fills in parameters and attributes of the CGAModule set; ​ The visual operation interface of the CGA library automatically extracts the CGA fragment code of the CGA module set and merges it into a piece of CGA code according to the parent-child node hierarchical relationship in the construction hierarchy; if global shared resources are referenced, the corresponding resource object is found from the CGA resource table according to the resource ID and downloaded to the local directory, and the resource ID in the CGA code is replaced with the actual resource address; finally, the synthesized CGA code is exported into a text file in the format.

10. A data-driven based modular CGA building white model generation system, implemented by using any one of the modular CGA building white model generation methods of claims 1-9, characterized in that, The generation system comprises the following modules: A CGA module definition module defines a CGA module as a computer-implemented object containing CGA fragment codes and executed by a CGA engine to generate a three-dimensional model; the CGA module can be mapped to a real building component; A plurality of CGA modules can be assembled into a CGA model of a complete building model according to a preset strategy; A CGA library construction module constructs an integrated library for managing CGA modeling contents as a CGA library; the constructed CGA library comprises a CGA module table, a CGA resource table and a CGA building instance table for archiving; the CGA module table is used for storing all building component instances; the CGA resource table is used for storing shared resources including building material textures, 3D model files and geographic space data; The CGA building instance table is used for storing designed complete building models which can be assembled by building component instances in the CGA module table; An operation interface construction module is used for constructing a visual operation interface of the CGA library to provide visual operation of the CGA module; A CGA code generation module is used for generating CGA codes of complete building models by calling the CGA library through the visual operation interface.

Citation Information

Patent Citations

  • Design and implementation method based on non-fine building batch rapid three-dimensional modeling

    CN112991520A

  • CNN (Convolutional Neural Network) based DPCR (Digital Polymerase Chain Reaction) droplet fluorescence detection method

    CN114648529A

  • Method for Lot Database Construction and ManagementUsing Geographic Information System

    KR1020020050217A

  • Reality-based three-dimensional infrastructure reconstruction

    US10636209B1

  • A system and method for generating architectural designs and specifications for buildings

    WO2024079761A1