Building model generation method and device, electronic equipment and readable storage medium

By utilizing building rule bases and CIM data in the CIM platform, building models are automatically generated, solving the problem of low modeling efficiency in existing technologies and achieving efficient and unified building modeling results.

CN120974579APending Publication Date: 2025-11-18CHINA MOBILE (XIONGAN) ICT CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511007350.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-22
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

Existing technologies for building modeling are inefficient, requiring manual drawing of building outlines, editing of details, and rendering, resulting in low modeling efficiency and difficulty in standardizing modeling.

Method used

By using the building rule library in the CIM platform, the building model is automatically generated by determining the model generation rules and the CIM data of the target building. The building model conforms to a unified standard by using the rules in the building rule library and the CIM data.

Benefits of technology

It improves the efficiency of building modeling, reduces manual operations, unifies modeling rules and standards, and achieves uniformity and efficient automated generation of modeling results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120974579A_ABST
    Figure CN120974579A_ABST
Patent Text Reader

Abstract

The invention discloses a building model generation method and device, electronic equipment and a readable storage medium, the method is applied to a CIM platform, the method comprises the steps that in response to external input, a first model generation rule and CIM data corresponding to a target building are determined, the first model generation rule is a rule in a building rule base, and the CIM data correspond to the target building; model generation rules corresponding to various building types are stored in the building rule base; and generating a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of architectural modeling, and more particularly to a method, apparatus, electronic device, and readable storage medium for generating architectural models. Background Technology

[0002] In related technologies, building modeling is usually carried out in the following way: a suitable modeling tool (such as CAD software, BIM (Building Information Modeling) tool, etc.) is selected in the CIM (City Information Modeling) platform, and then professional modelers manually draw the building outline, edit the building details, add materials and textures, set lighting and rendering, etc., to achieve building modeling, which has low modeling efficiency. Summary of the Invention

[0003] This application discloses a method, apparatus, electronic device, and readable storage medium for generating architectural models, which can improve the efficiency of architectural modeling.

[0004] To solve the above problems, this application adopts the following technical solution: In a first aspect, embodiments of this application disclose a method for generating a building model, applied to a CIM platform, comprising: responding to external input, determining a first model generation rule and CIM data corresponding to a target building, wherein the first model generation rule is a rule in a building rule library, the building rule library storing model generation rules corresponding to various building types; and generating a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building.

[0005] Secondly, this application discloses a building model generation device applied to a CIM platform, comprising: a determining module, configured to determine a first model generation rule and CIM data corresponding to a target building in response to external input, wherein the first model generation rule is a rule in a building rule library, the building rule library storing model generation rules corresponding to various building types; and a generation module, configured to generate a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building.

[0006] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0007] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0008] Fifthly, embodiments of this application provide a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the steps of the method described in the first aspect.

[0009] The technical solution adopted in this application can achieve the following beneficial effects: This application provides a method for generating building models. The CIM platform, in response to external input, determines a first model generation rule and CIM data corresponding to the target building. The first model generation rule is a rule from a building rule library, which stores model generation rules for various building types. Then, based on the first model generation rule and the CIM data corresponding to the target building, a building model corresponding to the target building is generated. By adopting this solution, excessive manual operation is eliminated, improving the efficiency of building modeling. Furthermore, since this application selects model generation rules based on the building rule library before generating the building model, it unifies modeling rules and standards, thereby ensuring that the modeling results conform to a unified standard. Attached Figure Description

[0010] Figure 1 This is a flowchart illustrating a method for generating a building model as disclosed in an embodiment of this application; Figure 2 This is a schematic diagram of a module disclosed in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a building model generation device disclosed in an embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0011] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0012] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the electrically connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0013] The following description, in conjunction with the accompanying drawings, details the method, apparatus, electronic device, and readable storage medium for generating architectural models disclosed in this application, through specific embodiments and application scenarios.

[0014] This application discloses a method for generating architectural models. Figure 1 This is a schematic flowchart illustrating a method for generating a building model disclosed in an embodiment of this application. Figure 1 As shown, the method includes the following steps: S120. In response to external input, determine the first model generation rule and the CIM data corresponding to the target building, wherein the first model generation rule is a rule in the building rule base, and the building rule base stores model generation rules corresponding to various building types.

[0015] For example, external input can be user selection operations (e.g., drag, drop, pull). The user determines the first model generation rule for generating the building model corresponding to the target building by selecting the first model generation rule in the building rule library of the CIM platform. Furthermore, the user can determine the data path of the CIM data corresponding to the target building by selecting the data path in the CIM platform.

[0016] In this application, the building rule base can store model generation rules corresponding to various common building types, such as low-rise buildings, mid-rise buildings, residential buildings, high-rise buildings, commercial office buildings, conference centers, shopping malls, school buildings, hotels, factories and warehouses, and ground styles. Furthermore, each building type can have multiple model generation rules.

[0017] It should be noted that the CIM data corresponding to the target building can include construction data, internal planning data, and management data related to the target building. Additionally, rules in the building rule base can be displayed as renderings.

[0018] S140. Based on the first model generation rules and the CIM data corresponding to the target building, generate a building model corresponding to the target building.

[0019] The CIM platform can include a procedural modeling module. This module calls architectural modeling tools to generate building models. These tools can output the generated building model data, such as common 3D model formats like OBJ or FBX. The architectural modeling tools can be developed in C++ and compiled into executable programs for use within the CIM platform. Given the initial model generation rules and the corresponding CIM data for the target building, the architectural modeling tool calls the CityEngine SDK to generate the building model corresponding to the target building. The procedural modeling module can employ asynchronous processing, data caching, and multithreading techniques to improve modeling quality and efficiency.

[0020] This application provides a method for generating building models. The CIM platform, in response to external input, determines a first model generation rule and CIM data corresponding to the target building. The first model generation rule is a rule from a building rule library, which stores model generation rules for various building types. Then, based on the first model generation rule and the CIM data corresponding to the target building, a building model corresponding to the target building is generated. By adopting this solution, excessive manual operation is eliminated, improving the efficiency of building modeling. Furthermore, since this application selects model generation rules based on the building rule library before generating the building model, it unifies modeling rules and standards, thereby ensuring that the modeling results conform to a unified standard.

[0021] Furthermore, the modeling process using the method described in this application is relatively intuitive and easy to operate, requiring minimal programming or modeling experience, and can be used by non-professionals, making it user-friendly.

[0022] In one implementation, generating a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building may include: receiving a modification operation on the building parameters in the first model generation rule; obtaining a second model generation rule in response to the modification operation; and generating a building model corresponding to the target building based on the second model generation rule and the CIM data corresponding to the target building.

[0023] For example, the architectural parameters in the model generation rules may include geometric parameters, material parameters, and architectural structural parameters. Geometric parameters may include dimensions (size, width, height, depth, etc.), scale (scale, scaleX, scaleY, scaleZ, etc.), and position (translate, rotate, split, etc.). Material parameters may include color (color, rgb, hsv, etc.) and texture (texture, material, etc.). Architectural structural parameters may include walls, floors, windows, doors, roofs, balconies, and decorations.

[0024] This application modifies the building parameters in the determined first model generation rule to obtain the second model generation rule. Then, based on the second model generation rule and the CIM data corresponding to the target building, a building model corresponding to the target building is generated. This can flexibly generate building models that meet different architectural styles and requirements, satisfying diverse building model needs and offering high flexibility.

[0025] In one implementation, generating a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building may include: converting the CIM data corresponding to the target building into target format data, wherein the target format data is the data format required to generate the building model; and generating a building model corresponding to the target building based on the first model generation rule and the target format data.

[0026] In this application, a data processing tool can be invoked within the CIM platform to convert CIM data corresponding to a target building into data in a target format. The development process for the data processing tool is as follows: 1. Determine the data conversion and standardization requirements: First, clarify the format and structure of the various CIM data to be processed, as well as the requirements for the unified standard and format to be converted. 2. Establish the data conversion and standardization process: Design the data conversion and standardization process according to the requirements, including steps such as data cleaning, format conversion, and standardization processing. 3. Develop the data processing tool: Based on the established process, develop a data processing tool or script to automatically process the imported CIM data into data with a unified standard and format. 4. Invoke the data processing tool: Invoke the developed data processing tool within the CIM platform to process the various imported CIM data and convert it into data with a unified standard and format. 5. Verify the data processing results: Render and display the processed data on the CIM platform to verify the data, ensuring that it meets the standard and format requirements and is free of errors or anomalies, thus completing the development of the data processing tool. After the development of the data processing tool is completed, corresponding operations can be performed within the CIM platform.

[0027] For example, converting SHP (Shapefile) data in CIM data into OBJ (Wavefront OBJ) data required for modeling can be achieved using the following approach: 1. Develop a data processing tool: A data processing tool can be developed using C++, and parallel computing technology can significantly improve data conversion efficiency. Specifically: ① Read SHP data: Using the GDAL (Geospatial Data Abstraction Library) and proj4j libraries, open the SHP file and read its geometric and attribute data. ② Parse geometric data: Based on the SHP file structure, parse the geometric data (points, lines, faces, etc.) and convert it into the vertex and face data format of the OBJ file. The generation method for the OBJ file's vertices and faces can be determined based on the geometric type (points, lines, faces) of the SHP file. ③ Generate OBJ file: Write the parsed vertex and face data into the OBJ file, writing vertex information, face information, etc., in sequence according to the OBJ file format specification. 2. Compile and package the data processing tool: Compile the developed data processing tool into an executable program and integrate it into the CIM platform. 3. Integrate data processing tools into the CIM platform: Data processing tools are run using system calls within the CIM platform. When calling these tools, appropriate input parameters (such as the path to an SHP file) need to be passed, and the output result (OBJ file) needs to be obtained. 4. Render and display the converted OBJ data: The CIM platform uses a model rendering module to visualize the OBJ model. The CIM platform also provides interactive functions such as zooming, rotating, and viewing attributes.

[0028] In one implementation, determining the first model generation rule and the CIM data corresponding to the target building in response to external input may include: determining the first model generation rule and the CIM data corresponding to multiple target buildings in response to external input; generating a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building may include: generating building models corresponding to each target building in parallel based on the first model generation rule and the CIM data corresponding to each target building.

[0029] In this application, a first model generation rule can be selected to generate building models corresponding to multiple target buildings in parallel, thereby achieving batch and automated generation of building models and improving modeling efficiency.

[0030] In one implementation, before determining the first model generation rules and the CIM data corresponding to the target building in response to external input, the method may further include: constructing a building rule base. This can be achieved by collecting relevant data on urban buildings, defining common urban building appearance styles in a rule-based manner, and forming a rule base containing parameters such as building type, structure, material, color, and decoration.

[0031] For example, the parameters for defining urban buildings can include: 1. Geometric parameters: dimensions (size, width, height, depth, etc.), scale (scale, scaleX, scaleY, scaleZ, etc.), and location (translate, rotate, split, etc.); 2. Material parameters: color (color, rgb, hsv, etc.) and texture (texture, material, etc.); 3. Structural parameters: walls, floors, windows, doors, roofs, balconies, and decorations. These parameters can be combined to define complex building forms and details using scripting languages, enabling the generation of customizable building models. The defined rules are integrated into a comprehensive rule library that conforms to domestic architectural styles and is categorized by building type, facilitating users to quickly construct urban buildings of various styles.

[0032] This solution utilizes CGA (City Grammar Algorithm) rules to construct a building rule base. CGA rules are an algorithm for automatically generating urban building models. They are based on grammatical rules that represent urban structures to generate complex urban forms. Specifically, CGA rules are implemented through the following steps: 1. Define basic geometric primitives: First, define some basic geometric primitives, such as floors, windows, and doors. These primitives can be parameterized to control their size, proportions, and other characteristics. 2. Establish grammatical rules: Based on the characteristics of urban buildings, define a set of grammatical rules describing how to combine and transform these basic primitives to generate complete building models. Rules include operations such as splitting, replacing, rotating, and scaling. 3. Apply rules for iterative generation: Starting from an initial seed geometry, continuously apply grammatical rules for replacement and transformation, ultimately generating complex building forms. 4. Add details and decorations: Further details such as windows, balconies, and porches can be added to the generated basic model to increase the richness and realism of the buildings. By defining reasonable CGA rules and combining them with random factors, a large number of urban building models with different styles and details can be automatically generated.

[0033] For example, to generate a typical house building model, the following basic CGA rules can be defined: 1. Initial Geometry: Define a cube as the initial geometry of the house. The size of this cube can be controlled by parameters. 2. Layering: Divide the initial cube vertically into three layers, representing the bottom, middle, and top layers. The height of each layer can be adjusted by parameters. 3. Add Windows: Add window elements to the four sides of the middle layer. The size, shape, and spacing of the windows can be controlled by parameters. 4. Add Roof: Add a sloping roof element to the top layer. The slope and height of the roof can be adjusted by parameters. 5. Add Balconies: Add balcony elements to the front and back sides of the middle layer. The size and shape of the balconies can be set by parameters. 6. Add Detail Decorations: Add some detailed decorative elements to the entire building model, such as window sills and cornice decorations. These detailed elements can also be controlled by parameters.

[0034] Using these basic CGA rules, we can generate a typical building model. If we want to generate buildings of different styles, we only need to modify the parameters of these rules, such as changing the style of windows or the shape of the roof. By adopting CGA rules, we can improve the efficiency and flexibility of building modeling.

[0035] In this application, by standardizing the exterior styles of urban buildings and constructing a reusable architectural rule base, the complexity and corresponding labor costs in the urban building modeling process can be reduced. Furthermore, through rule constraints and procedural generation, the quality and details of the architectural model can be controlled and optimized while maintaining a certain degree of realism, ensuring that it meets practical needs.

[0036] In one implementation, after generating the architectural model corresponding to the target building, the method may further include rendering and displaying the architectural model. In this application, based on the storage path of the generated architectural model corresponding to the target building, a corresponding 3D model file can be loaded. Common model formats, such as OBJ or FBX, are generally supported. The loaded 3D model file is then rendered and displayed on a page or module, with control functions such as rotation, scaling, and translation operations added.

[0037] It should be noted that after the architectural model is rendered and displayed, users can adjust and optimize the model according to the needs of the scene, such as changing the number of floors, materials, window positions, etc.

[0038] In this application, as Figure 2 As shown, the CIM platform can access the data conversion module, rule base module, model generation module, model rendering module, and model optimization module through the CIM platform interface module, allowing users to directly perform modeling on the CIM platform.

[0039] Data conversion module: Imports and preprocesses common CIM data to prepare for subsequent modeling processes.

[0040] Rule base module: It standardizes common urban building appearance styles and includes a variety of rules that conform to domestic building appearance styles, forming a rule base to provide a reference for subsequent modeling.

[0041] The model generation module utilizes an urban building growth algorithm to generate urban building models in a batch, regularized, procedural, and automated manner, enabling rapid modeling within the CIM platform. Batch generation means generating multiple building models at once, rather than manually creating them one by one. This makes large-scale urban construction and renovation more efficient. Regularization means that the generated building models adhere to specific design standards and urban planning regulations, ensuring that architectural style, form, and height meet the overall urban planning requirements. Proceduralization refers to automatically generating building models through computer programs, reducing human intervention and improving the consistency and accuracy of modeling. Automation emphasizes the continuity and efficiency of the process, making the entire model generation process free of human intervention. In this application, given the first model generation rules and the CIM data corresponding to the target building, the CIM platform can autonomously complete the creation of the building model, thereby greatly simplifying the design process.

[0042] Model rendering module: Renders and displays the generated city building models to show realistic building appearance.

[0043] Model optimization module: Adjusts and optimizes the position, rotation angle, material, lighting, and other aspects of the generated model to improve the quality and realism of the architectural model.

[0044] The proposed solution can first determine the first model generation rules and the CIM data corresponding to the target building, perform data conversion on the CIM data, generate a building model, and then render, display, and optimize the generated building model.

[0045] The solution proposed in this application has advantages such as high modeling efficiency, controllable quality, strong flexibility, and user-friendliness. It can build L2-level 3D twin worlds based on low-cost data assets, providing a more convenient and efficient tool for urban planning, management, and operation. It has broad application prospects and market potential in urban planning, landscape design, architectural design, and other fields.

[0046] The method for generating building models provided in this application can be executed by a building model generation device. This application uses a building model generation device executing the method as an example to illustrate the building model generation device provided in this application. This building model generation device is applied to a CIM platform.

[0047] Figure 3 This is a schematic diagram of the structure of a building model generation device disclosed in an embodiment of this application. Figure 3 As shown, the building model generation device 300 includes a determination module 310 and a generation module 320.

[0048] In this application, the determining module 310 is used to determine a first model generation rule and CIM data corresponding to the target building in response to external input, wherein the first model generation rule is a rule in the building rule base, and the building rule base stores model generation rules corresponding to various building types; the generating module 320 is used to generate a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building.

[0049] In one implementation, the generation module 320 generates a building model corresponding to the target building based on the first model generation rule and the CIM data corresponding to the target building, including: receiving a modification operation on the building parameters in the first model generation rule; obtaining a second model generation rule in response to the modification operation; and generating a building model corresponding to the target building based on the second model generation rule and the CIM data corresponding to the target building.

[0050] In one implementation, the generation module 320 generates a building model corresponding to the target building based on the first model generation rules and the CIM data corresponding to the target building, including: converting the CIM data corresponding to the target building into target format data, wherein the target format data is the data format required to generate the building model; and generating a building model corresponding to the target building based on the first model generation rules and the target format data.

[0051] In one implementation, the determining module 310, in response to external input, determines a first model generation rule and CIM data corresponding to a target building, including: in response to external input, determining a first model generation rule and CIM data corresponding to multiple target buildings; the step of generating a building model corresponding to a target building based on the first model generation rule and the CIM data corresponding to the target building includes: generating building models corresponding to each target building in parallel based on the first model generation rule and the CIM data corresponding to each target building.

[0052] In one implementation, the apparatus further includes a construction module for constructing a building rule base before determining the first model generation rules and CIM data corresponding to the target building in response to external input.

[0053] In one implementation, the above-mentioned apparatus further includes a display module, used to render and display the building model after the building model corresponding to the target building is generated.

[0054] The building model generation apparatus provided in this application embodiment can realize the various processes implemented in the building model generation method embodiment, and will not be described again here to avoid repetition.

[0055] Optionally, such as Figure 4 As shown, this application embodiment also provides an electronic device 400, including a processor 401 and a memory 402. The memory 402 stores a program or instructions that can run on the processor 401. When the program or instructions are executed by the processor 401, they implement the various steps of the above-described building model generation method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.

[0056] It should be noted that the electronic devices in the embodiments of this application include mobile electronic devices and non-mobile electronic devices.

[0057] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described method for generating building models and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0058] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0059] This application also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions that, when executed by a computer, cause the computer to perform the steps of the above-described method for generating a building model.

[0060] The above embodiments of this application focus on describing the differences between the various embodiments. As long as the different optimization features between the various embodiments are not contradictory, they can be combined to form a better embodiment. For the sake of brevity, they will not be described in detail here.

[0061] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

Claims

1. A method for generating architectural models, characterized in that, Applied to the CIM platform, including: In response to external input, a first model generation rule and CIM data corresponding to the target building are determined, wherein the first model generation rule is a rule in the building rule base, and the building rule base stores model generation rules corresponding to various building types; Based on the first model generation rules and the CIM data corresponding to the target building, a building model corresponding to the target building is generated.

2. The generation method according to claim 1, characterized in that, The step of generating a building model corresponding to the target building based on the first model generation rules and the CIM data corresponding to the target building includes: Receive modification operations on the building parameters in the first model generation rule; In response to the modification operation, a second model generation rule is obtained; Based on the second model generation rules and the CIM data corresponding to the target building, a building model corresponding to the target building is generated.

3. The generation method according to claim 1, characterized in that, The step of generating a building model corresponding to the target building based on the first model generation rules and the CIM data corresponding to the target building includes: The CIM data corresponding to the target building is converted into target format data, wherein the target format data is the data format required to generate the building model; Based on the first model generation rules and the target format data, a building model corresponding to the target building is generated.

4. The generation method according to claim 1, characterized in that, The process of responding to external input and determining the first model generation rule and the CIM data corresponding to the target building includes: In response to external input, determine the first model generation rules and CIM data corresponding to multiple target buildings; The step of generating a building model corresponding to the target building based on the first model generation rules and the CIM data corresponding to the target building includes: Based on the first model generation rules and the CIM data corresponding to each of the target buildings, building models corresponding to each of the target buildings are generated in parallel.

5. The generation method according to claim 1, characterized in that, Before determining the first model generation rule and the CIM data corresponding to the target building in response to external input, the method further includes: Build a building rule base.

6. The generation method according to claim 1, characterized in that, After generating the architectural model corresponding to the target building, the process further includes: The architectural model is rendered and displayed.

7. A device for generating architectural models, characterized in that, Applied to the CIM platform, including: The determination module is used to determine the first model generation rule and the CIM data corresponding to the target building in response to external input. The first model generation rule is a rule in the building rule base, which stores model generation rules corresponding to various building types. The generation module is used to generate a building model corresponding to the target building based on the first model generation rules and the CIM data corresponding to the target building.

8. An electronic device, characterized in that, It includes a processor and a memory, the memory storing a program or instructions that can run on the processor, the program or instructions being executed by the processor to implement the steps of the method for generating a building model as described in any one of claims 1-6.

9. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method for generating a building model as described in any one of claims 1-6.

10. A computer program product, characterized in that, The computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions that, when executed by a computer, cause the computer to perform the steps of the method for generating a building model as described in any one of claims 1-6.