Building modeling method, map rendering method, device and equipment
By obtaining the body unit parameters and rotation modeling technology of the building, the problem of low modeling efficiency of existing buildings is solved, efficient automated modeling and authenticity improvement are achieved, and it is suitable for a variety of building types.
Patent Information
- Application Number
- CN202410851763.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-15
AI Technical Summary
The existing building modeling methods are inefficient, and ordinary square box models cannot effectively distinguish and display the characteristics of different buildings, and most modeling methods rely on manual construction, resulting in low modeling efficiency.
By obtaining the body unit parameters of the building, repetitive body unit are constructed, and building models are generated using rotation modeling technology to improve modeling efficiency and the authenticity of the model.
It realizes efficient and automated modeling of building models, improves modeling efficiency and the authenticity of the model, and can quickly build building models with common shape structures, suitable for various types of buildings, especially classical buildings.
Smart Images

Figure CN118967956A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present specification relate to the field of computer application technology, and in particular, to a building modeling method, map rendering method, device and equipment. Background Art
[0002] When modeling buildings in the real world, some scenes simply model the buildings as square boxes for presentation. For example, in a map application, buildings can be presented in 3D mode, and in 3D mode, buildings in a map application are generally presented in "square boxes" of different sizes. However, buildings in the real world have various shapes and large differences in characteristics, such as shopping malls, office buildings, residential buildings, classical buildings, etc. Ordinary square box buildings cannot help users distinguish different buildings on the map and obtain more information.
[0003] In addition, even if there are some scenes where buildings are modeled as slightly complex building forms, most modeling methods, when modeling such detailed modeling objects, are constructed through manual modeling methods, for example, a 3D modeling designer uses 3D modeling software tools to construct a slightly complex 3D model of a building, but this modeling method has low modeling efficiency. Summary of the invention
[0004] In view of this, one or more embodiments of the present specification provide a building modeling method, a map rendering method, an apparatus and a device to enhance the authenticity of the building model and improve the modeling efficiency.
[0005] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:
[0006] According to a first aspect of an embodiment of this specification, a method for modeling a building is provided, the method comprising:
[0007] For a building to be modeled, obtaining shape unit parameters corresponding to the building, wherein the shape unit parameters are used to model repeated shape units in the shape structure of the building; the building to be modeled is a building having common characteristics in shape structure;
[0008] Based on the body unit parameters, construct the repeated body unit;
[0009] According to the number of shape units of the building, the repeated shape units are rotated and modeled to obtain a building model of the building, wherein the building model includes: the number of repeated shape units.
[0010] According to a second aspect of an embodiment of this specification, a map rendering method is provided, the method comprising:
[0011] Display the map page where the building to be modeled is located;
[0012] At the building position corresponding to the building on the map page, a building model of the building is rendered and displayed, and the building model is modeled by the method described in any embodiment of the present specification.
[0013] According to a third aspect of an embodiment of this specification, a building modeling device is provided, the device comprising:
[0014] An information acquisition module is used to acquire shape unit parameters corresponding to a building to be modeled, wherein the shape unit parameters are used to model repeated shape units in the shape structure of the building; the building to be modeled is a building having common characteristics in shape structure;
[0015] A shape construction module, used for constructing the repeated shape unit based on the shape unit parameters;
[0016] The rotation modeling module is used to perform rotation modeling on the repeated shape units according to the number of shape units of the building to obtain a building model of the building, wherein the building model includes the number of repeated shape units.
[0017] According to a fourth aspect of an embodiment of this specification, a map rendering device is provided, the device comprising:
[0018] A page display module is used to display the map page where the building to be modeled is located;
[0019] The model rendering module is used to render and display the building model of the building at the building location corresponding to the building on the map page, and the building model is modeled by the method described in any embodiment of this specification.
[0020] According to a fifth aspect of the embodiments of this specification, an electronic device is provided, including:
[0021] processor;
[0022] a memory for storing processor-executable instructions;
[0023] The processor implements the method described in any embodiment of this specification by running the executable instructions.
[0024] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the method described in any embodiment of this specification is implemented.
[0025] The building modeling method, map rendering method, device and equipment of the embodiments of this specification obtain the shape unit parameters of the building to be modeled, and model repeated shape units based on the shape unit parameters, and then rotate the repeated shape units to model the building model of the building. This method is an automated modeling method, which improves the modeling efficiency of the building; and this method is universal. Buildings have common shape structures. By setting the parameters corresponding to the common shape structures and combining them with the rotation modeling method, the building model of the building can be quickly constructed, thereby improving the modeling speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in one or more embodiments of the present disclosure or related technologies, the drawings required for use in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0027] Figure 1A It is a schematic diagram of a modeling structure of a LOD4 building provided by an exemplary embodiment.
[0028] Figure 1B It is a schematic diagram of another LOD4 building modeling structure provided by an exemplary embodiment.
[0029] Figure 1C An exemplary embodiment provides an LOD4 model of a classical building.
[0030] Figure 1D It is a flowchart of a building modeling method provided by an exemplary embodiment.
[0031] Figure 2 It is a flowchart of a building modeling method provided by an exemplary embodiment.
[0032] Figure 3A It is a schematic diagram of the roof of a classical building provided by an exemplary embodiment.
[0033] Figure 3B It is a schematic diagram of the ridge of a classical building provided by an exemplary embodiment.
[0034] Figure 4 It is a schematic diagram of a brick tower of the Tang Dynasty provided by an exemplary embodiment.
[0035] Figure 5 It is a schematic diagram of a Tang and Song Dynasty pavilion tower provided by an exemplary embodiment.
[0036] Figure 6 It is a schematic diagram of two basic building forms provided by an exemplary embodiment.
[0037] Figure 7 It is a schematic structural diagram of a building model provided by an exemplary embodiment.
[0038] Figure 8 It is a schematic diagram of the modeling process of an octagonal tower provided by an exemplary embodiment.
[0039] Fig. 9 It is a schematic diagram of modeling an octagonal tower provided by an exemplary embodiment.
[0040] Fig.10 It is a schematic diagram of the modeling process of a four-corner tower provided by an exemplary embodiment.
[0041] Fig.11 It is a schematic diagram of modeling a four-corner tower provided by an exemplary embodiment.
[0042] Fig.12 This is another modeling method of classical buildings provided by an exemplary embodiment.
[0043] Fig.13 It is a flowchart of a map rendering method provided by an exemplary embodiment.
[0044] Fig.14 It is a schematic structural diagram of a building modeling device provided by an exemplary embodiment.
[0045] Fig.15 It is a schematic structural diagram of another building modeling device provided by an exemplary embodiment.
[0046] Fig.16 is a schematic diagram of an electronic device provided by an exemplary embodiment. DETAILED DESCRIPTION
[0047] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
[0048] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.
[0049] The embodiment of this specification provides a modeling method for a building. When modeling a building, the modeling method is based on the fact that some buildings can abstract common shape and structure characteristics. For example, a certain type of building is a square pavilion-style building in shape and structure. Moreover, not only can it have common shape and structure characteristics, but the building itself of this type of building is also very distinctive. The building body is composed of multiple repeated shape units. As long as the repeated shape unit is constructed, the model of the entire building can be quickly constructed by rotation. The modeling method of this embodiment implemented based on the above two points can improve the modeling efficiency of the building.
[0050] The buildings that the method is applicable to modeling may be classical buildings, and the classical buildings may include, but are not limited to, Han Dynasty buildings, Tang Dynasty buildings, Ming Dynasty buildings, Huizhou-style buildings, etc. Moreover, many of the classical buildings are tower-style buildings, such as Tang and Song Dynasty pavilion towers, Tibetan Buddhist towers, stone brick towers, Vajra throne towers, dense eaves towers, flower towers, etc.
[0051] In the following description of the modeling method, the modeling of classical buildings will be described as an example. However, it can be understood that the buildings to which the method of the embodiment of this specification is applied are not limited to classical buildings, but can also be other buildings. As long as the buildings can abstract the common morphological structural characteristics and model them by rotating repeated shape units as described above, the building modeling method of this embodiment can be applied.
[0052] In the method of the embodiment of this specification, the building modeling can be performed at the LOD4 (Level of Detail) level, that is, the constructed building model will have a refined architectural structure, highly restore the external form structure of the building in the real world, and enhance the authenticity of the building model. For example, for a classical building obtained by LOD4 modeling, it can include detailed structural details, such as doors, windows, guardrails, columns, bases, steps, high-precision roofs, etc.
[0053] The LOD4 building modeling highly restores the 3D effect of real-world buildings, so that users who view the building model will have a better viewing experience, especially when the building is modeled at the LOD4 level in the map application, it can play a greater role. The following lists the uses of the LOD4 building model in several maps:
[0054] 1) Auxiliary map positioning:
[0055] Users sometimes use maps to determine their current location. For example, due to errors in positioning sensors, the location displayed by the map application does not match the user's actual location. In this case, the user needs to use the building models on the map to assist in determining their location. If the building models on the map are all in the form of "square boxes", users cannot match the building models on the map with the real buildings in the real world, making it difficult to determine their current location.
[0056] The LOD4 building model can highly restore the external shape and structure of buildings in the real world, allowing users to match the building models in the map with the buildings in the real world, making it easier for users to determine their own location and improving their map experience.
[0057] 2) Help with pre-trip decision-making, improve map reading experience, and obtain map information more accurately:
[0058] Because the LOD4 building model highly restores the 3D effect of the real building, when users use the map, they can obtain map information more accurately, and will have an immersive experience when browsing the map. For example, users can see the shape and structure of the building more intuitively and accurately. The shape and structure of the building model in the map is realistically restored to the shape and structure of the building in the real world, so that users can see the shape of the building on the map, and thus assist their travel decisions based on the building information.
[0059] For example, users may need to use building information on both sides of the road to decide whether to set up a detection site at that location, or users may use a map to determine whether a certain building is where they want to go. These can all be done through maps, which greatly facilitates users and improves their map experience.
[0060] For another example, for scenic spots in the map, LOD4 can be used to model the classical buildings in the scenic spots, so that users can visit the scenic spots through the map. The models of classical buildings in the scenic spots seen in the map are highly similar to the real buildings in the real world, which enhances the user's real experience of visiting scenic spots and helps users make pre-travel decisions. For example, before traveling, users can use the map to pre-visit the scenic spots they want to visit and the classical buildings in the scenic spots. If they like them, they can go to the scenic spots offline to watch them, which helps users make accurate pre-travel decisions and provides users with relatively rich information.
[0061] Can be combined Figure 1A and Figure 1B As shown, Figure 1A This is a schematic diagram of a modeling structure of a LOD4 building provided by an exemplary embodiment. Figure 1B It is a schematic diagram of another LOD4 building modeling structure provided by an exemplary embodiment.
[0062] Specifically, Figure 1A As shown, the real-world classical buildings can be modeled to obtain a building model of the classical building at LOD4. Figure 1B Several types of classical building models are shown, such as Hui-style buildings, Tang and Song Dynasty towers, and Tibetan Buddhist pagodas. Other types of classical buildings are not listed. Figure 1C The LOD4 models of the classical buildings in the Confucius Temple scenic area in Nanjing are also shown. It can be seen that the models of these classical buildings have realistically restored the real buildings in terms of architectural form, providing a good scenic experience for users visiting the scenic area.
[0063] However, it is understandable that the building modeling method of the embodiment of this specification can not only be applied to LOD4 modeling of buildings in map applications, but can also be applied to building modeling in other scenarios.
[0064] It should also be noted that the building modeling method of the embodiment of this specification not only models the building at the LOD level, but also improves the modeling efficiency to achieve fast and precise LOD4 building modeling. In order to improve the modeling efficiency, the modeling method provides a set of automated modeling solutions. Figure 1D is a flowchart of a building modeling method provided by an exemplary embodiment, such as Figure 1D As shown, the following processing may be included:
[0065] In step 100, for a building to be modeled, 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 buildings to be modeled are buildings that have common characteristics in terms of shape and structure.
[0068] For example, brick tower buildings in the Tang Dynasty usually have some common characteristics in their shape and structure. These buildings are usually square pavilion-style structures. From the perspective of architectural details, Tang and Song pavilion towers usually have guardrails, columns and windows, and the guardrails, columns, doors and windows are all symmetrically arranged.
[0069] A repeating shape unit refers to a repeated shape part contained in a building. For example, a brick tower in the Tang Dynasty is a square tower, and the structures of its four sides can be said to be the same, so the shape structure presented on one side can be called a repeating shape unit. The shape unit parameters are the parameters used to construct the repeating 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 units are rotated and 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 shape units is repeated shape units. For example, a building has 8 repeated shape units, and 8 is the number of shape units. Moreover, these 8 repeated shape units are arranged in a circular 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, it can be rotated clockwise for one circle, so as to obtain 8 repeated shape units in this circle.
[0073] The building modeling method of the present embodiment obtains the shape unit parameters of the building to be modeled, models repeated shape units based on the shape unit parameters, and then rotates the repeated shape units to model the building model of the building. This method is an automated modeling method, which improves the modeling efficiency of the building. Moreover, this method is universal. Buildings of the same type have a common shape structure. By setting the parameters corresponding to the common shape structure and combining it with the rotation modeling method, the building model of the building can be quickly constructed, thereby improving the modeling speed.
[0074] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a building modeling method provided by an exemplary embodiment. Figure 2As shown, the method may include the following processing. It should be noted that this embodiment takes the modeling of classical buildings as an example, and the step numbers used in the following description do not limit the execution order of the various steps in the modeling method of the embodiment of this specification.
[0075] In step 200, the building type of the classical building to be modeled is obtained, and each building type is used to represent the classification of the same type of classical buildings with common characteristics in shape and structure.
[0076] In this embodiment, the classical buildings to be modeled may include various types, such as but not limited to: Tang and Song Dynasty pavilion towers, Tibetan Buddhist pagodas, stone brick towers, Vajra throne towers, dense eaves towers, flower towers, Hui-style buildings, etc.
[0077] Classical buildings of different architectural types may have different characteristics in form and structure. For example, brick towers in the Tang Dynasty are generally square pavilions, and the representative building is the Big Wild Goose Pagoda. The characteristics of Huizhou architecture are generally white walls, green tiles, and horse-head walls, and the representative building is Anhui architecture. The characteristics of Han Dynasty architecture are generally double-ridged buildings with main cantilever angles, and the representative buildings can be buildings in Jiangsu and Zhejiang. Other types are not listed. In short, each type of classical architecture has some common characteristics in form and structure. Based on this, classical buildings can be classified in this embodiment. This embodiment does not limit the way of classifying buildings, as long as most of the classical buildings are covered as much as possible through appropriate classification methods.
[0078] Exemplarily, as mentioned above, the architectural types of classical architecture may include, but are not limited to: Tang and Song dynasty pavilion towers, Tibetan Buddhist pagodas, stone brick towers, and the like.
[0079] In addition, for a certain type of classical building, there may be the following common characteristics, the following are just examples:
[0080] 1) A classical building of a certain architectural type may have a corresponding roof shape and a corresponding tower ridge.
[0081] For example, a Tang and Song dynasty tower may have an octagonal top, and a Han dynasty building may have a raised corner ridge.
[0082] The roof of a classical building can have a variety of roof forms, for example, it can be combined with Figure 3A As shown, examples are given of round tower tops, four-sided tower tops, four-flat spire tower tops, hexagonal tower tops, octagonal tower tops, single and double hexagonal tower tops, etc. The corresponding roof form can be set based on the building type of the classical building.
[0083] Classical buildings also include ridges, which can also take many forms, for example, they can be combined with Figure 3BAs shown, examples are provided of a canted corner tower ridge, a flat corner tower ridge, a pointed corner tower ridge, etc. The corresponding tower ridge form can be set based on the building type of the classical building.
[0084] 2) Classical buildings of a certain architectural type have commonalities in basic architectural form and architectural detail components:
[0085] The architectural detail components may include windows, door openings, guardrails, columns, bases, steps, etc. The basic architectural form may be the building part other than the architectural detail components such as door openings, guardrails, columns, etc.
[0086] For example, from the perspective of basic architectural form, Hui-style buildings are all wall-and-tile structures, while Tang Dynasty brick pagodas are usually square pavilion-style structures. From the perspective of architectural detail components, Tang and Song Dynasty pavilions usually have guardrails, columns, and windows, and the guardrails, columns, doors, and windows are all symmetrically arranged. Tang Dynasty brick pagodas and Tibetan Buddhist pagodas generally have no guardrails or columns.
[0087] It is understandable that the above-mentioned shape and structure characteristics are only for illustration, and are not limited thereto in actual implementation, and can be determined according to actual statistical results. In short, buildings belonging to the same building type usually have some common characteristics in shape and structure.
[0088] The above-mentioned classification method of classical architecture and the method of obtaining the common characteristics of the building's shape and structure are not limited in this embodiment. For example, various building types of classical architecture classification and the common characteristics of the building's shape and structure can be finally obtained through various methods such as image recognition, model extraction, and manual summary.
[0089] In this step, the architectural type of the classical building to be modeled can be obtained, for example, it is determined whether the architectural type of the classical building is a Tang or Song dynasty pavilion tower or a Tibetan Buddhist pagoda.
[0090] There are multiple ways to obtain the architectural type of the classical building.
[0091] For example, the architectural type to which a classical building belongs can be bound in advance.
[0092] For another example, the architectural type of the classical building can be identified based on the image of the classical building. In step 202, shape unit parameters corresponding to the architectural type are obtained based on the architectural type, and the shape unit parameters are used to model the repeated shape units in the shape structure of the classical building, and the repeated shape units are constructed based on the shape unit parameters.
[0093] In this step, corresponding shape unit parameters can be obtained according to the building type of the classical building to be modeled, and the shape unit parameters are used to model the repeated shape units in the shape structure of the classical building.
[0094] In addition, it should be noted that this embodiment obtains the shape unit parameters corresponding to the building type based on the building type. However, the actual implementation is not limited to this, and the shape unit parameters corresponding to the building can also be obtained according to other attributes corresponding to the building. For example, the buildings in a certain area have a common shape structure according to the area where the building is located; for another example, the buildings in a certain building age have their corresponding shape structures according to the building age.
[0095] Among them, the shape structure of classical buildings usually has the following characteristics: Classical buildings can include multiple "repeating shape units". For example, Figure 4 Take the Tang Dynasty brick tower shown in the figure as an example: Figure 4 As shown, the brick tower of the Tang Dynasty is a square tower, and the structures of its four sides can be said to be the same, for example, Figure 4 The surface A and surface B in the figure have the same structure, both have 7 layers, and the structure of each layer is the same. For example, there is a door opening in the middle of each layer, and the structure of each layer is the same. In this embodiment, the shape structure presented by a surface such as surface A or surface B can be called a "repeating shape unit". Of course, it can be understood that Figure 4 The Tang Dynasty brick tower has two other faces, which are not shown in the figure. These other two faces have the same structure as faces A and B, that is, their appearance is the same.
[0096] Please continue to see Figure 4 As shown in the figure, the brick tower of the Tang Dynasty consists of four repeated shape units, but the shape structures of these four repeated shape units are the same, so they correspond to one set of shape unit parameters. Figure 4 The shape unit parameters of the face A or face B are set to model the shape structure of the face A or face B. It should be noted that in this step, only one of the repeated shape units is modeled, for example, only the shape structure of face A is modeled.
[0097] As described above, the four faces of the brick tower of the Tang Dynasty correspond to four repeated shape units, and since the shape structures of the four repeated shape units are the same, they correspond to one set of shape unit parameters. In another example, the multiple repeated shape units included in the classical building can be repeated shape units with different shape structures, so the different repeated shape units can correspond to different shape unit parameters.
[0098] For example, see Figure 5 For example, Figure 5 The figure shows a Tang and Song Dynasty pagoda. As can be seen from the figure, the first and second shapes of the pagoda are different. The first shape is obviously wider and has a larger area than the second shape. The Tang and Song Dynasty pagoda is an octagonal pagoda with eight sides. Figure 5 As shown, the portion corresponding to each edge is called a repeating shape unit. For example, the first shape portion includes 8 repeating shape units 51, and the repeating shape units 51 may include door openings, steps, windows, tower ridges, etc. The second shape portion includes 8 repeating shape units 52, and the repeating shape units 52 may include door openings, windows, tower ridges, guardrails, columns, etc.
[0099] Repeating shape unit 51 corresponds to one set of shape unit parameters, and repeating shape unit 52 corresponds to another set of shape unit parameters. Since the repeating shape unit 51 and the repeating shape unit 52 are different in shape structure (for example, different areas, whether there are guardrails and columns), the shape unit parameters corresponding to the two repeating shape units are also different.
[0100] In this step, the repeating shape unit 51 can be modeled according to the shape unit parameters corresponding to the repeating shape unit 51; similarly, the repeating shape unit 52 can be modeled according to the shape unit parameters corresponding to the repeating shape unit 52.
[0101] In addition, from Figure 5 It can also be seen that the repeated shape units modeled based on shape unit parameters can include basic architectural shapes and architectural detail components. Among them, architectural detail components can include the following components: windows, door openings, guardrails, columns, etc., and the parts outside these architectural detail components are called basic architectural shapes. Correspondingly, shape unit parameters can include: basic shape parameters and detail component parameters. Specifically, when constructing repeated shape units, the basic architectural shape of the classical building can be modeled according to the basic shape parameters; and on the basic architectural shape, the architectural detail components can be set according to the detail component parameters.
[0102] For example, Figure 5 Taking the repeated shape unit 51 in the Tang and Song Dynasty pavilion tower as an example, the basic architectural shape of the repeated shape unit 51 can be modeled according to the basic shape parameters. Figure 6 As shown, Figure 6 Two basic building shapes are shown. You can see that there are no doors or windows on the basic building shapes. On the basic building shapes, set the building detail components according to the detail component parameters. For example, Figure 5 In the game, architectural detail components such as doors, windows, and stairs are set up.
[0103] In addition, for classical buildings belonging to the same type of building, even if the general shape structure is similar, the heights of different buildings may be different. Therefore, when modeling repeated shape units, it is possible to construct according to the height of the classical buildings and model the repeated shape units corresponding to the height.
[0104] For example, in modeling Figure 5 When it comes to the Tang and Song Dynasty pavilions and towers, or the aforementioned Tang Dynasty brick towers, or Hui-style buildings, etc., the floors of the classical buildings can be identified based on the images of the classical buildings; the height of the classical buildings can be determined based on the floors; and the repeated shape units corresponding to the heights can be constructed based on the shape unit parameters. For example, the floors of the classical buildings can be determined first, combined with the height of each floor of the classical buildings, and finally the height of the classical buildings can be obtained by multiplying the floors by the height of each floor. For the height of each floor of the classical buildings, the value can be pre-set or determined based on the building type or experience. Exemplary, for Figure 5 In the Tang and Song Dynasty pavilion tower shown in the figure, the heights of the first and second body parts are different. The heights of the first and second body parts of the classical buildings in the real world can be combined to model the heights of these two body parts in the Tang and Song Dynasty pavilion tower model.
[0105] As another example, some classical buildings have bases, so you can model the bases before modeling the repeating units of the classical buildings. Figure 7 As shown in the figure, the classical building has a base, and the first shape unit and the second shape unit are all 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, and the base of the classical building can be modeled according to the base shape parameters. Then, on the base, the repeated shape units are constructed based on the shape unit parameters. Among them, the corresponding base shapes of classical buildings of different building types can be different. For example, the base can be modeled based on the base shape parameters corresponding to the building type. Among them, the base shape parameters can be used to limit the base shape, the number of steps of the base, the step setting parameters, etc.
[0106] As described above, it is precisely because different base shape parameters can be set for classical buildings of different architectural types that it is no longer necessary to rely on the actual base plane shape polygon of the classical building. That is, even if the base plane shape polygon of the classical building is identified based on the image of the classical building, it can be adjusted to the base shape defined by the base shape parameters and modeled into the base of the classical building corresponding to the base shape. For example, a classical building in the real world has a base plane shape polygon that is a circle, but if it is determined that the base is a square when modeling based on the architectural type of the classical building, then the circle can be changed to a square and a square base can be modeled. 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 rotated and modeled according to the number of shape units of the classical building to obtain the building body of the classical building, wherein the building body includes: the number of repeated shape units.
[0108] Because classical buildings include multiple repeating shape units, in this step, the repeating shape units can be rotated and modeled to obtain N repeating shape units, where N is a natural number greater than or equal to 2. For example, the pavilion tower of the Tang and Song dynasties includes eight repeating shape units, so 8 repeating shape units can be rotated and modeled. In addition, as mentioned above, for the case where the pavilion tower of the Tang and Song dynasties 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, wherein the positional relationship can be used to indicate that the first shape part is below and the second shape part is located 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 obtained by rotating modeling according to a repeating shape unit, and then, on the basis of the first shape part, the second shape part can be obtained by rotating modeling according to another repeating shape unit. For another example, the first shape part and the second shape part can be rotated and modeled simultaneously based on the two repeated shape units, as long as the positional relationship of the two shape parts during rotation modeling meets the requirement of "the first shape part is below and the second shape part is above it".
[0109] In this step, the number of shape units is the number of units such as 8 repeated shape units or 4 repeated shape units. The number of shape units can be obtained, for example, by manual input or by image recognition of classical buildings, which is not limited in this embodiment.
[0110] The following is an example of the rotation modeling process of this embodiment:
[0111] [Example 1: Modeling an octagonal tower; 8 repeating shape units]
[0112] Combination Figure 8 The modeling process of an octagonal tower is illustrated in FIG. 1 , which is a Tang and Song Dynasty pavilion tower. However, it should be noted that Figure 8 The demonstration is only an example, and the modeling order in actual implementation is not limited to this. For example, in the following modeling order, the basic architectural form of the entire octagonal tower is modeled first, and then architectural detail components such as doors, windows, and columns are added; optionally, it can also be changed to modeling the basic architectural form and architectural detail components at the same time, for example, when modeling the first form part, its basic architectural form and architectural detail components are modeled, and then the second form part is modeled, and so on.
[0113] First, you can model the base, such as Figure 8 As shown, a square base with three steps can be modeled, and a repeating shape unit 51 can be modeled on the base. At this time, the repeating shape unit 51 can only have the basic building shape, that is, without building detail components such as doors and windows.
[0114] Next, the repeated shape unit 51 is rotated clockwise to model a first shape part, which includes 8 repeated shape units 51.
[0115] Then, based on the first shape part, a repeating shape unit 52 is modeled above the first shape part. The repeating shape unit 52 can also be temporarily referred to as only a basic building shape. Of course, it can be understood that the repeating shape unit 52 modeled at this time may lack some architectural detail components, such as doors, windows, and columns; Figure 8 As shown, at this time, the guardrail may already be provided.
[0116] Again, the above-mentioned repeated shape unit 52 is rotated to complete the modeling of the second shape part. 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, add some architectural details, such as doors, windows, columns, etc., and the octagonal tower modeling is completed.
[0118] like Fig. 9 As shown, through the above modeling process, it can be known that the modeling process of the octagonal tower is a process of gradually increasing the height of the building by modeling a repeated shape unit and rotating the repeated shape unit. Of course, the rotation direction is not limited in this embodiment, and it can also be counterclockwise rotation.
[0119] [Example 2: Modeling a four-corner tower; 4 repeating shape units]
[0120] Combination Fig.10 To illustrate the modeling process of the four-corner tower, similarly, the Fig.10 The demonstration is only an example, and the modeling order in actual implementation is not limited to this.
[0121] The difference between the four-corner tower and the octagonal tower described above is that the four-corner tower may not have a base, and the four-corner tower may also include a first body part and a second body part. The structures of these two body parts are different, so they can be constructed separately during modeling. In addition, the four-corner tower may include slightly fewer architectural detail components, for example, the four-corner tower does not have components such as guardrails and columns. The modeling process is as follows:
[0122] First, you can model the first body part, such as Fig.10 As shown, a repeated shape unit included in a first shape part can be modeled, and the repeated shape unit is rotated clockwise to model the first shape part. The first shape part can include 4 repeated shape units.
[0123] Then, based on the first shape part, continue to model the second shape part. Similarly, a repeating shape unit included in the second shape part can be modeled, and the repeating shape unit can be rotated clockwise to model the second shape part through rotation. The second shape part can include 4 repeating shape units. It can be understood that the repeating shape units included in the first shape part and the second shape part are different in shape structure, and their corresponding shape unit parameters are also different. Then, the roof can be added.
[0124] Finally, add some architectural details, such as door openings, and the modeling of the four-corner tower is completed.
[0125] like Fig.10 and Fig.11 As shown, through the above modeling process, it can be seen that the modeling process of the four-corner tower is a process of gradually increasing the height of the building by modeling repeated shape units and rotating the repeated shape units.
[0126] also, Fig.12 Another way of modeling a classical building is also shown, which is also rotational modeling. Fig.12 It can also be seen that the classical modeling object also includes two different body parts. The base is modeled first, and then the first body part is modeled on the base. Then, the second body part is modeled on the first body part by rotation.
[0127] In step 206, a roof is added to the building body to obtain a building model of the classical building.
[0128] like Figure 8 and Fig.10 As shown, after modeling the building body, a roof can be added to the building body to finally obtain a building model of a classical building.
[0129] Among them, the roof can have many forms, which can be seen in Figure 3A The above is a hint and no further details are given.
[0130] This embodiment does not limit the method for determining what type of roof to add to the building body. For example, the roof shape of the roof can be determined according to the architectural type of the classical building. The type of roof to be added can be determined based on the building type, and buildings of different architectural types can have roofs of different shapes; or, the roof shape can also be determined based on the area where the building is located, and buildings in a certain area can all have roofs of the same shape.
[0131] In addition, in other example implementations, if the roof of the building also has a shape structure with common characteristics and can also rotate, then as described above, it can be used as a shape part of the building, and repeated shape units can be constructed and rotated to model the roof based on the shape unit parameters corresponding to this part of the roof, which will not be described in detail.
[0132] As described above, by obtaining the shape unit parameters corresponding to the building type according to the building type of the classical building, and modeling repeated shape units based on the shape unit parameters, and then rotating the repeated shape units to model the building model of the classical building of this building type, this method is an automated modeling method, which improves the modeling efficiency of classical buildings; and this method is universal, and classical buildings of the same type have a common shape structure. By setting the parameters corresponding to the common shape structure and combining it with the rotation modeling method, as long as the building type is determined, the building model of the classical building can be quickly constructed, thereby improving the modeling speed.
[0133] As mentioned above, the LOD4 classical building model constructed by the above modeling method can highly restore the real buildings in the real world, and the display effect is very realistic. Figures 1A to 1C Example building model.
[0134] In addition, in map application scenarios, when modeling classical buildings in the map, in order to further improve the efficiency of modeling and save the time and labor costs of modelers, the parameters required for modeling the classical buildings to be modeled can be prefabricated and bound to the map data.
[0135] For example, when the modeler chooses to model a classical building in the map, he can automatically construct repeated shape units by calling the shape unit parameters corresponding to the building type of the classical building based on the assistance of the modeler in confirming the building type of the classical building. He can also model the building body of the classical building through rotation modeling, and then add a roof to obtain the building model of the classical building.
[0136] The above automated LOD4 modeling method significantly improves modeling efficiency compared to manual modeling.
[0137] Fig.13 FIG. 1 is a flowchart of a map rendering method provided by an exemplary embodiment, in which the classical buildings in the map can be rendered into LOD4 level building models. Fig.13 As shown, the method may include:
[0138] In step 1300, a map page where the classical building to be modeled is located is displayed.
[0139] In step 1302, at the building location corresponding to the classical building on the map page, a building model of the classical building is rendered and displayed, and the building model is obtained by the modeling method described in any embodiment of this specification.
[0140] In this embodiment, the buildings in the map can be building models at the LOD4 level. For example, when a user opens a map application on a terminal, the classical buildings in the map application can be building models constructed using the modeling method described in any embodiment of this specification.
[0141] In other examples, in order to speed up map loading efficiency, LOD4 building models can be selectively displayed in some specific map application scenarios, or LOD4 effects can be selectively displayed for some specific buildings. For example, if in the map application scenario, the user is mainly concerned about the route and not the specific building form, you can choose to directly display the "square box" to save user terminal resources. For map usage scenarios where users are concerned about the form of the building itself, the above-mentioned building model can be displayed to the user.
[0142] Fig.14 is a schematic diagram of a structure of a building modeling device provided by an exemplary embodiment. Fig.14 As shown, the device may include: an information acquisition module 1401, a body construction module 1402 and a rotation modeling module 1403.
[0143] The information acquisition module 1401 is used to acquire shape unit parameters corresponding to the building to be modeled, wherein the shape unit parameters are used to model the repeated shape units in the shape structure of the building; the building to be modeled is a building having common characteristics in shape structure.
[0144] The shape construction module 1402 is used to construct the repeated shape unit based on the shape unit parameters.
[0145] The rotation modeling module 1403 is used to perform rotation modeling on the repeated shape units according to the number of shape units of the building to obtain a building model of the building, wherein the building model includes: the number of repeated shape units.
[0146] In one example, the information acquisition module 1401, when used to obtain shape unit parameters corresponding to a building to be modeled, includes: obtaining the building type of the building to be modeled; and obtaining the shape unit parameters corresponding to the building type based on the building type.
[0147] In one example, the rotation modeling module 1403, when used to rotationally model the repeating shape units to obtain the building model of the building, includes: rotationally modeling the repeating shape units to obtain the building body of the building; 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 used to construct the repeating shape unit based on the shape unit parameters, includes: identifying the floors of the building according to the image of the building; determining the height of the building according to the floors; and constructing the repeating 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 also used to: before constructing the repeated shape unit based on the shape unit parameters, obtain the base shape parameters corresponding to the building to be modeled, and set the base of the building according to the base shape parameters; on the base, construct the repeated shape unit based on the shape unit parameters.
[0150] In one example, the shape construction module 1402, when used to set the base of the building according to the base shape parameters, includes: adjusting the plane shape of the base of the building to a base shape defined by the base shape parameters, wherein the plane shape of the base is obtained based on image recognition 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 used to construct the repeated shape unit based on the shape unit parameters, includes: modeling the basic building shape of the building according to the basic shape parameters; setting the building detail components on the basic building shape according to the detail component parameters, the repeated shape unit includes: the basic building shape and the building detail components; the building detail components include at least one of the following: windows, door openings, guardrails, and columns.
[0152] In one example, the shape structure of the building includes: a plurality of repeated shape units, and the shape unit parameters corresponding to any two repeated shape units are different. The rotation modeling module 1403, when used to perform rotation modeling on the repeated shape units according to the number of shape units of the building to obtain the building model of the building, includes: obtaining the positional relationship between the first shape part and the second shape part included in the building; rotating the repeated shape units corresponding to a set of shape unit parameters to obtain the first shape part; rotating the repeated shape units corresponding to another set of shape unit parameters to obtain the second shape part, and the first shape part and the second shape part conform to the positional relationship.
[0153] Fig.15 is a schematic diagram of the structure of another building modeling device provided by an exemplary embodiment. Fig.15 As shown, the device may include: a page display module 1501 and a model rendering module 1502.
[0154] The page display module 1501 is used to display the map page where the building to be modeled is located.
[0155] The model rendering module 1502 is used to render and display the building model of the building at the building location corresponding to the building on the map page, and the building model is modeled by the method of any embodiment of this specification.
[0156] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0157] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0158] like Fig.16 As shown, Fig.16 A hardware structure diagram of an electronic device in which the device of the embodiment of this specification is located is shown, and the device may include: a processor 1610, a memory 1620, an input / output interface 1630, a communication interface 1640, and a bus 1650. The processor 1610, the memory 1620, the input / output interface 1630, and the communication interface 1640 are connected to each other through the bus 1650 in the device.
[0159] The processor 1610 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this 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 ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1620 can store operating systems and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant 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 in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0162] The communication interface 1640 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0163] The bus 1650 includes a path that transmits information between the various components of the device (eg, the processor 1610 , the memory 1620 , the input / output interface 1630 , and the communication interface 1640 ).
[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 may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0165] The embodiments of the present specification also provide a computer-readable storage medium on which a computer program is stored, and the program implements the above method when executed by a processor.
[0166] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[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 executed.
[0168] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0169] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0170] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0171] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.
Claims
1. A building modeling method, characterized in that: The method comprises: For a building to be modeled, obtaining shape unit parameters corresponding to the building, wherein the shape unit parameters are used to model repeated shape units in the shape structure of the building; the building to be modeled is a building having common characteristics in shape structure; Based on the body unit parameters, construct the repeated body unit; According to the number of shape units of the building, the repeated shape units are rotated and modeled to obtain a building model of the building, wherein the building model includes: the number of repeated shape units.
2. The method according to claim 1, characterized in that: For the building to be modeled, obtaining the shape unit parameters corresponding to the building includes: For a building to be modeled, obtaining the building type of the building; According to the building type, the shape unit parameters corresponding to the building type are obtained.
3. The method according to claim 1, characterized in that The step of performing rotation modeling on the repeated shape units to obtain a building model of the building comprises: Performing rotation modeling on the repeated shape units to obtain the building body of the building; A roof is added to the building body to obtain a building model of the building.
4. The method according to claim 1, characterized in that: The step of constructing the repeated shape unit based on the shape unit parameters comprises: According to the image of the building, identifying the floors of the building; Determine the height of the building according to the floors; Based on the body unit parameters and the height, a repeated body unit corresponding to the height is constructed.
5. The method according to claim 1, characterized in that Before constructing the repeated body unit based on the body unit parameters, the method further includes: Obtaining base shape parameters corresponding to the building to be modeled; According to the base shape parameters, setting the base of the building; The step of constructing the repeated shape unit based on the shape unit parameters comprises: On the base, the repeating shape unit is constructed based on the shape unit parameters.
6. The method according to claim 5, characterized in that The step of setting the base of the building according to the base shape parameters comprises: Adjusting the base plane shape of the building to a base shape defined by the base shape parameters, wherein the base plane shape is obtained by image recognition of the building; A base of the building is set to correspond to the shape of the base.
7. The method according to claim 1, characterized in that The body unit parameters include: basic body parameters and detail component parameters; The step of constructing the repeated shape unit based on the shape unit parameters comprises: Modeling the basic architectural form of the building according to the basic form parameters; On the basic building form, the building detail component is set according to the detail component parameter, and the repeated form unit includes: the basic building form and the building detail component; The building detail assembly includes at least one of the following parts: windows, door openings, guardrails, and columns.
8. The method according to claim 1, characterized in that The shape structure of the building comprises: a plurality of repeated shape units, and shape unit parameters corresponding to any two repeated shape units are different; The method of performing rotation modeling on the repeated shape units according to the number of shape units of the building to obtain a building model of the building includes: Acquire a positional relationship between a first shape part and a second shape part included in the building; According to a set of repeated body units corresponding to body unit parameters, a first body part is obtained by rotating; According to the repeated shape units 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.
9. A map rendering method, characterized in that: The method comprises: Display the map page where the building to be modeled is located; At the building position corresponding to the building on the map page, a building model of the building is rendered and displayed, wherein the building model is modeled by the method described in any one of claims 1 to 8.
10. A building modeling device, characterized in that: The device comprises: An information acquisition module is used to acquire shape unit parameters corresponding to a building to be modeled, wherein the shape unit parameters are used to model repeated shape units in the shape structure of the building; the building to be modeled is a building having common characteristics in shape structure; A shape construction module, used for constructing the repeated shape unit based on the shape unit parameters; The rotation modeling module is used to perform rotation modeling on the repeated shape units according to the number of shape units of the building to obtain a building model of the building, wherein the building model includes: the number of repeated shape units.
11. A map rendering device, characterized in that: The device comprises: A page display module is used to display the map page where the building to be modeled is located; A model rendering module is used to render and display a building model of the building at a building location corresponding to the building on the map page, wherein the building model is modeled by the method described in any one of claims 1 to 8.
12. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 8 by running the executable instructions.
Citation Information
Cited By
Building modeling method and apparatus, map rendering method and apparatus, and device
WO2026001743A1
