Building modeling method and apparatus, map rendering method and apparatus, and device

By acquiring shape unit parameters and using rotational modeling, the problem of existing building modeling being unable to distinguish between different buildings has been solved, achieving efficient and detailed building modeling and improving the positioning accuracy and user experience of map applications.

WO2026001743A1PCT designated stage Publication Date: 2026-01-02BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/101244
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-06-27
Filing Date
2025-06-16
Publication Date
2026-01-02

AI Technical Summary

Technical Problem

In existing technologies, building modeling methods cannot effectively distinguish between different buildings, making it difficult for users to obtain more information. Especially in map applications, ordinary box models cannot reproduce the true shape and features of buildings, affecting the positioning and map user experience.

Method used

By acquiring the shape element parameters of the building, constructing repeating shape elements, and generating the building model through rotational modeling, the modeling efficiency and accuracy are improved. This method is suitable for buildings with common characteristics, such as classical buildings.

Benefits of technology

It achieves efficient and detailed building modeling, improves map positioning accuracy and user experience, and enhances the intuitiveness and realism of map information acquisition. In particular, it improves the usability of map applications in LOD4 level modeling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025101244_02012026_PF_FP_ABST
    Figure CN2025101244_02012026_PF_FP_ABST
Patent Text Reader

Abstract

One or more embodiments of the present description provide a building modeling method and apparatus, a map rendering method and apparatus, and a device. The building modeling method comprises: for buildings to be modeled, acquiring geometric unit parameters corresponding to said buildings, wherein the geometric unit parameters are used for modeling repetitive geometric units in geometric structures of said buildings, and said buildings are those sharing common characteristics in the geometric structures; constructing the repetitive geometric units on the basis of the geometric unit parameters; and performing rotational modeling on the repetitive geometric units on the basis of the number of geometric units of said buildings, so as to obtain building models of said buildings, wherein the building models comprise repetitive geometric units equal in number to the geometric units. In this way, the realism of the building models can be enhanced, and the modeling efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

A building modeling method, a map rendering method, device and equipment

[0001] The present disclosure claims priority to a Chinese patent application No. 202410851763.0, filed on June 27, 2024, and entitled "A building modeling method, a map rendering method, device and equipment", the whole content of which is incorporated herein by reference. TECHNICAL FIELD

[0002] One or more embodiments of the present specification relate to the technical field of computer application, and in particular to a building modeling method, a map rendering method, device and equipment. BACKGROUND

[0003] When modeling buildings in the real world, some scenarios simply model buildings as square boxes for presentation. For example, buildings in a map application can be presented in a 3D mode, and the buildings in the map application in the 3D mode are generally presented by "square boxes" of different sizes. However, buildings in the real world have various shapes and large differences in characteristics, such as shopping mall type buildings, office building type buildings, residential buildings, and classical buildings. Ordinary square box buildings cannot help users distinguish different buildings on the map and obtain more information. SUMMARY

[0004] Therefore, one or more embodiments of the present specification provide a building modeling method, a map rendering method, device and equipment.

[0005] One or more embodiments of the present specification provide technical solutions as follows:

[0006] According to a first aspect of an embodiment of the present specification, a building modeling method is provided, and the method comprises:

[0007] For a building to be modeled, a shape unit parameter corresponding to the building is obtained, the shape unit parameter being used to model a repeated shape unit in a shape structure of the building; the building to be modeled is a building having common characteristics in the shape structure;

[0008] Based on the shape unit parameter, the repeated shape unit is constructed.

[0009] According to a number of shape units of the building, the repeated shape unit is rotationally modeled to obtain a building model of the building, the building model comprising: the number of shape units of repeated shape units.

[0010] According to a second aspect of an embodiment of the present specification, a map rendering method is provided, and the method comprises:

[0011] display a map page where the building to be modeled is located;

[0012] render a building model of the building at a building position corresponding to the building on the map page, the building model being obtained by modeling the building according to any one of the methods described in the embodiments of the present specification.

[0013] According to a third aspect of the embodiments of the present specification, a modeling device of a building is provided, and the device comprises:

[0014] an information acquisition module configured to acquire, for a building to be modeled, a shape unit parameter corresponding to the building, the shape unit parameter being used to model a repeated shape unit in a shape structure of the building; the building to be modeled being a building having common features in the shape structure;

[0015] a shape construction module configured to construct the repeated shape unit based on the shape unit parameter;

[0016] a rotation modeling module configured to perform rotation modeling on the repeated shape unit according to a number of shape units of the building to obtain a building model of the building, the building model comprising the number of repeated shape units.

[0017] According to a fourth aspect of the embodiments of the present specification, a map rendering device is provided, and the device comprises:

[0018] a page display module configured to display a map page where a building to be modeled is located;

[0019] a model rendering module configured to render a building model of the building at a building position corresponding to the building on the map page, the building model being obtained by modeling the building according to any one of the methods described in the embodiments of the present specification.

[0020] According to a fifth aspect of the embodiments of the present specification, an electronic device is provided, and the device comprises:

[0021] a processor;

[0022] a memory for storing processor-executable instructions;

[0023] wherein the processor implements the method described in any one of the embodiments of the present specification by running the executable instructions.

[0024] According to a sixth aspect of the embodiments of the present specification, a computer-readable storage medium is provided, and the medium stores computer instructions which are executed by a processor to implement the method described in any one of the embodiments of the present specification.

[0025] According to a seventh aspect of the embodiments of the present disclosure, a computer program product is provided, comprising computer instructions which, when executed by a processor, implement the method of any of the embodiments of the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the one or more embodiments of the present disclosure or the related art, the drawings needed to be used in the description of the embodiments or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments described in the one or more embodiments of the present disclosure, and other drawings can be obtained by a person of ordinary skill in the art without any creative effort on the basis of these drawings.

[0027] FIG. 1A is a schematic diagram of a modeling structure of a LOD4 building according to an example embodiment.

[0028] FIG. 1B is a schematic diagram of another modeling structure of a LOD4 building according to an example embodiment.

[0029] FIG. 1C is a LOD4 model of a classical building according to an example embodiment.

[0030] FIG. 1D is a flowchart of a modeling method of a building according to an example embodiment.

[0031] FIG. 2 is a flowchart of a modeling method of a building according to an example embodiment.

[0032] FIG. 3A is a schematic diagram of a roof of a classical building according to an example embodiment.

[0033] FIG. 3B is a schematic diagram of a ridge of a classical building according to an example embodiment.

[0034] FIG. 4 is a schematic diagram of a brick pagoda of the Tang Dynasty according to an example embodiment.

[0035] FIG. 5 is a schematic diagram of a tower of the Tang and Song Dynasties according to an example embodiment.

[0036] FIG. 6 is a schematic diagram of two basic building shapes according to an example embodiment.

[0037] FIG. 7 is a schematic diagram of a structure of a building model according to an example embodiment.

[0038] FIG. 8 is a schematic diagram of a modeling process of an octagonal tower according to an example embodiment.

[0039] FIG. 9 is a schematic diagram of a modeling of an octagonal tower according to an example embodiment.

[0040] FIG. 10 is a schematic diagram of a modeling process of a quadrangular tower according to an example embodiment.

[0041] FIG. 11 is a schematic diagram of modeling a four-cornered tower according to an example embodiment.

[0042] FIG. 12 is a schematic diagram of modeling another classical building according to an example embodiment.

[0043] FIG. 13 is a flowchart of a method of rendering a map according to an example embodiment.

[0044] FIG. 14 is a schematic diagram of a modeling device for a building according to an example embodiment.

[0045] FIG. 15 is a schematic diagram of another modeling device for a building according to an example embodiment.

[0046] FIG. 16 is a schematic diagram of an electronic device according to an example embodiment. DETAILED DESCRIPTION

[0047] The example embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals refer to like elements, unless otherwise indicated. The following description of example embodiments does not represent an exhaustive description of all embodiments consistent with one or more embodiments of the specification. Rather, they are just examples of devices and methods consistent with some aspects of one or more embodiments of the specification as detailed in the appended claims.

[0048] It should be noted that the steps of the methods in other embodiments are not necessarily performed in the order described in this specification. In some other embodiments, the steps of the methods can be more or less than those described in this specification. Furthermore, a single step described in this specification can be split into multiple steps in other embodiments; and multiple steps described in this specification can be combined into a single step in other embodiments.

[0049] The modeling method for a building provided by the embodiments of this specification is based on the fact that some buildings can be abstracted to have common structural features, such as a certain type of building is a four-cornered tower; and not only can have common structural features, but also such buildings are very distinctive in their construction, the building itself is composed of multiple repeating units, as long as the repeating units are constructed, the model of the entire building can be quickly constructed by rotation. The modeling method of the embodiments based on the above two points can improve the modeling efficiency of the building.

[0050] The method is suitable for modeling buildings, which can be classical buildings, such as, but not limited to, Han Dynasty buildings, Tang Dynasty buildings, Ming Dynasty buildings, Huizhou-style buildings, and the like. Many of the classical buildings are tower buildings, such as, Tang and Song pagodas, Tibetan Buddhist pagodas, stone brick pagodas, Vajra Throne pagodas, multi-eave pagodas, and the like.

[0051] In the following description of the modeling method, modeling of classical buildings will be described as an example. It should be understood that the method of the embodiments of the present specification is applicable to buildings other than classical buildings, as long as the buildings can abstract common morphological structural features and are modeled by rotating and repeating the shape units.

[0052] In the method of the embodiments of the present specification, the modeling of the building can be LOD (Level of Detail) 4-level modeling, that is, the building model to be constructed has a refined building structure, highly restores the external shape structure of the building in the real world, and enhances the authenticity of the building model. For example, a classical building modeled by LOD4 can include detailed structural details, such as doors, windows, railings, columns, pedestals, steps, high-precision roofs, and the like.

[0053] The LOD4-level building modeling highly restores the 3D effect of the building in the real world, so that the user viewing the building model will have a better viewing experience. In particular, when the buildings in the map application are modeled by LOD4, the buildings can play a greater role, as exemplified below:

[0054] 1) Assisting map positioning:

[0055] Sometimes, a user determines his / her current position through a map. For example, due to errors of a positioning sensor, the positioning position displayed by the map application does not match the actual position of the user. In this case, the user needs to determine his / her current position by using the building model on the map. If the building model on the map is in the form of a "box", the user cannot correspond the building model on the map to the real building in the real world, and thus cannot easily determine his / her current position.

[0056] The LOD4 building model can highly restore the external shape structure of the building in the real world, so that the user can correspond the building model on the map to the real building in the real world, and thus more conveniently determine his / her current position, improving the user's map use experience.

[0057] 2) help pre-trip decision, improve map reading experience, and more accurately obtain map information:

[0058] Because the height of the LOD4 building model restores the 3D effect of the real building, when the user uses the map, the user can more accurately obtain the map information, and will have an immersive experience when browsing the map. For example, the user can more intuitively and accurately see the shape structure of the building. The shape structure of the building model in the map is restored to the shape structure of the real world building, so that the user can see the shape of the building on the map, thereby assisting the user in making a travel decision based on the building information.

[0059] For example, the user can use the building information on both sides of the road to decide whether to set a detection station at the location, or the user can use the map to determine whether a building is a place the user wants to go. These can be completed through the map, greatly facilitating the user and improving the user's map use experience.

[0060] For example, for scenic spots in the map, classical buildings in the scenic spots can be modeled using LOD4. In this way, the user can browse the scenic spots through the map, and the classical building model in the scenic spot in the map is similar to the height of the real building in the real world, thereby improving the user's real experience of browsing the scenic spots and helping the user make a pre-trip decision. For example, the user can browse the scenic spot and the classical building in the scenic spot that the user wants to go to through the map before traveling, and if the user likes it, the user can go to the scenic spot to watch it offline, thereby helping the user make an accurate pre-trip decision and providing the user with more information.

[0061] Referring to FIG. 1A and FIG. 1B, FIG. 1A is a schematic diagram of a modeling structure of an LOD4 building according to an example embodiment, and FIG. 1B is a schematic diagram of another modeling structure of an LOD4 building according to an example embodiment.

[0062] Specifically, as shown in FIG. 1A, the real-world classical building can be modeled to obtain the building model of the LOD4 classical building. FIG. 1B shows several types of classical building models, for example, Huizhou-style buildings, towers of the Tang and Song dynasties, and Tibetan pagodas. Other types of classical buildings are not listed. In addition, FIG. 1C shows the LOD4 model of the classical buildings in the Nanjing Confucian Temple scenic spot. As can be seen, the models of these classical buildings restore the real buildings in the shape of the building, which provides a good scenic experience for users browsing the scenic spot.

[0063] However, it should be understood that the building modeling method of the embodiments of the present specification can not only be applied to LOD4 modeling of buildings in map applications, but also can be applied to modeling of buildings in other scenarios.

[0064] It should be further noted that the modeling method of the building of the embodiments of the present specification not only models the building in LOD level, but also improves the modeling efficiency to achieve fast and fine LOD4 building modeling. In order to improve the modeling efficiency, the modeling method provides an automatic modeling scheme. FIG. ID is a flowchart of a modeling method of a building according to an exemplary embodiment, as shown in FIG. ID, which can include the following processing:

[0065] In step 100, for a building to be modeled, the shape unit parameters corresponding to the building are obtained.

[0066] The shape unit parameters are used to model the repeated shape units in the shape structure of the building.

[0067] The building to be modeled is a building with common features in the shape structure.

[0068] For example, the brick tower buildings in the Tang Dynasty usually have some common features in the shape structure. These buildings are usually square pavilion-shaped shape structures. From the building detail components, the Tang and Song Dynasty pavilion towers usually have railings, columns and windows, and the railings, columns and windows are symmetrically arranged.

[0069] The repeated shape unit refers to the repeated shape part contained in the building. For example, a four-sided tower in the Tang Dynasty, the structures of the four sides are the same, so the shape structure of one side can be called a repeated shape unit. The shape unit parameters are parameters for constructing the repeated shape unit.

[0070] In step 102, the repeated shape unit is constructed based on the shape unit parameters.

[0071] In step 104, the repeated shape unit is rotationally modeled according to the number of shape units of the building to obtain a building model of the building.

[0072] The building model includes the number of repeated shape units. For example, a building has 8 repeated shape units, and the number of shape units is 8. Moreover, the 8 repeated shape units are arranged in a circumferential direction to form the building. Based on this, after one of the repeated shape units is constructed, the repeated shape unit can be rotated, for example, one revolution clockwise, to obtain 8 repeated shape units in one revolution.

[0073] The modeling method of the building of the embodiment is a way of automatic modeling, improves the modeling efficiency of the building, and has universality. Buildings of the same type have common shape structures. By setting parameters corresponding to the common shape structures and combining the way of rotational modeling, the building model of the building can be quickly constructed, improving the modeling speed.

[0074] Please refer to FIG. 2, which is a flowchart of a modeling method of a building according to an example embodiment. As shown in FIG. 2, the method can include the following processes. It should be noted that the modeling of a classical building is taken as an example in the embodiment, and the step numbers used in the following description do not limit the execution order of the steps in the modeling method of the embodiment.

[0075] In step 200, the building type of the classical building to be modeled is obtained. Each building type is used to represent the classification of the same type of classical building having common features in shape structure.

[0076] In the embodiment, the classical building to be modeled can include various types, such as but not limited to Tang-Song pavilion towers, Tibetan pagodas, stone brick towers, Vajra throne towers, close-eaved towers, flower towers, and Huizhou-style buildings.

[0077] The features of classical buildings of different building types in shape structure can be different. For example, Tang Dynasty brick towers are generally square pavilion towers, and the representative building is the Big Wild Goose Pagoda. The feature of Huizhou-style buildings is generally white walls, black tiles, and horse-head walls, and the representative building is a building in Anhui. The feature of Han Dynasty buildings is generally main-challenge corner double-ridge construction, and the representative building can be a building in Jiangsu and Zhejiang. Other types are not listed. In summary, each type of classical building has some common features in shape structure. Based on this, the classical buildings can be classified in the embodiment, and the embodiment does not limit the way of classifying the buildings, as long as most of the classical buildings can be covered by a suitable classification method as much as possible.

[0078] For example, as described above, the building type of the classical building can include but is not limited to Tang-Song pavilion towers, Tibetan pagodas, stone brick towers, and the like.

[0079] In addition, the classical building of a certain building type can have the following common features, which are only examples:

[0080] 1) The classical building of a certain building type can have a corresponding roof shape and a corresponding tower ridge.

[0081] For example, the Tang and Song pagoda towers can have an octagonal tower top. The Han Dynasty buildings can have a tower ridge with a protruding corner.

[0082] The roof of a classical building can have various roof shapes. For example, as shown in FIG. 3A, a round tower top, a square tower top, a four-flat-tower top, a hexagonal tower top, an octagonal tower top, a hexagonal tower top with single and double, and the like are exemplified. The corresponding roof shape can be set based on the building type to which the classical building belongs.

[0083] The classical building also includes a tower ridge, which can also have various shapes. For example, as shown in FIG. 3B, a tower ridge with a protruding corner, a tower ridge with a flat corner, a tower ridge with a sharp corner, and the like are exemplified. The corresponding tower ridge shape can be set based on the building type to which the classical building belongs.

[0084] 2) A classical building of a certain type of building has commonalities in the basic building shape and commonalities in the building detail components:

[0085] The building detail components can include windows, doorways, railings, columns, bases, steps, and the like. The basic building shape can be the part of the building other than the doorways, railings, columns, and other building detail components.

[0086] For example, from the basic building shape, Huizhou-style buildings are all wall and tile shape structures, and Tang Dynasty brick towers are usually square pagoda shape structures. From the building detail components, Tang and Song pagoda towers usually have railings, columns, and windows, and the railings, columns, and windows are symmetrically arranged. Tang Dynasty brick towers and Tibetan Buddhist pagodas generally do not have railings and columns.

[0087] It can be understood that the above shape structure features are only illustrative, and in actual implementation, they are not limited thereto and can be determined according to actual statistical results. In summary, buildings belonging to the same type of building usually have some common features in shape structure.

[0088] The above-described classification method of classical buildings and the acquisition method of common features of building shape structures of each building type are not limited in this embodiment. For example, various methods such as image recognition, model extraction, and manual summary can be used to ultimately obtain the various building types of classical building classification and the common features of building shape structures of each building type.

[0089] In this step, the building type of the classical building to be modeled can be obtained, for example, it is determined whether the building type of the classical building belongs to a Tang and Song pagoda tower or a Tibetan Buddhist pagoda.

[0090] The acquisition method of the building type of the classical building can also have various methods.

[0091] For example, the building type to which the classical building belongs can be bound in advance.

[0092] For another example, the building type of the classical building can also be identified according to the image of the classical building. In step 202, the shape unit parameters corresponding to the building type are acquired according to the building type, the shape unit parameters being used for modeling the repeated shape unit in the shape structure of the classical building, and the repeated shape unit is constructed based on the shape unit parameters.

[0093] In this step, the corresponding shape unit parameters can be acquired according to the building type to which the classical building to be modeled belongs, the shape unit parameters being used for modeling the repeated shape unit in the shape structure of the classical building.

[0094] In addition, it also needs to be explained that the embodiment is to acquire the shape unit parameters corresponding to the building type based on the building type. However, in actual implementation, it is not limited thereto, and the shape unit parameters corresponding to the building can also be acquired according to other attributes of the building. For example, the buildings in a certain area have common shape structures. For another example, the buildings in a certain building era have their corresponding shape structures.

[0095] The shape structure of the classical building usually has the following characteristics: the classical building can include multiple repeated shape units. For example, the Tang Dynasty brick tower shown in FIG. 4 can be taken as an example: as shown in FIG. 4, the Tang Dynasty brick tower is a square tower, and the structures of its four sides are the same. For example, the side A and the side B in FIG. 4 are the same structure, both having 7 layers, and the structure of each layer is the same, such as having a door hole in the middle of each layer, and the structure of each layer is the same. In the embodiment, the shape structure presented by one side such as side A or side B can be referred to as a repeated shape unit. It can be understood that the Tang Dynasty brick tower in FIG. 4 has another two sides which are not shown in the figure, and the other two sides also have the same structure as side A and side B, that is, the outer shape is the same.

[0096] Please continue to refer to FIG. 4, the Tang Dynasty brick tower includes 4 repeated shape units, but the shape structures of the 4 repeated shape units are the same, so they correspond to a group of shape unit parameters. That is, the shape structure of side A or side B can be modeled based on the group shape unit parameters of side A or side B in FIG. 4. It needs to be noted that only one of the repeated shape units is modeled in this step, such as only the shape structure of side A is modeled.

[0097] As mentioned above, the four faces of the brick tower in the Tang Dynasty correspond to four repeating form units, and since the four repeating form units have the same form structure, they correspond to a set of form unit parameters. In another example, the plurality of repeating form units included in the classical building can be repeating form units with different form structures, and thus the different repeating form units can correspond to different form unit parameters.

[0098] For example, referring to the example of FIG. 5, which shows a tower in the Tang and Song Dynasties. As can be seen from the figure, the first form part and the second form part of the tower are different, and the first form part is obviously wider and larger than the second form part. The tower in the Tang and Song Dynasties is an eight-sided tower with eight sides, i.e., as shown in FIG. 5, each side corresponds to a part called a repeating form unit. For example, the first form part includes 8 repeating form units 51, which can include doorways, steps, windows, eaves, etc. The second form part includes 8 repeating form units 52, which can include doorways, windows, eaves, railings, columns, etc.

[0099] The repeating form unit 51 corresponds to a set of form unit parameters, and the repeating form unit 52 corresponds to another set of form unit parameters. Since the repeating form unit 51 and the repeating form unit 52 are different in form structure (such as area, presence or absence of railings and columns), the form unit parameters corresponding to the two repeating form units also have differences.

[0100] In this step, the repeating form unit 51 can be modeled according to the form unit parameters corresponding to the repeating form unit 51; similarly, the repeating form unit 52 can be modeled according to the form unit parameters corresponding to the repeating form unit 52.

[0101] In addition, as can be seen from FIG. 5, the repeating form unit modeled based on the form unit parameters can include a basic building form and a building detail component. The building detail component can include components such as windows, doorways, railings, columns, etc., and the part other than these building detail components is called a basic building form. Correspondingly, the form unit parameters can include basic form parameters and detail component parameters. Specifically, when constructing the repeating form unit, the basic building form of the classical building can be modeled according to the basic form parameters; and the building detail component can be set on the basic building form according to the detail component parameters.

[0102] For example, taking the repeating shape unit 51 in the Tang-Song pagoda tower in FIG. 5 as an example, a basic building shape of the repeating shape unit 51 can be modeled according to the basic shape parameters. Please refer to FIG. 6 for details, which shows two basic building shapes. It can be seen that no doors and windows are set on the basic building shapes. On the basic building shapes, building detail components are set according to the detail component parameters, such as doors, windows, steps, and the like, which can be seen in FIG. 5.

[0103] In addition, for classical buildings of the same type, even if the general shape structure is similar, the heights of different buildings can be different. Therefore, when modeling the repeating shape unit, the repeating shape unit corresponding to the height of the classical building can be constructed according to the height of the classical building.

[0104] For example, when modeling the Tang-Song pagoda tower in FIG. 5, or the aforementioned Tang Dynasty brick tower, or the Huizhou architecture, and the like, the floor of the classical building can be identified according to the image of the classical building, the height of the classical building can be determined according to the floor, and the repeating shape unit corresponding to the height can be constructed based on the shape unit parameters. For example, the floor of the classical building can be determined first, the height of each floor of the classical building can be combined, and finally the height of the classical building can be obtained by multiplying the floor and the height of each floor. The height of each floor of the classical building can be pre-set or determined according to the building type or experience. For example, for the Tang-Song pagoda tower shown in FIG. 5, the heights of the first shape part and the second shape part are different, and the heights of the two shape parts in the Tang-Song pagoda tower model can be modeled by combining the heights of the first shape part and the second shape part of the classical building in the real world.

[0105] In yet another example, some classical buildings have a base, so the base of the classical building can be modeled before modeling the repeating shape unit of the classical building. The base refers to the basic part of the building in contact with the ground, which can serve to support and stabilize the building. Please refer to FIG. 7 for details, which shows a classical building with a base, and the first shape unit and the second shape unit are located on the base. Therefore, the base shape parameters of the building to be modeled can be obtained first, for example, the corresponding base shape parameters can be obtained based on the building type of the building, the base of the classical building can be modeled according to the base shape parameters, and then the repeating shape unit can be constructed on the base based on the shape unit parameters. The base shape of the classical building of different building types can be different, so the base can be modeled based on the base shape parameters corresponding to the building type. The base shape parameters can be used to define the shape of the base, the number of steps of the base, the step setting parameters, and the like.

[0106] As mentioned above, since different base shape parameters can be set for different types of classical buildings, the base polygon of the actual classical building can no longer be used. That is, even if the base polygon of the classical building is identified according to the image of the classical building, it can be adjusted to the base shape defined by the base shape parameters, and modeled as the base of the classical building corresponding to the base shape. For example, if the base polygon of a classical building in the real world is a circle, but according to the type of the classical building, it is determined that the base of the classical building is a square when modeling, the circle can be changed to a square, and the classical building can be modeled with a square base. That is, the modeling of the classical building in this embodiment does not rely on the polygon, and the classical building can be modeled on any polygon.

[0107] In step 204, the repeated shape units are rotationally modeled according to the number of shape units of the classical building, to obtain the building body of the classical building, which includes the number of shape units of repeated shape units.

[0108] Since the classical building includes a plurality of repeated shape units, the repeated shape units can be rotationally modeled in this step to obtain N repeated shape units, where N is a natural number greater than or equal to 2. For example, a Tang and Song pavilion and tower includes eight repeated shape units, so eight repeated shape units can be rotationally modeled. In addition, as mentioned above, for the case where the Tang and Song pavilion and tower includes a first shape part and a second shape part, the positional relationship between the first shape part and the second shape part can be obtained first, where the positional relationship can be, for example, that the first shape part is below and the second shape part is above the first shape part. Then, based on the positional relationship, the first shape part and the second shape part are modeled. For example, the first shape part can be rotationally modeled according to a repeated shape unit, and the second shape part can be rotationally modeled above the first shape part based on the first shape part, according to another repeated shape unit. For another example, the first shape part and the second shape part can also be rotationally modeled at the same time according to the two repeated shape units, as long as the positional relationship between the two shape parts during rotational modeling conforms to "the first shape part is below and the second shape part is above".

[0109] In this step, the number of shape units is, for example, the number of eight repeated shape units or four repeated shape units described above. The number of shape units can be obtained, for example, by manual input or by identifying from the image of the classical building, and the present embodiment does not limit it.

[0110] The process of this rotation modeling of the present embodiment will be illustrated as follows:

[0111]

Example One: Octagonal Tower Modeling; 8 Repeated Shape Units

[0112] The modeling process of the octagonal tower, for example, a Tang-Song Pagoda, will be illustrated in combination with FIG. 8. It should be noted that the demonstration of FIG. 8 is only an example, and the modeling sequence in actual implementation is not limited thereto. For example, in the following modeling sequence, the base building shape of the entire octagonal tower is modeled first, and then the door and window, column and other building detail components are added. Alternatively, the base building shape and the building detail components can be modeled simultaneously, for example, the base building shape and the building detail components are both modeled when modeling the first shape part, and then the second shape part is modeled, and so on.

[0113] Firstly, the base can be modeled first, as shown in FIG. 8, a quadrilateral base with three steps can be modeled. And a repeated shape unit 51 is modeled on the base. At this time, the repeated shape unit 51 can be only the base building shape, that is, without door and window and other building detail components.

[0114] Then, the repeated shape unit 51 is rotated clockwise, and through the rotation, the first shape part is modeled, which includes 8 repeated shape units 51.

[0115] Then, on the basis of the first shape part, the repeated shape unit 52 located above the first shape part is continued to be modeled. The repeated shape unit 52 can also be temporarily referred to as only the base building shape. Of course, it can be understood that the repeated shape unit 52 modeled at this time can be missing some building detail components, such as no door and window, column; but as shown in FIG. 8, at this time it can already have a guardrail.

[0116] Thirdly, the repeated shape unit 52 is rotated, and the modeling of the second shape part is completed. At this time, the main structure of the first shape part and the second shape part has been built. On this basis, the roof is added.

[0117] Finally, some building detail components, such as door and window, column, etc., are added, and the modeling of the octagonal tower is completed.

[0118] As shown in FIG. 9, through the above modeling process, it can be known that the modeling process of the octagonal tower is a process of modeling repeated shape units and rotating the repeated shape units to gradually increase the height of the building. Of course, the direction of rotation is not limited in the present embodiment, and it can also be counterclockwise rotation.

[0119]

Example Two: Square Tower Modeling; 4 Repeated Shape Units

[0120] The modeling process of the square tower is illustrated in combination with FIG. 10. The illustration in FIG. 10 is merely an example, and the modeling sequence in actual implementation is not limited thereto.

[0121] The difference between the square tower and the octagonal tower described above is that the square tower can be without a base, and the square tower can also include a first shape part and a second shape part, the two shape parts are different in structure, and thus can be constructed respectively in modeling. In addition, the square tower can include slightly fewer architectural detail components, such as components such as railings and columns. The modeling flow is described as follows:

[0122] First, the first shape part can be modeled first, as shown in FIG. 10, a repeated shape unit included in the first shape part can be modeled, and the repeated shape unit is rotated clockwise, and the first shape part is modeled through rotation. The first shape part can include 4 repeated shape units.

[0123] Then, the second shape part is modeled on the basis of the first shape part. Similarly, a repeated shape unit included in the second shape part can be modeled, and the repeated shape unit is rotated clockwise, and the second shape part is modeled through rotation. The second shape part can include 4 repeated shape units. It can be understood that the repeated shape units included in the first shape part and the second shape part are different in shape structure, and the corresponding shape unit parameters are also different. Then, a roof can be added.

[0124] Finally, some architectural detail components, such as doorways, are added, and the modeling of the square tower is completed.

[0125] As shown in FIG. 10 and FIG. 11, through the above modeling flow, it can be known that the modeling process of the square tower is a process of modeling repeated shape units and rotating the repeated shape units to gradually increase the height of the building.

[0126] In addition, FIG. 12 also illustrates another modeling method of a classical building, which is also a rotation modeling. As can be seen from FIG. 12, the classical building also includes two different shape parts, a base is modeled first, and the first shape part is modeled on the base, and then the second shape part is modeled on the first shape part through rotation.

[0127] In step 206, a roof is added to the building body to obtain a building model of the classical building.

[0128] As shown in FIG. 8 and FIG. 10, after the building body is modeled, a roof can be added to the building body to finally obtain a building model of the classical building.

[0129] The roof can have various forms, as shown in FIG. 3A, and will not be described in detail.

[0130] The embodiment is not limited to determining the form of the roof added to the building body. For example, the form of the roof can be determined according to the building type of the classical building. The building type can be used to determine the form of the roof. Buildings of different building types can have different forms of roofs. Alternatively, the form of the roof can be determined according to the region where the building is located. Buildings in a region can have the same form of roof.

[0131] In addition, in other example implementations, if the roof of the building also has a common feature and can also be rotated, the roof can be modeled as a part of the building by using the corresponding form unit parameters of the roof, as described above. The repeated form units are constructed and rotated to model the roof, and will not be described in detail.

[0132] As described above, the form unit parameters corresponding to the building type are obtained according to the building type of the classical building, and the repeated form units are modeled based on the form unit parameters. Then, the repeated form units are rotated to model the building model of the classical building of the building type. This method is an automatic modeling method, which improves the modeling efficiency of the classical building. In addition, this method is universal. Classical buildings of the same type have common form structures. By setting the parameters corresponding to the common form structures and using the rotation modeling method, the building model of the classical building can be quickly constructed as long as the building type is determined, which improves the modeling speed.

[0133] As described above, the classical building model of the LOD4 level constructed by the modeling method described above can highly restore the real building in the real world and has a very realistic display effect. For example, the building model shown in FIGS. 1A to 1C.

[0134] In addition, in the map application scenario, to further improve the modeling efficiency and save the time and labor cost of the modeler, the parameters required for modeling the classical building can be prefabricated and bound with the map data.

[0135] For example, when the modeler selects a classical building in the map to be modeled, the modeler can confirm the building type of the classical building, and then call the form unit parameters corresponding to the building type of the classical building to automatically construct the repeated form units. The building body of the classical building is modeled by using the rotation modeling method, and then the roof is added to obtain the building model of the classical building.

[0136] Compared with the manual modeling manner, the automatic LOD4 modeling manner significantly improves the modeling efficiency.

[0137] FIG. 13 is a flowchart of a map rendering method provided by an example embodiment, in which a classical building in a map can be rendered into a building model of LOD4 level. As shown in FIG. 13, the method can include:

[0138] In step 1300, a map page in which a classical building to be modeled is shown.

[0139] In step 1302, a building model showing the classical building is rendered at a building position corresponding to the classical building on the map page, and the building model is obtained by the modeling method described in any embodiment of the present specification.

[0140] In the embodiment, the building in the map can be a building model of LOD4 level. For example, when a user opens a map application on a terminal, the classical building in the map application can be a building model constructed by the modeling method described in any embodiment of the present specification.

[0141] In other examples, in order to accelerate the map loading efficiency, the building model of LOD4 can be selectively displayed in some specific map application scenarios, or some specific buildings can be selectively displayed in the effect of LOD4. For example, if the user mainly focuses on the route in the map application scenario and does not focus on the specific building shape, a "square box" can be directly displayed to save the resources of the user terminal. For the map use scenario in which the user focuses on the shape of the building itself, the user can be shown the above building model.

[0142] FIG. 14 is a structural schematic diagram of a building modeling device provided by an example embodiment. As shown in FIG. 14, the device can include an information acquisition module 1401, a shape construction module 1402, and a rotation modeling module 1403.

[0143] The information acquisition module 1401 is configured to acquire, for a building to be modeled, a shape unit parameter corresponding to the building, the shape unit parameter being used to model a repeated shape unit in a shape structure of the building. The building to be modeled is a building having common features in the shape structure.

[0144] The shape construction module 1402 is configured to construct the repeated shape unit based on the shape unit parameter.

[0145] The rotation modeling module 1403 is configured to perform rotation modeling on the repeated shape unit according to the number of shape units of the building, to obtain a building model of the building, and the building model includes the repeated shape unit.

[0146] In one example, the information acquisition module 1401, when acquiring the shape unit parameters corresponding to the building to be modeled, includes: acquiring the building type of the building to be modeled; and acquiring the shape unit parameters corresponding to the building type according to the building type.

[0147] In one example, the rotation modeling module 1403, when performing rotation modeling on the repeated shape unit to obtain a building model of the building, includes: performing rotation modeling on the repeated shape unit to obtain a building body of the building; and adding a roof to the building body to obtain the building model of the building.

[0148] In one example, the shape construction module 1402, when constructing the repeated shape unit based on the shape unit parameters, includes: identifying the floor of the building according to the image of the building; determining the height of the building according to the floor; and constructing the repeated shape unit corresponding to the height based on the shape unit parameters and the height.

[0149] In one example, the shape construction module 1402 is further configured to: before constructing the repeated shape unit based on the shape unit parameters, acquire the base shape parameters corresponding to the building to be modeled, set a base of the building according to the base shape parameters; and construct the repeated shape unit on the base based on the shape unit parameters.

[0150] In one example, the shape construction module 1402, when setting the base of the building according to the base shape parameters, includes: adjusting the base plane shape of the building to a base shape defined by the base shape parameters, the base plane shape being identified according to the image of the building; and setting the base of the building corresponding to the base shape.

[0151] In one example, the shape unit parameters include: basic shape parameters and detail component parameters. The shape construction module 1402, when constructing the repeated shape unit based on the shape unit parameters, includes: modeling a basic building shape of the building according to the basic shape parameters; and setting a building detail component on the basic building shape according to the detail component parameters, the repeated shape unit including the basic building shape and the building detail component; and the building detail component including at least one of the following: a window, a door opening, a guardrail, and a column.

[0152] In one example, the shape structure of the building comprises a plurality of repeated shape units, any two repeated shape units corresponding to different shape unit parameters. The rotation modeling module 1403 comprises: obtaining the positional relationship between the first shape part and the second shape part included in the building; rotating the first shape part according to a group of repeated shape units corresponding to a group of shape unit parameters; and rotating the second shape part according to another group of repeated shape units corresponding to another group of shape unit parameters, wherein the first shape part and the second shape part meet the positional relationship.

[0153] FIG. 15 is a structural schematic diagram of another modeling device of a building according to an example embodiment. As shown in FIG. 15, the device can comprise a page display module 1501 and a model rendering module 1502.

[0154] The page display module 1501 is configured to display a map page on which a building to be modeled is located.

[0155] The model rendering module 1502 is configured to render and display a building model of the building at a building position corresponding to the building on the map page, wherein the building model is obtained by the method according to any one of the embodiments of the present specification.

[0156] The implementation process of the functions and roles of each module in the above device is specifically described in the implementation process of the corresponding steps in the above method, and will not be repeated here.

[0157] For the device embodiment, since it basically corresponds to the method embodiment, the related parts can be referred to the part of the method embodiment. The device embodiments described above are only schematic. The modules described as separate components can or can not be physically separate, and the components displayed as modules can or can not be physical modules. That is, they can be located in one place, or distributed on multiple network modules. According to actual needs, some or all of the modules can be selected to achieve the purpose of the scheme of the present specification. Those skilled in the art can understand and implement it without creative labor.

[0158] As shown in FIG. 16, FIG. 16 shows a hardware structure diagram of an electronic device in which the apparatus of the embodiments of the present specification is located, which can include a processor 1610, a memory 1620, an input / output interface 1630, a communication interface 1640, and a bus 1650. Among them, the processor 1610, the memory 1620, the input / output interface 1630, and the communication interface 1640 are connected through the bus 1650 for communication between each other inside the device.

[0159] The processor 1610 can be implemented in a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, etc., for executing related programs to implement the technical solutions provided by the embodiments of the present specification. The processor implements the above method by running executable instructions.

[0160] The memory 1620 for storing processor executable instructions can be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1620 can store an operating system and other application programs, when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the related program codes are stored in the memory 1620,

[0161] The input / output interface 1630 is used to connect the input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure), or can be externally connected to the device to provide corresponding functions. Among them, the input device can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device can include a display, a speaker, a vibrator, an indicator light, etc.

[0162] The communication interface 1640 is used to connect the communication module (not shown in the figure) to realize the communication interaction between the device and other devices. Among them, the communication module can realize communication through wired means (such as USB, network cable, etc.), or can realize communication through wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0163] The bus 1650 includes a channel for transmitting information between various components (such as the processor 1610, the memory 1620, the input / output interface 1630, and the communication interface 1640) of the device.

[0164] It should be noted that although the above device only shows the processor 1610, the memory 1620, the input / output interface 1630, the communication interface 1640 and the bus 1650, in the specific implementation process, the device can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only contain components necessary to implement the embodiments of the present specification, and does not necessarily contain all the components shown in the figure.

[0165] The embodiments of the present specification also provide a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the above method.

[0166] The computer readable medium includes permanent and non-permanent, removable and non-removable media, which can be realized by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information accessible by a computing device. According to the definition in this paper, computer readable medium does not include transitory computer readable medium, such as modulated data signal and carrier wave.

[0167] The embodiments of the present specification also provide a computer program, which is used to implement the method described in any embodiment of the present specification when the computer program is run.

[0168] It should also be noted that the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, product or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, product or device including the element.

[0169] The above describes particular embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than the order in which they are recited and still achieve desirable results. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve desirable results. In certain implementations, multitasking and parallel processing can be advantageous or possible.

[0170] The user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present disclosure are information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal.

[0171] The above only describes the preferred embodiments of one or more embodiments of the present specification, and does not limit one or more embodiments of the present specification. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of one or more embodiments of the present specification should be included in the protection scope of one or more embodiments of the present specification.

Claims

1. A method for modeling buildings, wherein, The method includes: For a building to be modeled, obtain the shape element parameters corresponding to the building. The shape element parameters are used to model the repeating shape elements in the shape structure of the building. The building to be modeled is a building that has common features in its shape structure. Based on the shape unit parameters, the repeating shape unit is constructed; Based on the number of shape units of the building, the repeated shape units are rotated and modeled to obtain the building model of the building. The building model includes the number of repeated shape units.

2. The method according to claim 1, wherein, For the building to be modeled, obtaining the shape element parameters corresponding to the building includes: For the building to be modeled, obtain the building type; Based on the building type, obtain the shape unit parameters corresponding to the building type.

3. The method according to claim 1, wherein, The step of rotating and modeling the repeating shape units to obtain the building model of the building includes: The building body of the building is obtained by performing rotational modeling on the repeating shape unit; A roof is added to the building body to obtain the building model.

4. The method according to claim 1, wherein, The construction of the repeating shape unit based on the shape unit parameters includes: Identify the floors of the building based on the image of the building; Determine the height of the building based on the number of floors; Based on the shape unit parameters and the height, a repeating shape unit corresponding to the height is constructed.

5. The method according to claim 1, wherein, Before constructing the repeating shape unit based on the shape unit parameters, the method further includes: Obtain the base shape parameters corresponding to the building to be modeled; Based on the shape parameters of the base, the base of the building is set; The construction of the repeating shape unit based on the shape unit parameters includes: On the base, the repeating shape unit is constructed based on the shape unit parameters.

6. The method according to claim 5, wherein, The step of setting the base of the building according to the shape parameters of the base includes: The base plan shape of the building is adjusted to the base shape defined by the base shape parameters, and the base plan shape is obtained based on the image recognition of the building; Set the base of the building corresponding to the shape of the base.

7. The method according to claim 1, wherein, The shape unit parameters include: basic shape parameters and detailed component parameters; The construction of the repeating shape unit based on the shape unit parameters includes: Based on the basic shape parameters, model the basic architectural shape of the building; On the basic building shape, architectural detail components are set according to the detailed component parameters. The repeating shape unit includes: the basic building shape and the architectural detail components. The architectural details include at least one of the following: windows, doorways, railings, and columns.

8. The method according to claim 1, wherein, The building's shape structure includes: multiple repeating shape units, where the shape unit parameters corresponding to any two repeating shape units are different; The step of rotating and modeling the repeating shape units based on the number of shape units of the building to obtain the building model includes: Obtain the positional relationship between the first and second shape parts of the building; The first shape part is obtained by rotating the repeating shape unit corresponding to a set of shape unit parameters. Based on the repeating shape unit corresponding to another set of shape unit parameters, a second shape part is obtained by rotation, and the first shape part and the second shape part conform to the positional relationship described above.

9. A map rendering method, wherein, The method includes: The map page displaying the location of the building to be modeled; On the map page, at the location corresponding to the building, a building model of the building is rendered and displayed. The building model is obtained by modeling using the method described in any one of claims 1 to 8.

10. A modeling device for a building, wherein, The device includes: The information acquisition module is used to acquire the shape unit parameters corresponding to the building to be modeled. The shape unit parameters are used to model the repeating shape units in the shape structure of the building. The building to be modeled is a building that has common features in its shape structure. A shape construction module is used to construct the repeating shape unit based on the shape unit parameters; The rotation modeling module is used to perform rotation modeling on the repeating shape units according to the number of shape units of the building, so as to obtain the building model of the building. The building model includes the number of repeating shape units.

11. A map rendering apparatus, wherein, The device includes: The page display module is used to display the map page where the building to be modeled is located; The model rendering module is used to render and display a building model of the building at the building location corresponding to the building on the map page. The building model is obtained by modeling using the method described in any one of claims 1 to 8.

12. An electronic device, wherein, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1 to 9 by executing the executable instructions.

13. A computer-readable storage medium having stored thereon computer instructions that, when executed by a processor, implement the method as described in any one of claims 1 to 9.

14. A computer program product comprising computer instructions that, when executed by a processor, implement the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Batch type refined three-dimensional modeling method of building frame model

    CN106600680A

  • Map generation method and system, and computer device

    CN108922373A

  • A building three-dimensional semantic modeling method based on CityGML expansion

    CN109918751A

  • Rotary modeling method and device based on geometric recognition

    CN115359181A

  • Building modeling method, map rendering method, device and equipment

    CN118967956A