A three-dimensional building model generation method and device based on column state analysis

By parsing the column status information and geometric transformations in the configuration file, the system automatically generates 3D building models, solving the problems of low generation efficiency and insufficient accuracy in existing technologies. It also automates the processing of facade concavity and convexity changes and door and window openings, thereby improving the generation efficiency and accuracy of 3D building models.

CN123181708APending Publication Date: 2026-11-27EVERYTHING MIRROR (SHANGHAI) TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611262977.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies are inefficient in generating 3D building models and struggle to accurately represent building facades. In particular, the processes of creating concave and convex shapes and openings for doors and windows cannot be automated, resulting in insufficient generation efficiency and accuracy.

Method used

By parsing the column status information in the configuration file, the position and component information of each column are determined. Component instances are generated using preset offsets and geometric transformations. Boolean operations are then used to automatically generate wall openings and automatically assemble components to form the target building model.

Benefits of technology

It has achieved automated generation of 3D building models, improving generation efficiency and accuracy, reducing manual operation, and automatically handling facade concavity and convexity changes and door and window openings, thus improving modeling efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123181708A_ABST
    Figure CN123181708A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a three-dimensional building model generation method and device based on column state analysis. The method and device obtain the column states of each column in the target building model to be generated by analyzing the configuration file, determine the position information of each column of the target building model based on the column states, including the depth coordinates of each column, and then instantiate each column according to the position information, so that each component instance generated is in the corresponding position in the depth direction, that is, the automatic assembly between multiple components in the same facade is realized at the same time of component instantiation, without the need for additional dragging or other operations to assemble multiple component instances into the corresponding facade, so that the target building model can be automatically generated according to each component instance. The present disclosure can realize the automatic generation from the configuration file to the three-dimensional building model, more fully utilize the configuration data in the configuration file, reduce manual operation, and improve the generation efficiency and accuracy of the three-dimensional building model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of 3D modeling technology, specifically to a method and apparatus for generating 3D building models based on column state analysis. Background Technology

[0002] 3D building models are digital representations of buildings based on polygon meshes, texture maps, and other technologies. They are widely used in smart cities, game development, architectural design, and other fields.

[0003] In related technologies, 3D building models are typically constructed using modeling software and a manual assembly method based on component splicing. This requires users to manually select and place various building components (such as doors, windows, walls, and roofs). While this method offers high controllability, it requires a significant amount of manual operation and is inefficient. Alternatively, 3D building models can be generated by driving the generation of predefined rule templates and parameters. However, this method requires pre-writing rule scripts to describe the building's geometry and transformation relationships, resulting in a high learning curve.

[0004] With the development of deep learning technology, some related technologies utilize deep learning networks such as generative adversarial networks to directly generate architectural images or 3D architectural models. However, this approach lacks structured parameter control, making it difficult to precisely edit and fine-tune the generated results. Other related technologies utilize large language models, combining image understanding with natural language reasoning. They first extract structural information from single or multiple architectural images, and then use computer vision algorithms to reconstruct 3D architectural models based on the extracted structural information.

[0005] In addition, the above-mentioned methods for constructing 3D building models generally have the following problems: they cannot automatically distinguish and process the arrangement of components in different depth directions, making it difficult to achieve a 3D expression of the concavity and convexity changes of the building facade; opening doors and windows on the building facade requires separate manual operation, which cannot be integrated into the automated generation process of 3D building models, resulting in low efficiency and easy errors in opening holes.

[0006] Therefore, improving the efficiency and accuracy of 3D building model generation has become an urgent problem to be solved in this field. Summary of the Invention

[0007] The purpose of this disclosure is to provide a method and apparatus for generating three-dimensional building models based on column state analysis, so as to improve generation efficiency and accuracy.

[0008] In a first aspect, embodiments of this disclosure provide a method for generating a three-dimensional building model based on column state analysis, including: Obtain the configuration file and parse it to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concavity and convexity of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column. Based on the column status, determine the position information of each column, which includes the depth coordinates corresponding to each column; Instantiate each column based on the location information to obtain the component instance corresponding to each column; Generate the target building model based on the component instance.

[0009] In one optional implementation, the position information of each column is determined based on the column status, which may specifically include: When the column state corresponding to the current column is the first state, the reference coordinates are used as the depth coordinates of the current column. The first state indicates that the current column has no offset in the depth direction relative to the current reference plane. The current reference plane is the building facade where the current column is located. The depth direction corresponding to the current column is the direction shown by the first coordinate axis perpendicular to the current reference plane. The reference coordinates are the coordinates of the current reference plane on the first coordinate axis. When the column state corresponding to the current column is the second state, obtain the first preset offset corresponding to the current column, calculate the sum of the reference coordinate and the first preset offset, and obtain the depth coordinate of the current column. The second state represents the positive offset of the current column relative to the current reference plane along the depth direction. When the column state corresponding to the current column is in the third state, obtain the second preset offset corresponding to the current column, calculate the difference between the reference coordinate and the second preset offset, and obtain the depth coordinate of the current column. The third state represents the negative offset of the current column relative to the current reference plane along the depth direction.

[0010] In one optional implementation, obtaining the first preset offset or the second preset offset corresponding to the current column may specifically include: Obtain contextual information about the target building model, including at least one of the following: building type, architectural style, location, and floor height. Input the context information into the preset large model; Obtain the inference result obtained by the preset large model based on the context information. The inference result includes at least one of the first preset offset and the second preset offset.

[0011] In an optional implementation, the parameter information may further include component information corresponding to each column; based on this, the instantiation of each column according to the position information to obtain component instances corresponding to each column may specifically include: Load the component template corresponding to the current column from the preset template library based on the component information; The component template is geometrically transformed based on the position information to obtain the component instance corresponding to the current column. The geometric transformation includes performing scaling transformation, rotation transformation and translation transformation in sequence, with the depth coordinate as the component of the translation transformation in the depth direction.

[0012] In an optional implementation, the parameter information may further include floor information corresponding to each column and the floor height of each floor; based on this, the above-mentioned generation of the target building model from the component instance may include: Based on the floor information, the component instances located on the same floor are combined to obtain the floor model corresponding to each floor; The model of each floor is stacked according to the floor height to obtain the target building model.

[0013] In one optional implementation, the combination of component instances located on the same floor based on floor information may include: Generate the corresponding wall mesh for each column in the same floor; Obtain the 3D bounding box information of the component instances corresponding to each column; A geometric validity check is performed based on the wall mesh and 3D bounding box information to determine whether an opening matching the 3D bounding box information can be created on the wall mesh. If the geometric validity check passes, Boolean operations are performed on the wall mesh based on the 3D bounding box information to create openings on the wall mesh that match the corresponding component instances.

[0014] In one optional implementation, the above-described generation of the target building model based on the component instance may include: If a first component instance exists at a first position in the first floor model, and no component instance exists at a second position in the second floor model corresponding to the first position, then wall filling is performed at the second position. The first floor model and the second floor model are adjacent in the height direction of the target building model.

[0015] Secondly, embodiments of this disclosure provide a three-dimensional building model generation apparatus based on column state analysis, comprising: The parsing module is used to obtain the configuration file and parse the configuration file to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concavity and convexity of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column. The calculation module is used to determine the position information of each column based on the column status. The position information includes the depth coordinates corresponding to each column. The instantiation module is used to instantiate each column based on the location information, so as to obtain the component instance corresponding to each column; The model generation module is used to generate target building models based on component instances.

[0016] In an optional implementation, the above-described computing module may be configured to perform at least one of the following: When the column state corresponding to the current column is the first state, the reference coordinates are used as the depth coordinates of the current column. The first state indicates that the current column has no offset in the depth direction relative to the current reference plane. The current reference plane is the building facade where the current column is located. The depth direction corresponding to the current column is the direction shown by the first coordinate axis perpendicular to the current reference plane. The reference coordinates are the coordinates of the current reference plane on the first coordinate axis. When the column state corresponding to the current column is the second state, obtain the first preset offset corresponding to the current column, calculate the sum of the reference coordinate and the first preset offset, and obtain the depth coordinate of the current column. The second state represents the positive offset of the current column relative to the current reference plane along the depth direction. When the column state corresponding to the current column is in the third state, obtain the second preset offset corresponding to the current column, calculate the difference between the reference coordinate and the second preset offset, and obtain the depth coordinate of the current column. The third state represents the negative offset of the current column relative to the current reference plane along the depth direction.

[0017] In an optional implementation, in order to obtain the first preset offset or the second preset offset corresponding to the current column, the above calculation module can be configured as follows: Obtain contextual information about the target building model, including at least one of the following: building type, architectural style, location, and floor height. Input the context information into the preset large model; Obtain the inference result obtained by the preset large model based on the context information. The inference result includes at least one of the first preset offset and the second preset offset.

[0018] In an optional implementation, the parameter information parsed by the parsing module may further include component information corresponding to each column; based on this, the instantiation module can be configured as follows: Load the component template corresponding to the current column from the preset template library based on the component information; The component template is geometrically transformed based on the position information to obtain the component instance corresponding to the current column. The geometric transformation includes performing scaling transformation, rotation transformation and translation transformation in sequence, with the depth coordinate as the component of the translation transformation in the depth direction.

[0019] In an optional implementation, the parameter information parsed by the parsing module may further include the floor information corresponding to each column and the floor height of each floor; based on this, the above model generation module can be configured as follows: Based on the floor information, the component instances located on the same floor are combined to obtain the floor model corresponding to each floor; The model of each floor is stacked according to the floor height to obtain the target building model.

[0020] In an optional implementation, to combine component instances located on the same floor, the model generation module can be configured as follows: Generate the corresponding wall mesh for each column in the same floor; Obtain the 3D bounding box information of the component instances corresponding to each column; A geometric validity check is performed based on the wall mesh and 3D bounding box information to determine whether an opening matching the 3D bounding box information can be created on the wall mesh. If the geometric validity check passes, Boolean operations are performed on the wall mesh based on the 3D bounding box information to create openings on the wall mesh that match the corresponding component instances.

[0021] In an optional implementation, the model generation module can be configured to: fill the second position with a wall when there is a first component instance at a first position in the first floor model and no component instance at a second position corresponding to the first position in the second floor model, wherein the first floor model and the second floor model are adjacent in the height direction of the target building model.

[0022] Thirdly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, characterized in that the program, when executed by a processor, implements the method described in the first aspect above.

[0023] Fourthly, embodiments of this disclosure provide a computing device, including: Memory, used to store computer programs; A processor for executing a computer program stored in memory, wherein when the computer program is executed, it implements the method described in the first aspect above.

[0024] In this embodiment, the column states of each column in the target building model to be generated are obtained by parsing the configuration file. Based on these column states, the positional information of each column in the target building model, including its depth coordinates, can be determined. Then, each column is instantiated according to this positional information, ensuring that each generated component instance is positioned in the corresponding position in the depth and other directions. This means that automatic assembly of multiple components on the same facade can be achieved simultaneously with component instantiation, eliminating the need for additional dragging or dragging operations to assemble multiple component instances into the corresponding facade. Therefore, this embodiment can achieve automated generation from a configuration file to a 3D building model, making fuller use of the data in the configuration file, reducing manual operations, and improving the generation efficiency and accuracy of the 3D building model.

[0025] Based on the calculated depth coordinates and other information, this embodiment of the invention can combine geometric transformation operations to realize an automated process from component template to 3D component instance, including template loading, TRS transformation application (scaling + rotation + translation + depth offset) and instance placement, thereby improving the efficiency and accuracy of 3D component instantiation.

[0026] In this embodiment of the disclosure, by integrating Boolean operations into the model assembly line, the automatic and accurate generation of door and window openings on the wall can be achieved, reducing manual operations and improving modeling efficiency and accuracy.

[0027] In this embodiment of the disclosure, the height coordinates of the bottom / top surfaces of each floor can be automatically calculated based on the floor height of each floor, and the floors can be stacked based on the height coordinates. This enables the automated generation of complex building models with different floor heights and column layouts, improving modeling efficiency and accuracy. Attached Figure Description

[0028] Figure 1 A flowchart illustrating a method for generating a 3D building model based on column state parsing, provided by an embodiment of this disclosure, is shown. Figure 2 A schematic diagram of a three-dimensional structure of a building provided by an embodiment of the present disclosure is shown; Figure 3 The embodiments provided by this disclosure are illustrated. Figure 2 A front view of one of the facades of the building shown; Figure 4 The embodiments provided by this disclosure are illustrated. Figure 3 Top view of the elevation shown; Figure 5 A flowchart illustrating a method for generating a 3D building model based on column state analysis, provided by an embodiment of this disclosure, is shown. Figure 6A schematic diagram of the structure of a three-dimensional building model generation device based on column state analysis provided in an embodiment of the present disclosure is shown. Figure 7 A schematic diagram of the structure of a computing device provided by an embodiment of the present disclosure is shown. Detailed Implementation

[0029] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. Through these descriptions, the features and advantages of the present application will become clearer and more apparent.

[0030] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments. Although various aspects of embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated otherwise.

[0031] Furthermore, the technical features involved in the different embodiments of this application described below can be combined with each other as long as they do not conflict with each other.

[0032] The method and apparatus for generating three-dimensional building models provided in this disclosure will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0033] Figure 1 This is a flowchart illustrating a method for generating 3D building models based on column state parsing, provided in an embodiment of this disclosure. This method is used to automatically assemble parametric 3D building models and can be applied to scenarios such as smart cities, Building Information Modeling (BIM), automatic generation of game scenes, and virtual reality (VR) / augmented reality (AR) building visualization.

[0034] See Figure 1 The method may include the following steps.

[0035] Step S110: Obtain the configuration file and parse the configuration file to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concave and convex state of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column.

[0036] For example, the above configuration file may be generated based on a visual editing page, a relevant programming language, or other methods, and this disclosure does not limit this.

[0037] For example, the configuration file mentioned above may include a configuration file based on Procedural Content Generation (PCG) to define the rules and constraints required to generate the 3D building model. This could include defining the geometric shape of the 3D building model or its components, such as the height and spacing, through relevant numerical values, or defining the topological structure of each component in the 3D building model through arrays. By parsing the configuration file, the abstract data in the configuration file can be converted into various parameter information that can be understood and used by the relevant model generation program, including, but not limited to, the floor height of the corresponding building, and component information (such as geometric dimensions and coordinates) of the included doors, windows, and other components.

[0038] Figure 2 This is a three-dimensional structural diagram of a building with three floors, provided as an embodiment of the present disclosure. Figure 3 for Figure 2 The front view of one of the facades of the building shown. Figure 4 for Figure 3 The top view of the elevation shown.

[0039] Reference Figure 2 Building 200 has three floors F1 to F3. Taking floor F1 as an example, it may include multiple facades, such as the first facade 210, the second facade 220, etc. Each facade is perpendicular to the ground (horizontal plane), that is, each facade is parallel to the height direction of building 200. Each facade may include one or more components such as doors, windows, walls, and decorative parts.

[0040] The descriptions of direction, coordinates, etc., in the embodiments of this disclosure can be based on a three-dimensional coordinate system XYZ. (Refer to...) Figure 2 The Y-axis represents the height direction of building 200. The plane formed by the X-axis and the Y-axis (hereinafter referred to as the XY plane) is parallel to the main facade of the building, namely the first facade 210 (in other embodiments, the second facade 220 can also be used as the main facade). The Z-axis is perpendicular to the main facade, that is, the Z-axis can represent the depth direction of the main facade (that is, the thickness direction of the wall). The plane formed by the X-axis and the Z-axis (hereinafter referred to as the XZ plane) can be used as the ground (horizontal plane).

[0041] It is understandable that the plane formed by the Z-axis and the Y-axis (hereinafter referred to as the YZ plane) can also be parallel to a certain facade of the building 200, such as the second facade 220. In this case, the X-axis represents the depth direction of that facade.

[0042] Reference Figures 2-4Taking the first facade 210 as an example, it is parallel to the XY plane, and the Z-axis is the depth direction of the first facade 210 (that is, the thickness direction of the wall). The first facade 210 may include a first window 211, a door 212, a second window 213, etc.

[0043] For example, refer to Figure 3 The first facade 210 can be divided into multiple columns C0 to C6, and corresponding components can be configured for each column. The positions of different columns in the depth direction of the first facade 210 can be different. For example, the components corresponding to columns C0, C2, C4, and C6 are all walls, the component corresponding to column C1 is the first window 211, the component corresponding to column C3 is the door 212, and the component corresponding to column C5 is the second window 213.

[0044] It should be noted that, Figure 3 This paper illustrates a method for dividing a building facade into multiple columns. In other alternative embodiments, other division methods can also be used. For example, the various components such as doors, windows, and columns in the building facade can be divided as columns. That is, the relevant parameters of the corresponding columns can be configured in the configuration file. The walls that form the main plane of the building facade do not need to be configured separately for each building facade, or they can be used as wall information shared by all building facades and uniformly configured in the global parameters of the configuration file.

[0045] For example, after obtaining the configuration file of building 200 (such as the PCG configuration file), by parsing the configuration file, the concave and convex states of each column in building 200 relative to the building facade, that is, the column states corresponding to each column, can be obtained.

[0046] For example, the concave and convex states of a column can include the following three types: Normal state N means that the current column is flush with the main plane of the building facade it is on, or in other words, the outer surface of the current column is coplanar with the main plane of the building facade it is on. The protruding state P indicates that the current column protrudes outward from the main plane of the building. For example, the column corresponding to the component such as bay window or terrace is in the protruding state. The recessed state R (i.e., Recessed) indicates that the current column is recessed into the building relative to the main plane. For example, the column corresponding to the component such as a recessed window or recessed porch is in the recessed state.

[0047] Reference Figure 4The column states corresponding to the seven columns C0~C6 of the first facade 210 are N, R, N, R, N, P, N, respectively. That is, columns C0, C2, C4, and C6 are flush with the main plane of the first facade 210, columns C1 and C3 are recessed relative to the main plane of the first facade 210, and column C5 is protruding relative to the main plane of the building 200.

[0048] Step S120: Determine the position information of each column based on the column status, wherein the position information includes the depth coordinates corresponding to each column.

[0049] For example, since components such as walls, doors, and windows have a certain thickness, the aforementioned depth coordinates can specifically be the coordinates of the outer surface of the corresponding column in the depth direction.

[0050] For example, for any column, the main plane of the building facade containing that column can be used as a reference plane. Assuming the coordinate of this reference plane in the depth direction is 0, the coordinates of columns in different states in the depth direction can be determined, i.e., the depth coordinates of each column. For example... Figure 4 As shown, the Z-axis coordinates of each column C0~C6 can be determined. The depth coordinate of a column in the normal state is 0 (Z=0), the depth coordinate of a column in the convex state is positive (Z>0), and the depth coordinate of a column in the concave state is negative (Z<0).

[0051] In other alternative embodiments, the depth coordinates corresponding to columns in a convex state can be configured as negative values, and the depth coordinates corresponding to columns in a concave state can be configured as positive values.

[0052] In other optional embodiments, when there is a depth difference ΔZ between the main plane and the reference plane corresponding to a certain column, and the depth coordinate corresponding to the reference plane is 0, the depth coordinate corresponding to the column in the normal state can be +ΔZ or -ΔZ.

[0053] For example, the position information corresponding to each column may also include the X-axis coordinate and Y-axis coordinate of each column.

[0054] It should be noted that, with the three-dimensional coordinate system XYZ fixed, the depth direction of different facades of building 200 may be the Z-axis direction, the X-axis direction, or a direction that forms a certain angle with the Z-axis. For example, for the second facade 220, its depth direction is the X-axis direction. Therefore, the aforementioned depth coordinates can be the Z-axis coordinates of the corresponding column, or the X-axis coordinates of the corresponding column, or a combination of the Z-axis and X-axis coordinates of the corresponding column. Specifically, it can be determined based on the relationship between the facade where the corresponding column is located and the Z-axis and X-axis in the three-dimensional coordinate system XYZ.

[0055] Step S130: Instantiate each column according to the position information to obtain the component instance corresponding to each column.

[0056] Since each column can contain at least one component that constitutes a building, the column's position information is also the position information of the component corresponding to that column (such as the first window 211, the door 212, the second window 213, etc.). Therefore, instantiating each column based on the above position information allows the generated component instances to be placed in the corresponding positions. In other words, automatic assembly between components is achieved at the same time as component instantiation, without the need for additional dragging or other operations to adjust the position of each component instance.

[0057] Step S140: Generate the target building model based on the component instance.

[0058] For example, a three-dimensional model of the target building can be formed by splicing or other adaptive adjustments to multiple component instances.

[0059] As can be seen from the above steps, this embodiment of the disclosure obtains the column states of each column in the target building model to be generated by parsing the configuration file. Based on these column states, the position information of each column in the target building model, including the depth coordinates of each column, can be determined. Then, based on this position information, each column is instantiated, so that each generated component instance is positioned in the corresponding position in the depth and other directions. That is, automatic assembly between multiple components on the same facade can be achieved simultaneously with component instantiation, without the need for additional dragging or other operations to assemble multiple component instances into the corresponding facade. Therefore, this embodiment of the disclosure can achieve automated generation from a configuration file to a 3D building model, making fuller use of the data in the configuration file, reducing manual operations, and improving the generation efficiency and accuracy of the 3D building model.

[0060] In an optional embodiment of this disclosure, the determination of the position information of each column based on the column status in step S120 may specifically include at least one of the following (a) to (c).

[0061] (a) When the column state corresponding to the current column is in the first state, the reference coordinates are used as the depth coordinates of the current column.

[0062] The first state described above indicates that the current column has no offset in the depth direction relative to the current reference plane. The current reference plane is the building facade where the current column is located, and the direction shown by the first coordinate axis perpendicular to the current reference plane is the depth direction corresponding to the current column. That is, the depth coordinate of the current column is also the coordinate of the current column on the first coordinate axis.

[0063] For example, the first state mentioned above can be a normal state N.

[0064] The above reference coordinates are the coordinates of the current reference plane on the first coordinate axis; since the current column is in the first state, that is, there is no offset in the depth direction relative to the current reference plane, the depth coordinates of the current column are the same as the reference coordinates.

[0065] Reference Figure 4 For each column C0~C6 in the first elevation 210, the current reference plane can be any plane parallel to the XY plane. The first coordinate axis representing the depth direction is the Z axis. The coordinates of the current reference plane on the first coordinate axis (i.e., the Z axis), i.e. the reference coordinates, can be represented as Z_ref.

[0066] For column C0, its column state is normal state N, so the depth coordinate Z0 corresponding to column C0 is Z_ref.

[0067] (b) When the column state corresponding to the current column is the second state, obtain the first preset offset corresponding to the current column, calculate the sum of the reference coordinate and the first preset offset, and obtain the depth coordinate of the current column.

[0068] The second state represents the positive offset of the current column relative to the current reference plane along the depth direction.

[0069] For example, the second state can be a convex state P; correspondingly, the offset in the depth direction in this state, i.e. the first preset offset, can be the forward offset d_forward.

[0070] Reference Figure 4 For column C5, its column state is convex state P, so the depth coordinate Z5 of column C5 is Z_ref + d_forward. Where d_forward is the offset of column C5 in the depth direction, which is also the first preset offset.

[0071] (c) When the column state corresponding to the current column is the third state, obtain the second preset offset corresponding to the current column, calculate the difference between the reference coordinate and the second preset offset, and obtain the depth coordinate of the current column.

[0072] The third state represents the negative offset of the current column relative to the current reference plane along the depth direction.

[0073] For example, the third state mentioned above can be a concave state R; correspondingly, the offset in the depth direction in this state, i.e. the second preset offset mentioned above, can specifically be the backward offset d_backward.

[0074] Reference Figure 4For column C1, its column state is a concave state R, so the depth coordinate of column C1 is Z1 = Z_ref - d_backward. Where d_backward is the second preset offset of column C1.

[0075] For example, the first preset offset and the second preset offset can be the same or different. The first preset offsets corresponding to columns in the same second state can be the same or different, and the second preset offsets corresponding to columns in the same third state can be the same or different.

[0076] As described above, in this embodiment of the present disclosure, based on the type of column state and the preset offset corresponding to different column states, the coordinates of each column in the depth direction are automatically calculated. This allows the component instantiation process (such as step S130) to be executed in the subsequent process. Based on the depth coordinates of each column, the components corresponding to ordinary columns can be controlled to be aligned with the reference plane, the components corresponding to convex columns can be automatically offset forward (i.e., offset outward relative to the reference plane towards the target building model), and the components corresponding to concave columns can be automatically offset backward (i.e., offset inward relative to the reference plane towards the target building model). This achieves automatic and accurate three-dimensional expression of the concave and convex changes of the building facade, reduces manual intervention, and improves the generation efficiency and accuracy of the three-dimensional building model.

[0077] In some embodiments, the first preset offset and the second preset offset can be configured in a configuration file and obtained by parsing in step S110.

[0078] For example, in the configuration file above, a first preset offset or a second preset offset can be configured for each column, or a default first preset offset can be configured for the second state, and a default second preset offset can be configured for the third state.

[0079] For example, in the configuration file, the first preset offset can be represented as parameter d_forward (i.e., forward offset), and the second preset offset can be represented as parameter d_backward (i.e., backward offset).

[0080] In an optional embodiment of this disclosure, obtaining the first preset offset or the second preset offset corresponding to the current column may specifically include the following steps: Obtain contextual information about the target building model, including at least one of the following: building type, architectural style, location, and floor height. Input the context information into the preset large model; Obtain the inference result obtained by the preset large model based on the context information. The inference result includes at least one of the first preset offset and the second preset offset.

[0081] For example, the aforementioned preset large model can be a Large Language Model (LLM).

[0082] For example, the context information of the target building model can be configured in the above configuration file and obtained by parsing in step S110.

[0083] By inputting the context information of the target building model into the preset large model, the preset large model can recommend a first preset offset and a second preset offset that are compatible with the target building model to be generated, based on the architectural knowledge and design specifications learned in advance.

[0084] For example, if the target building model has a modern minimalist architectural style, the preset large model may output the following inference results: the first preset offset (i.e., d_forward) = 0.8m, corresponding to a larger bay window protrusion, and the second preset offset (i.e., d_backward) = 0.3m, corresponding to a smaller indentation; while for classical style buildings, other offset ratios can be recommended.

[0085] As can be seen from the above description, in this embodiment of the disclosure, by using a preset large model to assist in generating the offset of the building facade concavity and convexity, even if the configuration information on concavity and convexity offset is missing in the relevant configuration file, the above-mentioned automated generation process of the target building model can still be executed normally, and the final facade concavity and convexity effect can match the style of the target building model, etc., reducing manual intervention and improving the generation efficiency and accuracy of the three-dimensional building model.

[0086] In some embodiments, the column state of each column can be represented by a corresponding column state character, such as state=N for a column indicating that the column is in a normal state, state=P for a column indicating that the column is in a convex state, etc. In the process of calculating the depth coordinates corresponding to each column based on the column state (i.e., step S120), the column state can be specifically mapped to an enumerated value: N→0, P→+1, R→-1; that is, the depth offset of each column is related to its column state, and the depth offset Offset[state] corresponding to any column can be quickly determined based on the following formula: .

[0087] Based on this, the coordinates of any column in the depth direction (taking the Z-axis as an example), i.e., the depth coordinates Z_final, can be calculated using the following formula: Z_final = Z_ref + Offset[state]; where Z_ref is the reference coordinate, representing the coordinates of the current reference plane corresponding to that column in the depth direction.

[0088] In the above embodiments, based on the column states corresponding to each column obtained from the parsing, and based on the enumeration value mapping and preset offsets (such as front offset and back offset), the depth offset value of each column can be quickly determined, thereby quickly calculating the depth coordinates corresponding to each column without manual intervention, which can improve the generation efficiency and accuracy of 3D building models.

[0089] In an optional embodiment of this disclosure, the parameter information obtained by parsing the configuration file may include component information corresponding to each column, such as component types "door" and "window". Based on this, the instantiation of each column according to the location information in step S130 above to obtain component instances corresponding to each column may specifically include: Load the component template corresponding to the current column from the preset template library based on the component information; The component template is geometrically transformed based on the position information to obtain the component instance corresponding to the current column, wherein the geometric transformation includes at least one of scaling, rotation and translation.

[0090] For example, the size of the component template can be adjusted by scaling transformation; the orientation of the component template can be adjusted by rotating transformation; and the position of the component template can be adjusted by translation transformation. The position information calculated in step S120 can be used as the basis for translation transformation, and the depth coordinates can be used as the depth component of the translation transformation.

[0091] Since the size, orientation, and other properties of the component templates loaded from the preset template library are usually default values, the size, orientation, and position of the loaded component templates can be adjusted through geometric transformations to adapt to the current column.

[0092] For example, the component template can be geometrically transformed in the order of "scaling → rotation → translation" to achieve accurate geometric transformation quickly with fewer geometric transformation steps and reduce positional distortion.

[0093] In the above embodiments, based on the component information parsed in step S110, the corresponding component template can be automatically loaded from the template library, and the component template can be geometrically transformed based on the position information calculated in step S120 to generate a component instance placed in the correct spatial position. No additional dragging or other operations are required to adjust the position of the component instance in three-dimensional space, reducing manual intervention, improving the automation level of three-dimensional building model generation, and improving the generation efficiency and accuracy of three-dimensional building models.

[0094] In an optional embodiment of this disclosure, the parameter information obtained by parsing in step S110 may also include roof type (such as flat, gable, or hipped) and roof geometry parameters (such as the slope angle and eaves overhang length of the gable). Based on this, when the roof type is gable, while instantiating the components in each column in step S130, instantiation of the gable roof can also be performed: based on the top-level outline of the target building model and the roof type parameters, a gable roof template is loaded from a preset template library, and geometric transformations such as scaling and rotation are performed according to the roof's geometry parameters, so that the generated roof instance covers the entire top of the target building model.

[0095] For example, the geometric parameters of the roof can be parsed from the global parameters in the configuration file; if the geometric parameters of the roof are missing from the global parameters, the default values ​​can be used.

[0096] In the above embodiments, by parsing the configuration file to obtain parameter information about the roof, and based on this parameter information, the roof part in the three-dimensional building model can be automatically and accurately assembled, which can improve the generation efficiency and accuracy of the three-dimensional building model.

[0097] In an optional embodiment of this disclosure, the parameter information obtained by parsing in step S110 may further include the floor information corresponding to each column and the floor height of each floor.

[0098] Based on this, the step S140 above, which generates the target building model based on the component instance, may specifically include the following steps: Step S141: Based on the floor information, combine the component instances located on the same floor to obtain the floor model corresponding to each floor. Step S142: Stack the models of each floor according to the floor height to obtain the target building model.

[0099] For example, since component instantiation in step S130 can directly generate component instances located in the correct spatial position, combining component instances located on the same floor in step S141 may include filling the gaps between component instances with wall grids or transition grids, so that multiple component instances form a complete topology structure, reducing abnormal phenomena such as visual light leakage and physical clipping.

[0100] For example, since each floor may include multiple facades, each facade may include multiple columns, and each column corresponds to at least one component instance, in step S141, the component instances located on the same facade can be combined first to obtain multiple facades, and then the multiple facades located on the same floor can be combined to obtain the floor model corresponding to the corresponding floor.

[0101] For example, given the floor models corresponding to each floor, the height coordinates of the bottom and top surfaces of each floor model can be determined based on the floor index and floor height. Then, the height of each floor model in three-dimensional space can be adjusted based on the height coordinates to achieve stacking of the floor models and form the target building model.

[0102] For example, the floor models of each floor can be generated sequentially according to a preset floor order (such as from low to high) and stacked. For example, taking the floor model of the i-th floor as the basis, each column of the i+1-th floor is instantiated, and the resulting component instances are combined to obtain the floor model of the i+1-th floor stacked on top of the i-th floor.

[0103] For example, it is also possible to generate floor models corresponding to each floor in parallel, then determine the height coordinates of each floor model according to the floor height, and perform geometric transformations such as translation on each floor model based on the height coordinates, so that the floor models are stacked together along the height direction to form the target building model.

[0104] In practical applications, the column layout of different floors within the same building may differ. For example, a five-story building might have shops on the first floor (containing at least 8 columns, with the string sequence representing the column state as "NPNPNPNP", and components mainly consisting of doors and display windows), residences on the second to fourth floors (with the string sequence representing the column state as "NNNNNNNN", and components mainly consisting of standard windows), and terrace suites on the top floor (with the string sequence representing the column state as "NRRNNRRN", and recessed columns used to enclose the terraces). For complex buildings with such multi-layered heterogeneous layouts, each floor model can be generated independently and then stacked according to the floor height.

[0105] In the above embodiments, based on the parsed information such as floor height, automatic stacking and assembly between different floors can be achieved, reducing manual intervention, improving the automation level of 3D building model generation, and enhancing the generation efficiency and accuracy of 3D building models.

[0106] In an optional embodiment of this disclosure, step S141, which combines the component instances located on the same floor to obtain a floor model corresponding to each floor, may specifically include: Generate the corresponding wall mesh for each column in the same floor. Obtain the 3D bounding box information of the component instances corresponding to each column; A geometric validity check is performed based on the wall mesh and 3D bounding box information to determine whether an opening matching the 3D bounding box information can be created on the wall mesh. If the geometric validity check passes, Boolean operations are performed on the wall mesh based on the 3D bounding box information to create openings on the wall mesh that match the corresponding component instances.

[0107] For example, each column can be taken as the current column. Based on the parsed information such as floor height, width of the current column, and wall thickness, a wall mesh corresponding to the current column can be generated. The wall mesh of the current column is the object to be operated on, and the three-dimensional bounding box information of the component instance corresponding to the current column is the operation tool. A Boolean difference operation is performed to subtract the space occupied by the component instance from the wall mesh corresponding to the current column, thereby forming an opening on the wall mesh that matches the component instance.

[0108] For example, when wall openings are processed using Boolean difference operations, the wall mesh after the opening can be topologically connected to the corresponding component instance, such as filling the gap between the component and the wall.

[0109] For example, geometric validity checks can be implemented using methods such as bounding boxes, raycasting, and topology analysis to predict the consequences of creating openings in the wall mesh that match the 3D bounding box information. If the check fails, subsequent Boolean operations are not performed; instead, relevant prompts are generated and / or related processing measures (such as adaptively adjusting the size and position of component instances) are automatically executed. Only if the check passes are the openings automatically created using Boolean operations. This achieves intrinsic geometric constraints on the opening operation, ensuring that the final generated 3D building model not only "looks like it has openings" but is also "structurally reasonable and does not clip through in rendering," thus improving the accuracy and quality of the 3D building model.

[0110] In the above embodiments, Boolean operations are used to automatically and accurately create openings in the walls, enabling components such as doors and windows to form the correct geometric connection with the walls, thereby improving the accuracy of the final generated three-dimensional building model.

[0111] In an optional embodiment of this disclosure, the stacking of the floor models according to the floor height in step S142 may specifically include: If a first component instance exists at a first position in the first floor model, and no component instance exists at a second position in the second floor model corresponding to the first position, then wall filling is performed at the second position. The first floor model and the second floor model are adjacent in the height direction of the target building model.

[0112] For complex buildings with multi-level heterogeneous layouts, the column layouts of two adjacent floors may differ, including the number of columns and the corresponding component types. When the number of columns differs, a certain floor may have some missing columns relative to its adjacent floors. That is, the first component instance may exist at the first position in the first floor model, but no component instance may exist at the second position corresponding to the first position in the adjacent second floor model.

[0113] For example, to create a spacious lobby, the number of columns on the first floor (corresponding to the second floor model above) was reduced, while the second floor (corresponding to the first floor model above) reverted to a dense column layout. This would result in a situation where a certain column location on the second floor (corresponding to the first location above) lacks a corresponding column location on the first floor (i.e., the second location above), causing that column to lack a supporting structure. To address this, the above embodiment allows for wall filling at the corresponding location on the first floor to generate a transition beam or similar component to support the second-floor column.

[0114] As can be seen, the above embodiments can fill the gaps in the model structure by performing wall filling for missing columns in a certain floor, improve the geometric closure and connectivity of adjacent floor models, and provide physical support for related components, thereby improving the accuracy, rationality and practicality of the three-dimensional building model in terms of structure.

[0115] In one optional embodiment of this disclosure, multiple configuration files can be acquired simultaneously, and the generation process of 3D building models corresponding to multiple buildings can be executed concurrently through parallel processing threads. The model generation pipelines for each building are independent of each other, and each ultimately outputs its corresponding 3D building model.

[0116] The above embodiments can be applied to large-scale application scenarios such as batch generation of multiple buildings in urban blocks and rapid modeling of residential communities, thereby improving modeling efficiency.

[0117] In one optional embodiment of this disclosure, after generating the target building model based on the above embodiments, if the local parameters of the corresponding configuration file are changed (e.g., the configuration file is edited to change the component type of a column from "window" to "door"), the set of columns that need to be re-instantiated and the set of walls that need to be re-opened can be determined by comparing the configuration differences in the old and new configuration files, and the affected floors can be regenerated through some or all of the steps in the above embodiments.

[0118] The above embodiments can realize incremental assembly updates of the target building model, that is, only the affected parts are reassembled, rather than the entire building, which can improve the response speed in the "edit-reassemble" scenario.

[0119] Figure 5This is a flowchart illustrating a three-dimensional building model generation method (model assembly pipeline) based on column state analysis provided in this disclosure. Refer below for... Figure 5 The above-mentioned method for generating three-dimensional building models is illustrated by example.

[0120] a. Input and parsing stages (step S110) In some embodiments, taking a standard three-story residential building as an example, the above configuration file may include at least one of the following fields: (1) Global parameters: The building type is "residential", the total number of floors is 3, the default floor height is 3.0m, and the roof type is "flat"; (2) Column sequence parameters: The column state sequence of level 0 is columns="NPNRNNPN", with a total of 8 columns and a default width of column_width=1.5m for each column; (3) Component parameters: The column component of level 0 is configured as ["door", "window", "window", "window", "door", "window", "window", "window"]; (4) Offset parameters: forward offset d_forward=0.6m, backward offset d_backward=0.4m.

[0121] Parsing the above configuration file includes parsing the column states. Specifically, it involves reading the string "columns="NPNRNNPN" representing the column states from the configuration file, parsing it character by character, and combining this information with component parameters from the configuration file to obtain various pieces of information corresponding to each column in level 0. This information can be presented in the parsing results using the following state data structure: Column 0: Status N (Normal), Index 0, Floor 0, Component Type "door"; Column 1: Status P (protruding), Index 1, Floor 0, Component type "window"; Column 2: Status N (Normal), Index 2, Floor 0, Component Type "window"; Column 3: Status R (recessed), Index 3, Floor 0, Component type "window"; Column 4: Status N (Normal), Index 4, Floor 0, Component Type "door"; Column 5: Status N (Normal), Index 5, Floor 0, Component Type "window"; Column 6: Status P (protruding), Index 6, Floor 0, Component type "window"; Column 7: Status N (normal), Index 7, Floor 0, Component type "window".

[0122] The column status data structure obtained by parsing the configuration file includes information such as the index of each column, column status (normal / protruding / recessed), index number of the corresponding floor, and component type, which can provide data support for the subsequent automated model generation process.

[0123] During the parsing phase, the column status characters corresponding to each column can also be mapped to enumerated values: N→0, P→+1, R→-1, which facilitates quick judgment in the subsequent calculation phase.

[0124] b. Calculation stage (step S120) Based on the analysis results from the parsing phase, the depth coordinates corresponding to each column can be calculated. Assuming the Z-axis of the 3D coordinate system XYZ represents the depth direction and the Y-axis represents the height direction, based on the offset parameters d_forward=0.6m and d_backward=0.4m in the configuration file, and the enumerated values ​​corresponding to the state characters (N, P, R) for each column, the depth offset Offset[state] corresponding to each column state can be determined: Offset[N]=0, Offset[P]=+0.6m, Offset[R]=-0.4m. For each building facade, its reference plane corresponds to the depth coordinate Z=0. Combining the calculation formula Z_final=Z_ref+Offset[state], the depth coordinates of each column in the 0th layer can be calculated as follows: Column 0(N): Z = 0 + 0 = 0m; Column 1 (P): Z = 0 + 0.6 = +0.6m (protruding forward 0.6m); Column 2(N): Z=0+0=0m; Column 3(R): Z=0-0.4=-0.4m (recessed by 0.4m); Column 4(N): Z=0+0=0m; Column 5(N): Z=0+0=0m; Column 6(P): Z=0+0.6=+0.6m (protruding forward 0.6m); Column 7(N): Z=0+0=0m.

[0125] In addition, during the calculation phase, intelligent recommendations for front / back offsets can be made based on the LLM model to address situations where front / back offsets are missing in the configuration file.

[0126] c. Instantiation phase (step S130) Based on the results of the analysis and calculation phases described above, such as the component type and depth coordinates corresponding to each column, the corresponding 3D component template can be loaded from the component template library and geometric transformations can be applied. Taking layer 0 as an example, the instantiation process for each column is as follows: (1) Column 0: Load the "door" template (standard single door, 1.2m wide and 2.1m high) from the component template library, scale it to a column width of 1.5m, keep the height of 2.1m unchanged, rotate it 0 degrees (facing forward), and translate it to XY position (0, 0) and Z position 0m; (2) Column 1: Load the "window" template (standard window, 1.0m wide and 1.5m high) from the component template library, scale it to a column width of 1.5m, translate it to the XY position (1.5, 0), Z position +0.6m, apply depth extrusion transformation to generate a floating window effect; (3) Column 3: Load the "window" template, translate it to the XY position (4.5, 0) and the Z position -0.4m, apply the depth concavity transformation to generate the concave window effect; (4) The remaining columns can be instantiated by referring to the above columns, and will not be repeated here.

[0127] During the instantiation phase described above, geometric transformations of the component template can be performed following the TRS transformation sequence: first, scale to fit the size; then, rotate to adjust the orientation; and finally, translate to place it at the target position. The depth coordinate Z_final is used as the Z-axis component during the translation process.

[0128] d. Hole-opening stage (step S141) During the opening stage, for each wall where doors and windows need to be installed, the following steps can be taken to make openings in the wall: (1) Obtain the wall mesh: Generate the wall geometry based on the floor height (e.g., the default floor height is configured in the configuration file as floor_height=3.0m) and column width (e.g., the default column width is configured in the configuration file as column_width=1.5m). The wall thickness can be the default value of 0.3m (or the wall thickness can be obtained by parsing the configuration file). (2) Obtain door and window geometry: Extract the three-dimensional bounding box of the door and window components generated during the instantiation stage as a Boolean operation tool; (3) Geometric legality check: Perform a geometric legality check based on the wall mesh and 3D bounding box information to determine whether it is possible to open an opening on the wall mesh that matches the 3D bounding box information; (4) Perform Boolean difference operation: If the above geometric validity check passes, call the algorithm library of Constructive Solid Geometry (CSG) and use Boolean difference operation to subtract the space area enclosed by the door and window boundary frame on the wall mesh, and form an opening on the wall mesh that precisely matches the shape of the door and window; (5) Mesh cleanup: Perform topology repair on the wall mesh after Boolean operation, remove zero-area patches and non-manifold edges, so that the mesh quality meets the rendering requirements.

[0129] For example, the process of creating a doorway in column 0: The wall grid corresponding to column 0 is spatial region A from (0, 0, 0) to (1.5, 3, 0.3), and the door component corresponding to column 0 corresponds to spatial region B from (0, 0, 0) to (1.5, 2.1, 0.3). Subtracting spatial region B from spatial region A will form the doorway.

[0130] e. Stacking stage (step S142) Based on the floor height parsed from the configuration file, such as the default floor height of 3.0m, the floors are stacked along the height direction (i.e., the Y-axis direction). The stacking process of the above three standard residential buildings (floor indices 0~2) is as follows: (1) Layer 0 (bottom layer): bottom surface height coordinate Y 01 =0m, floor_height=3.0m, top surface height coordinate Y 02 =0 + 3.0 = 3.0m; (2) First layer (intermediate layer): bottom elevation coordinate Y 11 =3.0m, floor height is 3.0m, top surface height coordinate Y 12 =3.0 + 3.0 = 6.0m; (3) Second layer (top layer): bottom elevation coordinate Y 21 =6.0m, floor height 3.0m, top surface height coordinate Y 22 =6.0+3.0=9.0m.

[0131] During stacking, the complete 3D model of each layer (i.e., the floor model mentioned above, including instantiated components and walls with openings) is translated as a whole to align the positions of each layer in the XY plane. If the column layout of a layer differs from the base layer (e.g., the top layer has fewer columns or a different component type compared to the middle layers), the model of that layer is generated independently first before stacking.

[0132] Through the above stacking process, the final generated building model is 9.0m high (excluding the roof). By instantiating the roof component and assembling it into the 9.0m high building model, the final three-dimensional building digital asset, namely the target building model, is formed.

[0133] f. Output Stage During the output phase, the generated target building model can be exported as a preset 3D file format, such as .gltf or .obj. The exported 3D file contains data such as the geometric mesh, material information, and hierarchical structure of the corresponding building. The exported 3D file can be loaded by external 3D rendering engines (such as Three.js, Unreal Engine, and other third-party engines) for real-time preview, editing, or export to other BIM systems.

[0134] The three-dimensional building model generation (assembly) method provided in the above embodiments establishes a bridge between text configuration and geometric semantics by parsing the string encoding representing column states in the configuration file (such as "NPNRNNPN") into an indexed column state data structure. Then, by using a depth offset calculation method bound to the column states, different column states are mapped to different Z-axis (depth) offsets to obtain the depth coordinates of the corresponding columns. Based on these depth coordinates, the automatic three-dimensional expression of the concavity and convexity changes of the building facade can be realized, reducing manual intervention and improving modeling efficiency and accuracy.

[0135] Secondly, based on the calculated depth coordinates and other information, the above embodiments can be combined with geometric transformation operations to realize an automated process from component template to 3D component instance, including template loading, TRS transformation application (scaling + rotation + translation + depth offset) and instance placement, thereby improving the efficiency and accuracy of 3D component instantiation.

[0136] Furthermore, the above embodiments integrate Boolean operations into the model assembly pipeline, which can realize the automatic and accurate generation of door and window openings on the wall, reduce manual operation, and improve modeling efficiency and accuracy.

[0137] In addition, the above embodiments can automatically calculate the height coordinates of the bottom / top surfaces of each floor based on the floor height, and stack them based on the height coordinates. This can realize the automated generation of complex building models with different floor heights and column layouts, improving modeling efficiency and accuracy.

[0138] All of the above-mentioned optional technical solutions can be combined in any way to form optional embodiments of this disclosure, and will not be described in detail here.

[0139] Based on the same concept, this invention also provides a three-dimensional building model generation device based on column state analysis. Since the principle by which this device solves the problem is similar to the aforementioned three-dimensional building model generation method based on column state analysis, the implementation of this device can refer to the implementation of the aforementioned three-dimensional building model generation method based on column state analysis; repeated details will not be elaborated further.

[0140] Figure 6 This is a schematic diagram of the 3D building model generation device based on column state analysis. (See attached diagram) Figure 6 The device 300 includes: The parsing module 301 is used to obtain the configuration file and parse the configuration file to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concave and convex state of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column. The calculation module 302 is used to determine the position information of each column based on the column status. The position information includes the depth coordinates corresponding to each column. Instantiation module 303 is used to instantiate each column according to the position information to obtain the component instance corresponding to each column; Model generation module 304 is used to generate a target building model based on component instances.

[0141] In an optional embodiment of this disclosure, the computing module 302 may be configured to perform at least one of the following: When the column state corresponding to the current column is the first state, the reference coordinates are used as the depth coordinates of the current column. The first state indicates that the current column has no offset in the depth direction relative to the current reference plane. The current reference plane is the building facade where the current column is located. The depth direction corresponding to the current column is the direction shown by the first coordinate axis perpendicular to the current reference plane. The reference coordinates are the coordinates of the current reference plane on the first coordinate axis. When the column state corresponding to the current column is the second state, obtain the first preset offset corresponding to the current column, calculate the sum of the reference coordinate and the first preset offset, and obtain the depth coordinate of the current column. The second state represents the positive offset of the current column relative to the current reference plane along the depth direction. When the column state corresponding to the current column is in the third state, obtain the second preset offset corresponding to the current column, calculate the difference between the reference coordinate and the second preset offset, and obtain the depth coordinate of the current column. The third state represents the negative offset of the current column relative to the current reference plane along the depth direction.

[0142] In an optional embodiment of this disclosure, in order to obtain the first preset offset or the second preset offset corresponding to the current column, the calculation module 302 can be configured as follows: Obtain contextual information about the target building model, including at least one of the following: building type, architectural style, location, and floor height. Input the context information into the preset large model; Obtain the inference result obtained by the preset large model based on the context information. The inference result includes at least one of the first preset offset and the second preset offset.

[0143] In an optional embodiment of this disclosure, the parameter information parsed by the parsing module 301 may further include component information corresponding to each column. Based on this, the instantiation module 303 can be configured as follows: Load the component template corresponding to the current column from the preset template library based on the component information; Perform geometric transformations on the component template based on the position information to obtain the component instance corresponding to the current column. The geometric transformations include at least one of scaling, rotation, and translation.

[0144] In an optional embodiment of this disclosure, the parameter information parsed by the parsing module 301 may further include the floor information corresponding to each column and the floor height of each floor. Based on this, the model generation module 304 can be configured as follows: Based on the floor information, the component instances located on the same floor are combined to obtain the floor model corresponding to each floor; The model of each floor is stacked according to the floor height to obtain the target building model.

[0145] In an optional embodiment of this disclosure, to combine component instances located on the same floor, the model generation module 304 can be configured as follows: Generate the corresponding wall mesh for each column in the same floor; Obtain the 3D bounding box information of the component instances corresponding to each column; A geometric validity check is performed based on the wall mesh and 3D bounding box information to determine whether an opening matching the 3D bounding box information can be created on the wall mesh. If the geometric validity check passes, Boolean operations are performed on the wall mesh based on the 3D bounding box information to create openings on the wall mesh that match the corresponding component instances.

[0146] In an optional embodiment of this disclosure, the model generation module 304 can be configured to: fill the second position with a wall when there is a first component instance at a first position in the first floor model and no component instance at a second position corresponding to the first position in the second floor model, wherein the first floor model and the second floor model are adjacent in the height direction of the target building model.

[0147] It should be noted that the specific data processing methods of each module in the above-mentioned device 300 can be referred to the method embodiments described above, and will not be repeated here.

[0148] This disclosure also provides a computing device. Figure 7 This is a structural block diagram of a computing device provided in an embodiment of this disclosure. Figure 7 As shown, the computing device 400 may include a processor 401 and a memory 402; the memory 402 may be coupled to the processor 401. It is worth noting that... Figure 7 This is an example; other types of structures can also be used to supplement or replace this structure to achieve telecommunications functions or other functions. Optionally, the computing device 400 can be a server or a local computing device, thereby enabling the generation of 3D building models based on column state resolution in the cloud or locally.

[0149] In one possible implementation, the functions of the aforementioned three-dimensional building model generation device 300 can be integrated into the processor 401.

[0150] In another possible implementation, the three-dimensional building model generation device 300 can be configured separately from the processor 401. For example, the three-dimensional building model generation device 300 can be configured as a chip connected to the processor 401, and the method of the above embodiment can be implemented through the control of the processor 401.

[0151] Furthermore, in some alternative implementations, the computing device 400 may also include: a communication module, an input unit, an audio processor, a display, a power supply, etc. It is worth noting that the computing device 400 is not necessarily required to include these components. Figure 7 All components shown; in addition, the computing device 400 may also include Figure 7 For components not shown, please refer to existing technologies.

[0152] In some alternative implementations, processor 401, sometimes also referred to as controller or operation control, may include a microprocessor or other processor device and / or logic device, which receives input and controls the operation of various components of computing device 400.

[0153] The memory 402 may be, for example, one or more of a cache, flash memory, hard drive, removable medium, volatile memory, non-volatile memory, or other suitable device. It can store the information related to the aforementioned three-dimensional building model generation apparatus 300, and may also store programs for executing that information. The processor 401 can execute the program stored in the memory 402 to perform information storage or processing, etc.

[0154] An input unit can provide input to the processor 401. This input unit may be, for example, a button or touch input device. A power supply can be used to provide power to the computing device 400. A display can be used to display images and text, etc. This display may be, for example, an LCD display, but is not limited to this.

[0155] Memory 402 can be a solid-state memory, such as read-only memory (ROM), random access memory (RAM), SIM card, etc. It can also be a memory that retains information even when power is off, can be selectively erased, and contains more data; examples of this type of memory are sometimes referred to as EPROM, etc. Memory 402 can also be some other type of device. Memory 402 includes buffer memory (sometimes referred to as a buffer). Memory 402 may include an application / function storage unit for storing application programs and function programs or processes for executing operations of computing device 400 via processor 401.

[0156] The memory 402 may also include a data storage unit for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the computing device. The driver storage unit of the memory 402 may include various drivers for the computer device for communication functions and / or for performing other functions of the computer device (such as messaging applications, address book applications, etc.).

[0157] The communication module is a transmitter / receiver that sends and receives signals via an antenna. The communication module (transmitter / receiver) is coupled to the processor 401 to provide input signals and receive output signals, which can be the same as in a conventional mobile communication terminal.

[0158] This disclosure also provides a computer program product, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer performs the method in any of the above method embodiments and achieves the same technical effect. For details, please refer to the foregoing embodiments, which will not be repeated here.

[0159] This specification also provides a computer storage medium in one or more embodiments, which stores a computer program or instructions that, when run on a computer, cause the computer to perform the methods in any of the above method embodiments and achieve the same technical effect. For details, please refer to the foregoing embodiments, which will not be repeated here.

[0160] The aforementioned readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0161] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device and system embodiments are basically similar to the method embodiments, so the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0162] While one or more embodiments of this specification provide the operational steps of the methods described in the embodiments or flowcharts, more or fewer operational steps may be included based on conventional or non-inventive labor. The order of steps listed in the embodiments is merely one possible execution order among many and does not represent the only possible execution order. In actual device or client product execution, the methods shown in the embodiments or drawings can be executed sequentially or in parallel (e.g., in a parallel processor or multi-threaded processing environment).

[0163] In the description of this application, it should be noted that the terms "upper", "lower", "inner", "outer", "front", "rear", "left", "right", etc., indicate the orientation or positional relationship based on the orientation or positional relationship in the working state of this application. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.

[0164] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. Those skilled in the art can understand the specific meaning of these terms in this application based on the specific circumstances.

[0165] The present application has been described above with reference to preferred embodiments; however, these embodiments are merely exemplary and illustrative. Various substitutions and modifications can be made to the present application based on these embodiments, all of which fall within the protection scope of the present application.

Claims

1. A method for generating 3D building models based on column state analysis, characterized in that, include: Obtain the configuration file and parse the configuration file to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concavity and convexity of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column. Based on the column status, determine the position information of each column, including the depth coordinates corresponding to each column; Instantiate each column based on the location information to obtain the component instance corresponding to each column; The target building model is generated based on the component instance.

2. The method according to claim 1, characterized in that, Based on the column status, determine the position information of each column, including: When the column state corresponding to the current column is in the first state, the reference coordinates are used as the depth coordinates of the current column. The first state indicates that the current column has no offset in the depth direction relative to the current reference plane. The current reference plane is the building facade where the current column is located. The depth direction corresponding to the current column is the direction shown by the first coordinate axis perpendicular to the current reference plane. The reference coordinates are the coordinates of the current reference plane on the first coordinate axis. When the column state corresponding to the current column is the second state, the first preset offset corresponding to the current column is obtained, the sum of the reference coordinate and the first preset offset is calculated, and the depth coordinate of the current column is obtained. The second state represents the positive offset of the current column relative to the current reference plane along the depth direction. When the column state corresponding to the current column is in the third state, the second preset offset corresponding to the current column is obtained, the difference between the reference coordinate and the second preset offset is calculated, and the depth coordinate of the current column is obtained. The third state represents the negative offset of the current column relative to the current reference plane along the depth direction.

3. The method according to claim 2, characterized in that, The parameter information also includes component information corresponding to the column; Based on the location information, each column is instantiated to obtain the component instance corresponding to each column, including: The component template corresponding to the current column is loaded from the preset template library based on the component information; The component template is geometrically transformed based on the location information to obtain the component instance corresponding to the current column. The geometric transformation includes performing scaling transformation, rotation transformation and translation transformation in sequence, and the depth coordinates are used as the translation transformation component in the depth direction.

4. The method according to claim 1, characterized in that, The parameter information also includes the floor information corresponding to each column and the floor height of each floor; Generating the target building model based on the component instance includes: Based on the floor information, the component instances located on the same floor are combined to obtain the floor model corresponding to each floor; The target building model is obtained by stacking the models of each floor according to the floor height.

5. The method according to claim 4, characterized in that, The component instances located on the same floor are combined to obtain the floor model corresponding to each floor, including: Generate the corresponding wall mesh for each column in the same floor; Obtain the 3D bounding box information of the component instances corresponding to each column; A geometric validity check is performed based on the wall mesh and the three-dimensional bounding box information to determine whether an opening matching the three-dimensional bounding box information can be made on the wall mesh. If the geometric validity check passes, Boolean operations are performed on the wall mesh based on the three-dimensional bounding box information to form openings on the wall mesh that match the corresponding component instances.

6. The method according to claim 4, characterized in that, Stacking the floor models according to the floor height includes: If a first component instance exists at a first position in the first floor model, and no component instance exists at a second position in the second floor model corresponding to the first position, then wall filling is performed at the second position. The first floor model and the second floor model are adjacent in the height direction of the target building model.

7. The method according to claim 2, characterized in that, Get the first or second preset offset corresponding to the current column, including: Obtain the context information of the target building model, which includes at least one of the following: building type, building style, location, and floor height. Input the context information into the preset large model; Obtain the inference result obtained by the preset large model based on the context information, wherein the inference result includes at least one of the first preset offset and the second preset offset.

8. A three-dimensional building model generation device based on column state analysis, characterized in that, include: The parsing module is used to obtain the configuration file and parse the configuration file to obtain the parameter information corresponding to the target building model to be generated. The parameter information includes column status, which represents the concavity and convexity of the column of the target building model relative to the building facade. The target building model includes at least one floor, each floor includes at least one facade, and each facade includes at least one column. The calculation module is used to determine the position information of each column based on the column status, wherein the position information includes the depth coordinates corresponding to each column; The instantiation module is used to instantiate each column according to the location information to obtain the component instance corresponding to each column; The model generation module is used to generate the target building model based on the component instance.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method of any one of claims 1 to 7.

10. A computing device, characterized in that, include: Memory, used to store computer programs; A processor is configured to execute a computer program stored in the memory, wherein when the computer program is executed, it implements the method described in any one of claims 1 to 7.