Building model remodeling method and device and building model rendering method and device

By meshing the building model, identifying and preserving the external mesh surfaces, and removing redundant internal structures, the problems of slow rendering speed and poor rendering effect of building models are solved, achieving a more efficient rendering process and clearer rendering effect.

CN121982194APending Publication Date: 2026-05-05BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
BEIJING AUTONAVI YUNMAP TECH CO LTD
Filing Date
2025-12-22
Publication Date
2026-05-05

AI Technical Summary

Technical Problem

Existing building data contains a large number of model faces and complex internal interlacing structures, resulting in slow rendering speed and poor rendering effect of building models.

Method used

By meshing the initial building model, identifying and preserving the external mesh surfaces, removing redundant internal structures, and reshaping the target building model, the target building model can be reconstructed.

Benefits of technology

It significantly reduces the amount of model data, lowers the computational complexity of rendering, increases the rendering speed, improves the rendering effect, and avoids rendering anomalies caused by internal structural interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121982194A_ABST
    Figure CN121982194A_ABST
Patent Text Reader

Abstract

The invention provides a building model remodeling method and device and a building model rendering method and device, and relates to the technical field of map data processing. Gridding the initial building model to obtain a plurality of mesh surfaces, each mesh surface being formed by connecting at least three spatial vertexes; determining an external mesh surface located on the surface of the initial building model from the plurality of mesh surfaces; and remodeling the target building model corresponding to the initial building model on the basis of the space vertexes corresponding to the external grid surface, so that the surface with the exposed structure edge is kept by removing the internal redundant interpenetrating structures in the initial building model, the interference of internal redundant data is effectively avoided, and the construction efficiency is improved. And unnecessary data processing is reduced in the rendering process, so that the rendering rate of the model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of map data processing technology, and in particular to a method, rendering method and apparatus for reshaping building models. Background Technology

[0002] With the advancement of technology, point cloud and image acquisition technologies have been widely used in fields such as Geographic Information System (GIS), Building Information Modeling (BIM), urban planning, and Virtual Reality (VR). These technologies can efficiently capture building and terrain data in the real world, providing a foundation for the three-dimensional reconstruction of building models.

[0003] In related technologies, taking the construction of an initial building model in a map as an example, after collecting the reconstructed building data through point cloud and image acquisition technologies, the initial building model is constructed based on the building data, and the building model body is rendered.

[0004] However, due to the large number of model faces and the complex internal interweaving structures in the building data, the rendering speed of the building model is slow and the rendering effect is poor. Summary of the Invention

[0005] This application provides a building model reshaping method, rendering method, and apparatus to solve the problem that existing building data contains a large number of model faces and data corresponding to complex internal interlacing structures, resulting in slow rendering speed and poor rendering effect of building models.

[0006] Firstly, this application provides a method for reshaping a building model, the method comprising:

[0007] Obtain the initial building model;

[0008] The initial building model is meshed to obtain multiple mesh faces, where each mesh face is composed of at least three spatial vertices connected together;

[0009] Determine the outer mesh face located on the surface of the initial building model from multiple mesh faces;

[0010] Based on the spatial vertices corresponding to the external mesh surfaces, reshape the target building model corresponding to the initial building model.

[0011] Secondly, this application provides a method for rendering building models, the method comprising:

[0012] In response to the instruction to generate a building structure, the target building model is obtained, and the target building model is mapped in two dimensions to obtain the building model surface;

[0013] The surface of the building model is segmented to obtain multiple sub-regions;

[0014] Determine the texture image to be tiled, tile the texture image to multiple sub-regions, and render the building structure.

[0015] The target building model is obtained by meshing the initial building model to obtain multiple mesh surfaces, identifying the outer mesh surface located on the surface of the initial building model from the multiple mesh surfaces, and reshaping it based on the spatial vertices corresponding to the outer mesh surface; each mesh surface is composed of at least three spatial vertices connected together.

[0016] Thirdly, this application provides a building model reshaping device, the device comprising:

[0017] The acquisition module is used to acquire the initial building model;

[0018] The processing module is used to mesh the initial building model to obtain multiple mesh surfaces, where each mesh surface is composed of at least three spatial vertices connected together;

[0019] The determination module is used to determine the external mesh face located on the surface of the initial building model from multiple mesh faces;

[0020] The Reshape module is used to reshape the target building model corresponding to the initial building model based on the spatial vertices corresponding to the external mesh surfaces.

[0021] In summary, this application provides a method, rendering method, and apparatus for reshaping a building model. It obtains an initial building model, which typically contains complete internal and external structural data. Further, the initial building model is converted into multiple easily editable mesh surfaces, each composed of at least three spatial vertices. This step discretizes the continuous surface corresponding to the initial building model into a computable patch structure. Further, the external mesh surfaces located on the surface of the initial building model are identified and selected from all mesh surfaces. This step involves removing the internal mesh surfaces of the initial building model to obtain the external mesh surfaces corresponding to the surface of the initial building model. Then, based on the spatial vertices corresponding to the external mesh surfaces, the target building model is reshaped. Since the external mesh surfaces represent the external outline of the building, removing redundant internal structures ensures that surfaces with exposed structural edges are preserved, effectively avoiding interference from redundant internal data. This significantly reduces the amount of data in the reshaped model, resulting in a simpler geometric structure. This reduces computational complexity during rendering, improves rendering speed, and avoids abnormal rendering due to internal structural interference, thus improving the rendering effect. Attached Figure Description

[0022] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0023] Figure 1 This is a schematic diagram of an existing scenario for constructing an initial building model;

[0024] Figure 2 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0025] Figure 3 A schematic flowchart illustrating a method for reshaping a building model provided in this application embodiment;

[0026] Figure 4 A schematic diagram illustrating a scenario for constructing a target building model based on the spatial vertices corresponding to quadrilateral mesh surfaces, as provided in an embodiment of this application;

[0027] Figure 5 A schematic diagram illustrating a scenario where an intermediate processing model performs component substitution, as provided in an embodiment of this application.

[0028] Figure 6 This is a schematic diagram of a scenario corresponding to a target building model reshaping method provided in an embodiment of this application;

[0029] Figure 7 This application provides a schematic diagram of a scene for automated UV segmentation and tiling processing.

[0030] Figure 8 This is a scene illustration of a building model rendering provided in an embodiment of this application;

[0031] Figure 9 This is a schematic diagram of the structure of a building model reshaping device provided in an embodiment of this application;

[0032] Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0033] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concepts of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0034] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0035] It should be noted that the user information (including but not limited to user device information, user attribute information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with relevant laws, regulations and standards, and corresponding operation entry points are provided for users to choose to authorize or refuse.

[0036] First, let me explain some of the terms used in this application:

[0037] Mesh: A mesh is a basic unit used to represent geometric shapes. It is used to represent and render 3D models. Common types of meshes include triangular meshes, quadrilateral meshes, and polygonal meshes.

[0038] Remesh is a technique widely used in 3D (Three-Dimensional) modeling and computer graphics to regenerate or optimize the mesh structure of 3D models to meet different application requirements. In this application, Remesh refers to the process of model reshaping.

[0039] UV segmentation refers to unfolding the surface of a 3D model into a 2D (Two-Dimensional) plane so that 2D texture images can be accurately fitted onto the 3D model.

[0040] UV tiling refers to the repeated use of the same texture image in UV space to cover the surface of a 3D model.

[0041] B-end: This term is typically used to describe business-to-business (B2B) relationships in the commercial sector.

[0042] For example, Figure 1 This is a schematic diagram of an existing scenario for constructing an initial building model. Taking the construction of the initial building model in a map as an example, the required building data is reconstructed through point cloud and image acquisition. This building data contains a large number of model faces and complex structural data. Furthermore, based on this building data, an initial building model is constructed, resulting in... Figure 1 The model diagrams shown in A and a are further used to render the building model body based on the initial building model, resulting in the following: Figure 1 The structure diagrams shown in B and b are as follows; among them, Figure 1 In the diagram, AB represents the construction process of Chinese-style architecture, and ab represents the construction process of Western-style architecture. The construction processes for both are the same.

[0043] Because the building data contains a large number of model faces and data corresponding to complex internal interlacing structures, the initial building model rendering speed is slow and the rendering effect is poor.

[0044] To address the aforementioned issues, this application provides a method for reshaping a building model. First, an initial building model is obtained, which typically contains complete internal and external structural data. Then, the initial building model is transformed into multiple easily editable mesh surfaces, each composed of at least three spatial vertices. This step discretizes the continuous surface corresponding to the initial building model into a computable patch structure. Next, the external mesh surfaces located on the surface of the initial building model are identified and selected from all mesh surfaces. This step involves removing the internal mesh surfaces of the initial building model to obtain the external mesh surfaces corresponding to the surface of the initial building model. Based on the spatial vertices corresponding to the external mesh surfaces, the target building model is reshaped. Since the external mesh surfaces represent the external outline of the building, removing redundant internal structures ensures that surfaces with exposed structural edges are preserved, effectively avoiding interference from redundant internal data. This significantly reduces the amount of data in the reshaped model, resulting in a simpler geometric structure. This reduces computational complexity during rendering, improves rendering speed, and avoids rendering anomalies caused by internal structural interference, thus improving the rendering effect.

[0045] For example, Figure 2 This is a schematic diagram of an application scenario provided in an embodiment of this application, such as... Figure 2 As shown, this application scenario can be applied to any landmark building generated in the electronic map. The application scenario includes the user's terminal device 201 and the data processing system 202. The terminal device 201 has electronic map software or applet installed to help the user navigate or locate.

[0046] When a user wants to locate a target location based on an electronic map, especially when it needs to determine which buildings correspond to the target location, the user can open the electronic map software on the terminal device 201. This software sends the user's determined target location information to the data processing system 202. The data processing system 202 obtains the target building model corresponding to the target location information. The generation process of this target building model includes: obtaining the initial building model corresponding to the target location information; furthermore, such as... Figure 2 As shown in Figure A, the initial building model is meshed, converting it into editable mesh surfaces. Further, as... Figure 2 As shown in Figure B, the internal mesh surfaces of the initial building model are removed to obtain the external mesh surfaces corresponding to the initial building model. Furthermore, based on the spatial vertices corresponding to the external mesh surfaces, a new target building model with simplified geometry is reshaped.

[0047] Optionally, in response to a user's operation on the terminal device 201, an instruction to generate a building structure is received, and then the terminal device 201 renders the target building model based on the instruction, resulting in, as shown in the image. Figure 2 The building structure shown in C.

[0048] Furthermore, the data processing system 202 can send the rendered building structure to the user's terminal device 201 for visualization display, so that the user can view it and determine the shape and structure of the building corresponding to the target location.

[0049] Optionally, the terminal device can obtain the initial building model corresponding to the target location from the data processing system, and then the terminal device can reshape the target building model and render the building structure using the building model reshaping method provided in this application embodiment. This application embodiment does not specifically limit the executing entity of the building model reshaping method provided in this application.

[0050] Terminal equipment can also be referred to as user equipment (UE), mobile station (MS), mobile terminal, or terminal. In practical applications, terminal equipment includes, for example, desktop computers, laptops, personal digital assistants (PDAs), smartphones, tablets, in-vehicle devices, wearable devices (such as smartwatches and smart bracelets), and smart home devices (such as smart display devices).

[0051] It should be noted that the embodiments of this application do not specifically limit the application scenarios of this application. The above are just examples. Such application scenarios can also be applied to B-end commercialization scenarios.

[0052] For example, Figure 3 This is a flowchart illustrating a method for reshaping a building model provided in an embodiment of this application, as shown below. Figure 3 As shown, the entity executing this building model reshaping method can be the aforementioned data processing system or a user's terminal device. This application embodiment does not specifically limit this. The building model reshaping method includes the following steps:

[0053] S301. Obtain the initial building model.

[0054] In this embodiment, the initial building model can refer to a model constructed based on original acquired data (such as point cloud data or image data) that contains complete or nearly complete geometric information of the building. This geometric information includes external surface data that defines the building's appearance, as well as a large amount of internal geometric data that defines the internal structure and the interlocking relationships of components. This internal geometric data is the main reason for the excessive number of faces and complex structure of the model.

[0055] For example, an initial building model to be processed can be read or received from a data source, such as a building database, model file, or output of an upstream processing flow obtained by point cloud and image acquisition technology. This application embodiment does not specifically limit the source of the initial building model.

[0056] S302. Mesh the initial building model to obtain multiple mesh surfaces, where each mesh surface is composed of at least three spatial vertices connected together.

[0057] In this embodiment, a spatial vertex refers to a basic data unit obtained after meshing, used to define the geometry of the mesh model. Each spatial vertex is a point with unique coordinate values ​​(X, Y, Z) in a three-dimensional (3D) coordinate system. Multiple spatial vertices are combined through specific connection relationships (such as edges that form mesh surfaces) to jointly describe the surface contour and spatial structure of the initial building model.

[0058] In some embodiments, after obtaining the initial building model, the initial building model can be converted into a mesh surface, such as a triangular mesh surface or a quadrilateral mesh surface. The embodiments of this application do not specifically limit the type of mesh surface.

[0059] In this step, the geometric representations in the initial model, which may exist in the form of continuous surfaces or complex voxels, are uniformly converted into a standard mesh model composed of a large number of polygonal patches (i.e., mesh surfaces). Each mesh surface is a planar or approximately planar polygon, which is formed by connecting at least three points (i.e., spatial vertices) with specific coordinates in three-dimensional space through edges.

[0060] S303. Determine the external mesh face located on the surface of the initial building model from multiple mesh faces.

[0061] It should be noted that among the generated multiple mesh surfaces, some mesh surfaces are located on the outer surface of the initial building model. These mesh surfaces are called external mesh surfaces. In some embodiments, external mesh surfaces can be identified by calculating the normal vector of each mesh surface to determine whether it is exposed to the outside. Alternatively, methods such as ray detection and connectivity analysis can be used to identify and distinguish which mesh surfaces constitute the outer surface of the initial building model and which mesh surfaces belong to the internal structure or redundant parts of the initial building model, thereby determining the external mesh surfaces.

[0062] In this way, by identifying the external mesh surfaces, the external contour and surface of the initial building model can be determined, thereby removing redundant overlapping structural parts inside the initial building model and ensuring that exposed structural parts are preserved.

[0063] S304. Based on the spatial vertices corresponding to the external mesh surfaces, reshape the target building model corresponding to the initial building model.

[0064] In this step, the target building model is remeshed by using the identified external mesh surfaces and their corresponding spatial vertices. This target building model can be used for architectural design, virtual reality demonstrations, structural analysis, and more.

[0065] For example, a fitting algorithm can be used to fit the spatial vertices corresponding to the external mesh surface into geometric shapes such as planes, lines, and polygons. Furthermore, the fitted geometric shapes can be combined into a three-dimensional building model with only the external outline. It should be noted that the embodiments of this application do not specifically limit the method for reshaping the building model; the above are merely illustrative examples. For instance, the method for reshaping the building model may also include surface reconstruction, mesh retriangulation, and other methods.

[0066] Therefore, the embodiments of this application can automate the target building model reshaping process through the above-described procedure, thereby reducing manual intervention and human error. This not only improves data processing efficiency but also reduces labor costs and is applicable to various complex building structures. Specifically, by identifying and reshaping only the external mesh surfaces of the model, a large amount of redundant internal structural data is effectively eliminated, significantly reducing the geometric complexity and data volume of the target model. This results in a substantial reduction in the number of model faces that need to be processed during subsequent rendering, thereby increasing the rendering speed of the building model. Simultaneously, key exposed structural features are preserved, ensuring the accuracy and integrity of the external appearance of the target building model. Furthermore, by eliminating interference from complex internal interwoven structures, the reshaping process makes the model's geometry clearer. This helps avoid rendering defects (such as broken surfaces, flickering, and abnormal lighting) caused by errors in internal structural data affecting surface display, thus achieving a more accurate and smoother building appearance rendering effect.

[0067] Optionally, S303 specifically includes:

[0068] The outline of the initial building model is determined based on multiple mesh surfaces;

[0069] Within the defined contour lines, retain the closed contour lines and delete the other contour lines;

[0070] Based on the preserved outline, determine the external mesh surface located on the surface of the initial building model.

[0071] In this embodiment, the contour line refers to a spatial polyline in a 3D mesh model, composed of a series of interconnected mesh edges, that delineates the boundary of the model's external shape on a specific viewing direction or projection plane. It reflects the boundary information of the model's geometry and can be divided into external contour lines defining the model's external boundaries and internal contour lines defining internal holes or structures. The external contour line refers to the closed edge line in the mesh surface, i.e., a hard boundary with exposed structural edge features. Determining the external contour line is for further identification and processing of the external shape and structure of the initial building model.

[0072] In some embodiments, based on all mesh surfaces of the entire initial building model, all contour lines of the model are calculated using geometric algorithms (such as edge adjacency relationship, normal vector mutation detection, etc.). After determining the contour lines of the initial building model, all extracted contour lines are evaluated, retaining only those contour lines that form complete closed loops (i.e., closed contour lines), while deleting those that are not closed or belong to the internal structure. Then, based on the retained closed contour lines, the mesh surfaces associated with these contour lines, i.e., external mesh surfaces, are back-mapped or filtered out. Here, retaining closed contour lines is to ensure the integrity and accuracy of reconstructing the target building model, while unclosed contour lines may be noisy or incomplete data.

[0073] Therefore, by identifying and preserving closed contour lines, this embodiment of the application can ensure that the boundaries and external contours of the initial building model are captured, while deleting unclosed contour lines can effectively remove noise and errors from the data and distinguish between inner and outer surfaces, which helps to more accurately peel off the internal structure, ensuring the accuracy and appearance integrity of the target building model to be reconstructed in the future. Furthermore, the automated contour line recognition and processing method can significantly accelerate the model reconstructing speed.

[0074] Optionally, before reshaping the target building model, the method further includes at least one of the following:

[0075] If the total number of all external mesh faces on the surface of the initial building model is greater than the mesh face number threshold, then the external mesh faces are reduced to obtain the reduced external mesh faces.

[0076] If the number of retained contour lines is greater than the contour line number threshold, the retained contour lines are filtered to determine the outer mesh surface based on the contour lines obtained after the filtering operation.

[0077] If the number of spatial vertices corresponding to all external mesh surfaces on the surface of the initial building model is greater than the vertex number threshold, the spatial vertices are filtered to obtain the spatial vertices corresponding to the filtered external mesh surfaces; the spatial vertices corresponding to the filtered external mesh surfaces are used to reshape the target building model.

[0078] Optionally, the number of mesh faces threshold is a pre-set threshold to ensure that the number of external mesh faces retained meets the requirements for constructing the target building model; the number of contour lines threshold is a pre-set threshold to ensure that the number of contour lines retained meets the requirements for constructing the target building model; and the number of vertices threshold is a pre-set threshold to ensure that the number of spatial vertices retained meets the requirements for constructing the target building model. In this embodiment, the specific values ​​corresponding to the number of mesh faces threshold, the number of contour lines threshold, and the number of vertices threshold are not limited. Different building models have different values ​​for the number of mesh faces threshold, the number of contour lines threshold, and the number of vertices threshold.

[0079] It should be noted that the above thresholds are used to compare with "the number of external mesh faces", "the number of retained contour lines" and "the number of spatial vertices corresponding to the external mesh faces" to determine whether the current data scale needs to be simplified (reduced or filtered).

[0080] In some embodiments, after determining the external mesh surfaces, if it is determined that the number of external mesh surfaces is greater than the mesh surface number threshold, the external mesh surfaces are reduced until the number of external mesh surfaces is less than or equal to the mesh surface number threshold. Then, the target building model corresponding to the initial building model can be reshaped based on the external mesh surfaces obtained after the reduction process and their corresponding spatial vertices.

[0081] In other embodiments, the outline of the initial building model is determined based on the external mesh surface. Among the determined outlines, closed outlines are retained and other outlines are deleted. Further, it is determined whether the number of retained outlines is greater than the outline number threshold. If so, the retained outlines are filtered to redetermine the external mesh surface based on the outlines obtained after the filtering operation.

[0082] In some other embodiments, the outline of the target building model is determined based on all external mesh surfaces of the initial building model. Among the determined outlines, closed outlines are retained and other outlines are deleted. Further, it is determined whether the number of spatial vertices corresponding to the retained outlines is greater than the vertex number threshold. If so, the spatial vertices are filtered, and the target building model is reshaped based on the filtered spatial vertices.

[0083] It should be noted that the above execution processes can also be used in combination. The embodiments of this application do not specifically limit the way the various processes are combined, i.e., the specific implementable methods adopted, nor will they be described in detail.

[0084] Optionally, the number of mesh faces threshold is defined as the threshold used to determine if the external mesh faces of the retained initial building model meet the requirements, the number of contour lines threshold is defined as the threshold used to determine if the number of vertices corresponding to the contour lines of the retained initial building model meets the requirements, and the number of vertices is defined as the threshold used to determine if the number of spatial vertices retained meets the requirements for constructing the target building model.

[0085] For example, after obtaining 50,000 external mesh faces, the number of these 50,000 external mesh faces is still too large, exceeding the preset mesh face number threshold of 10,000. At this time, the 50,000 external mesh faces can be reduced, for example, by using an interval sampling method or a layered weight algorithm to reduce the number of external mesh faces to 10,000 external mesh faces. This application embodiment does not specifically limit the method for reducing the number of mesh faces until the number of external mesh faces is less than or equal to the mesh face number threshold. For example, the reduction can also be based on the density of the external mesh face distribution.

[0086] Furthermore, after obtaining 10,000 external mesh faces, it is determined whether the boundary lines corresponding to these 10,000 external mesh faces can form closed contour lines, so as to retain the contour lines and spatial vertices that can form closed contour lines. Taking the connection of three external mesh faces A, B, and C as an example, it is determined whether the external mesh faces intersect. If so, it is determined that the boundary lines corresponding to the intersecting external mesh faces cannot form closed contour lines; otherwise, they can form closed contour lines. For example, if B and C do not intersect, it means that the boundary lines corresponding to B and C can form closed contour lines, and thus the corresponding contour lines are retained.

[0087] Furthermore, after retaining the contour lines, it is determined whether the number of contour lines is greater than the contour line number threshold. If not, the number of contour lines is filtered until the number of retained contour lines is less than or equal to the contour line number threshold. The filtering method is not specifically limited in this embodiment. Correspondingly, after filtering out the missing data, the spatial vertices corresponding to the remaining contour lines can also be filtered out to ensure that the number of retained spatial vertices is less than or equal to the vertex number threshold. The filtering method is not specifically limited in this embodiment either.

[0088] Optionally, after obtaining the preserved spatial vertices, the surface of the target building model can be reshaped based on the preserved spatial vertices. The number of surfaces of the target building model may still be relatively large. In this case, the surface of the target building model can be reduced to reduce the number of building surfaces.

[0089] Therefore, the embodiments of this application can dynamically perform face reduction and filtering operations based on the number of external mesh faces, contour lines, and spatial vertices, which has high flexibility and adaptability to meet the needs of different application scenarios. Furthermore, it can adaptively simplify and optimize data based on different threshold settings. In particular, performing face reduction and filtering operations when the number of external mesh faces, contour lines, and spatial vertices exceeds the threshold can significantly reduce the amount of computation and resource consumption, and improve processing efficiency, especially when processing large-scale data, the effect is particularly obvious.

[0090] Optionally, the method also includes:

[0091] Identify the type of the initial building model, and determine at least one of the following based on the type: mesh face number threshold, outline number threshold, and vertex number threshold.

[0092] In some embodiments, machine learning models or graphics algorithms can be used to identify complex structure types in a 3D model and determine the type of the initial building model. The machine learning model can be a convolutional neural network model, a support vector machine model, etc., and the graphics algorithm can be a shape analysis algorithm, a feature extraction algorithm, etc. The embodiments of this application do not specifically limit the method of identifying the type of the initial building model. For example, the type of building model can also be identified by judging the number of curved surfaces, the complexity of the building model, and other methods.

[0093] The initial building model can be categorized by purpose, such as residential buildings, commercial buildings, industrial buildings, public buildings, and transportation buildings; it can also be categorized by structural material, such as timber structures, concrete structures, and masonry structures; it can be categorized by building height, such as low-rise buildings, mid-rise buildings, and high-rise buildings; and it can be categorized by architectural style, such as Western-style buildings, Chinese-style buildings, and modern-style buildings. This embodiment does not specifically limit the categorization criteria, and correspondingly, the types of initial building models are not specifically limited.

[0094] Furthermore, a model reshaping strategy is determined based on the type of the initial building model. This model reshaping strategy is a corresponding reshaping strategy customized for each type of initial building model. Optionally, the model reshaping strategy of the building can also be determined based on other methods, such as directly determining the model reshaping strategy of the corresponding initial building model based on the number of curved surfaces of the building model, the complexity of the building model, or a manually given method. The embodiments of this application do not specifically limit the method of determining the model reshaping strategy of the building model. The above are just examples.

[0095] The model reshaping strategy can be used to ensure that the number of retained external mesh faces is greater than the mesh face number threshold, the number of retained contour lines is greater than the contour line number threshold, and / or the number of retained spatial vertices is greater than the vertex number threshold.

[0096] Since different types of initial building models have different structures and complexities, identifying the model type and formulating targeted reshaping strategies can better adapt to the characteristics of different types of buildings and perform targeted optimization. Furthermore, dynamically adjusting the thresholds for the number of mesh faces, contour lines, and vertices based on the different types of initial building models can significantly improve processing efficiency. Therefore, by setting reasonable thresholds, unnecessary consumption of computational resources can be reduced and overall processing efficiency can be improved. Thus, by identifying the type of initial building model and selecting appropriate thresholds for the number of mesh faces, contour lines, and / or vertices, necessary simplification and optimization can be performed while maintaining model accuracy.

[0097] Optionally, the outer mesh surface may be reduced in size, including:

[0098] The outer mesh faces at the bottom of the initial building model are cut off, and the curvature value of the outline corresponding to the cut outer mesh faces is determined. The curvature value at any position of the outline is positively correlated with the number of mesh faces to be retained at that position.

[0099] The number of faces in the cut outer mesh is reduced based on the size of the radian value.

[0100] In this embodiment, the larger the curvature value of the contour line, the more turning points there are in the contour line with large structures, which means that more mesh surfaces need to be retained at the corresponding position of the contour line. Conversely, the smaller the curvature value, the simpler the contour line is, and fewer mesh surfaces can be retained at the position of the contour line.

[0101] In this step, identifying and trimming the bottom outer mesh faces in the initial building model is to remove unnecessary bottom structures, making subsequent processing simpler and more efficient. After trimming the bottom mesh faces, the radian value of the contour lines corresponding to the remaining outer mesh faces is calculated. This radian value refers to the curvature of the contour lines, reflecting the degree of bending of the contour lines. Furthermore, based on the calculated radian value, the number of mesh faces to be retained at the corresponding position of each contour line is determined.

[0102] Among them, the surface reduction processing can adopt a layered weight algorithm to selectively reduce redundant details on the building surface, focus on retaining the turning points of large structures, and effectively simplify useless surface information. The embodiments of this application do not specifically limit the method used for surface reduction processing.

[0103] For example, taking the layered weighting algorithm as an example, the outer mesh face at the bottom of the initial building model is cut off, and the curvature value of the outline corresponding to the cut outer mesh face is determined; the number of mesh faces to be retained for the outline corresponding to different curvature values ​​is different; the weight ratio of the outline corresponding to the cut outer mesh face is determined based on the curvature value; the weight ratio is positively correlated with the curvature value; the cut outer mesh face is reduced based on the weight ratio.

[0104] The larger the curvature value of the outline, the greater the weight ratio of the outline corresponding to the outer grid surface. The greater the weight ratio, the more grid surfaces need to be retained. For example, if the weight ratio is 80%, the number of grid surfaces to be retained can be 50, and if the weight ratio is 20%, the number of grid surfaces to be retained can be 10.

[0105] It should be noted that the embodiments of this application do not specifically limit the correspondence between the magnitude of the arc value at any position of the outline and the number of mesh faces to be retained at that position. The correspondence between the two can be set in advance or determined based on the type of the initial building model.

[0106] Therefore, by determining the radian value and the number of mesh faces to be retained based on the radian value, the embodiments of this application can ensure that more complex and important contour lines are retained. Furthermore, by trimming the bottom mesh faces and reducing the number of mesh faces in the model, the computational complexity can be significantly reduced, thereby improving processing efficiency.

[0107] Optionally, the outer mesh face located on the surface of the initial building model is determined from multiple mesh faces, including:

[0108] Determine the normal direction corresponding to each mesh face, and determine multiple external mesh faces corresponding to the initial building model based on the normal direction.

[0109] Optionally, the outer mesh surface is a quadrilateral mesh surface carrying exposed structural features, and the quadrilateral mesh surface is formed by connecting four spatial vertices.

[0110] It should be noted that quadrilateral mesh surfaces have better stability and consistency among various types of mesh surfaces, which can reduce unnecessary distortion and deformation. Therefore, multiple quadrilateral mesh surfaces corresponding to the initial building model can be formed based on multiple spatial vertices to facilitate subsequent processing.

[0111] In some embodiments, for each quadrilateral mesh face, the normal direction of the quadrilateral mesh face is calculated, and then it is determined whether the quadrilateral mesh face is an internal mesh face or an external mesh face based on the normal direction of each quadrilateral mesh face. It should be noted that when the normal direction of the quadrilateral mesh face is outward, it means that the quadrilateral mesh face is regarded as an external mesh face, and vice versa, the quadrilateral mesh face is regarded as an internal mesh face. Furthermore, based on the normal directions corresponding to the multiple quadrilateral mesh faces, the multiple quadrilateral mesh faces corresponding to the initial building model are filtered, that is, the internal mesh faces are filtered out, and the external mesh faces are retained.

[0112] For example, Figure 4 This application provides a schematic diagram of a scenario for constructing a target building model based on the spatial vertices corresponding to quadrilateral mesh surfaces, as shown in the embodiment of this application. Figure 4 As shown in Figure A, these represent multiple spatial vertices corresponding to the building model. Further, these spatial vertices are used to form a quadrilateral mesh surface corresponding to the initial building model. Then, based on the normal direction of the quadrilateral mesh surface, multiple external mesh surfaces corresponding to the initial building model are determined, resulting in the following: Figure 4 The structural diagram shown in B, further, as... Figure 4 As shown in C, the target building model is reshaped based on the spatial vertices corresponding to the multiple external mesh surfaces.

[0113] Quadrilateral meshes are more accurate at representing planes and curved surfaces than other types of meshes, especially in building models where they can better capture the structure and details of buildings. Furthermore, quadrilateral meshes are typically fewer in number than triangular meshes, making them more efficient for data storage and processing. This application's embodiments, through the reasonable construction of quadrilateral meshes, can reduce computational complexity and improve processing efficiency. Moreover, by determining the external mesh surface through the normal direction, this application ensures that mesh surfaces carrying exposed structural features are preserved.

[0114] For the representation of key details in building models, precise mesh surface positioning technology can be used to perform operations, and preset refined components, such as windows and doors, can be automatically snapped to replace and upgrade the structure in the original building model, ensuring that the representation of key structural components is both accurate and efficient.

[0115] Optionally, based on the spatial vertices corresponding to the external mesh surfaces, reshape the target building model corresponding to the initial building model, including:

[0116] An intermediate processing model is constructed based on the spatial vertices corresponding to the external mesh surface;

[0117] Identify the component to be replaced in the intermediate processing model; the component to be replaced is the component corresponding to the preset component type in the intermediate processing model;

[0118] Based on the type of the initial building model and the component type of the component to be replaced, a predefined component matching the component to be replaced is selected from the predefined component library, and the predefined component is used to replace the component to be replaced in the intermediate processing model to obtain the target building model.

[0119] In this embodiment, predefined components refer to standardized components that have been designed and stored in advance and can be directly used for replacement. Selecting appropriate predefined components is to ensure that the target building model after replacement can meet the display requirements in terms of function, appearance, and structure. Different types of building models can correspond to predefined components of different shapes. For example, predefined components can be standardized building components such as windows, doors, roofs, and columns.

[0120] For example, Figure 5 This is a schematic diagram illustrating a scenario where an intermediate processing model performs component substitution, as provided in an embodiment of this application. Figure 5 As shown, an intermediate processing model containing only the appearance geometry is reconstructed using the spatial vertices corresponding to the external mesh surface and their connection relationships. The component to be replaced is identified in the intermediate processing model, a predefined component corresponding to the component to be replaced is selected from the predefined component library, the component to be replaced is removed from the intermediate processing model, and the selected predefined component is inserted into the corresponding position to obtain the target building model.

[0121] It should be noted that by replacing predefined parts in a reasonable way, errors in the modeling process can be reduced, the accuracy and reliability of model rendering can be improved, and the design efficiency can be significantly improved through an automated replacement process. Predefined parts are standardized parts that are designed and stored in advance and can be directly used for replacement. Furthermore, predefined parts can be reused, thereby reducing modeling time and workload and improving processing efficiency.

[0122] In this application, the component type of the component to be replaced can be specified based on the marking information, or it can be automatically identified and determined by the system. The marking information can be the component and / or component type to be replaced that the user has marked in advance. Optionally, the marking information can also be the marking corresponding to the component to be replaced identified based on the deep learning model. It should be noted that the method of determining the component type of the component to be replaced in this application embodiment is not specifically limited.

[0123] For example, by analyzing the intermediate processing model, the component to be replaced with the marked information can be identified. Then, based on the type of the initial building model and the component type of the component to be replaced, a matching predefined component is selected from the predefined component library. Furthermore, the component to be replaced is removed from the intermediate processing model, and the selected predefined component is inserted into the corresponding position.

[0124] Optionally, after replacing the components, some adjustments and optimizations can be made to the target building model to ensure a seamless integration of the new components with the original structure.

[0125] Therefore, the embodiments of this application can quickly identify the parts to be replaced by pre-defined parts types, and select appropriate predefined parts from the predefined parts library in combination with the type of the initial building model, which significantly improves design and modeling efficiency.

[0126] Optionally, replace the component to be replaced in the building model with a predefined component, including:

[0127] Obtain the orientation information of the predefined component and determine the axial information of the component to be replaced in the intermediate processing model; the axial information is used to determine the orientation angle of the component to be replaced in the intermediate processing model.

[0128] The orientation and azimuth angle of predefined components in the intermediate processing model are determined based on orientation information.

[0129] Remove the part to be replaced from the intermediate processing model. According to the determined orientation of the predefined part, align the center position of the predefined part with the center position of the part to be replaced. While ensuring that the axial information and the orientation angle of the predefined part are consistent, fill the position of the predefined part with the predefined part.

[0130] In this embodiment of the application, the orientation information includes the orientation and axial information of the predefined component in three-dimensional space. The axial information is used to determine the orientation angle of the component in the model, which is usually in the form of XYZ coordinate axes. The orientation of the predefined component in three-dimensional space is used to indicate which face is facing inward and which face is facing outward.

[0131] For example, after obtaining the orientation information of the predefined component and identifying the position and axial information of the component to be replaced in the intermediate processing model, the specific orientation and azimuth angle of the predefined component in the intermediate processing model are determined according to its orientation information, and its center position point is determined according to the position information of the component to be replaced. Further, the component to be replaced is removed from the intermediate processing model to make room for the insertion of the predefined component. The center position point of the predefined component is aligned with the center position point of the component to be replaced, and the orientation and azimuth angle of the predefined component are consistent with those of the component to be replaced. After the alignment and positioning are completed, the predefined component is inserted into the position of the component to be replaced.

[0132] The position information of the component to be replaced in the intermediate processing model can be the coordinate information of each vertex of the component to be replaced in the intermediate processing model, or it can be the information of the center position point of the component to be replaced in the intermediate processing model. In this embodiment, the specific content corresponding to the position information is not limited, and it can be used to determine the center position point of the component.

[0133] In this application, by obtaining the orientation and axial information of the predefined component and the component to be replaced, the precise alignment of the components during the replacement process can be ensured, avoiding misalignment and mismatch. It can also ensure that the orientation and azimuth angle of the predefined component are consistent with the component to be replaced, guaranteeing the consistency of the replaced model in terms of structure and appearance. Furthermore, based on the above steps, an automated component replacement process can be realized, achieving precise matching and adsorption between the predefined component and the intermediate processing model.

[0134] In conjunction with the above embodiments, Figure 6 This is a schematic diagram of a scenario corresponding to a target building model reshaping method provided in an embodiment of this application, such as... Figure 6 As shown, the method for reshaping the target building model includes:

[0135] like Figure 6 As shown in Figure a, the initial building model is obtained, meshed, and multiple mesh faces corresponding to the initial building model are determined. Further, a fully automated remesh process is performed, including steps such as... Figure 6 As shown in b, Figure 6 As shown in C (bottom cropping), Figure 6 The processing of the weighted subtraction surface (weighted subtraction surface) shown in d yields the following result: Figure 6 The intermediate processing model shown in e is used to render the result as follows: Figure 6 The building structure shown in f is shown in the middle.

[0136] Optionally, because the intermediate processing model removes a significant amount of data, resulting in poor rendering quality, in this case... Figure 6 As shown in g, by identifying the important twisted and deformed parts, i.e. the parts to be replaced, and automatically excavating them, the following can be obtained: Figure 6 The building model to be filled, as shown in h, and the parts to be removed and replaced, further, as... Figure 6 As shown in Figure i, predefined components are determined based on the type of the initial building model and the component type of the component to be replaced. Then, adsorption and filling processes are performed based on these predefined components to obtain the result shown in Figure i. Figure 6 The target building model shown in j has a neat and regular surface structure.

[0137] The bottom clipping and weight reduction reshaping process can be determined based on the model reshaping strategy, which can be matched based on the type of the initial building model, for example... Figure 6 The initial building model shown has 100,000 grid faces. Through the above processing, a target building model with 3,600 grid faces can be obtained. While ensuring the quality of the model's shape and structure, the resource consumption of the model is greatly reduced, thereby improving the rendering efficiency of the map scene.

[0138] Optionally, this application also provides a method for rendering a building model, which includes the following steps:

[0139] In response to the instruction to generate a building structure, the target building model is obtained, and the target building model is mapped in two dimensions to obtain the building model surface.

[0140] The surface of the building model is segmented to obtain multiple sub-regions;

[0141] Determine the texture image to be tiled, tile the texture image to multiple sub-regions, and render the building structure.

[0142] The target building model is obtained by meshing the initial building model to obtain multiple mesh surfaces, identifying the outer mesh surface located on the surface of the initial building model from the multiple mesh surfaces, and reshaping it based on the spatial vertices corresponding to the outer mesh surface; each mesh surface is composed of at least three spatial vertices connected together.

[0143] In this embodiment of the application, the UV segmentation process includes: performing two-dimensional mapping on the target building model to obtain the building model surface; segmenting the building model surface to obtain multiple sub-regions; and the UV tiling process includes: determining the texture image to be tiled, tiling the texture image onto multiple sub-regions, and rendering the building structure.

[0144] Among them, 2D mapping can unfold the surface of a 3D model onto a 2D plane, which facilitates subsequent texture processing; the surface of the building model obtained by 2D mapping is segmented into multiple sub-regions so that each sub-region can be textured independently; texture tiling is used to apply texture images to the surface of the building model to give it a realistic material effect; rendering is used to generate a building structure with a realistic visual effect for easy display and application.

[0145] Optionally, the rendering process may include the calculation of effects such as lighting, shadows, and reflections. This application embodiment does not specifically limit the rendering process.

[0146] For example, Figure 7 This application provides a schematic diagram of an automated UV segmentation and tiling process according to an embodiment of the present application. Figure 7 As shown in Figure a, for the constructed target building model, the corresponding mesh surfaces of the target building model are merged into a set, as follows: Figure 7 As shown in b, the information is integrated into a complete mesh, and further, UV segmentation is performed automatically. Figure 7 (as shown in c) and UV tiling ( Figure 7 As shown in d), the rendered result is as follows Figure 7 The building structure shown in Figure e.

[0147] Therefore, the embodiments of this application can optimize the distribution of textures through UV segmentation, reduce the stretching and distortion of textures on the model surface, make the textures more natural and realistic, improve the quality of the model, and effectively utilize the repetition of texture images through UV tiling, thereby reducing the size and number of texture images and improving rendering efficiency.

[0148] Optionally, determine the texture image to be tiled, including:

[0149] The texture image to be tiled is determined based on the current time information and the type of building model.

[0150] In this embodiment, since different time information results in different architectural structures, different texture images can be selected based on the current time information, such as day or night, to achieve dynamic texture effects, such as different lighting effects during the day and night, in order to enhance the realism of the model.

[0151] For example, Figure 8 This is a scene illustration of a building model rendering provided in an embodiment of this application, such as... Figure 8 As shown in Figure a, the initial building model is meshed to determine multiple mesh surfaces corresponding to the initial building model, as follows. Figure 8 As shown in Figure b, external mesh surfaces are identified from multiple mesh surfaces. Based on the spatial vertices corresponding to these external mesh surfaces, an intermediate processing model is constructed. Then, predefined components are used to replace the components to be replaced in the intermediate processing model, resulting in the target building model, as shown below. Figure 8 As shown in Figures c and d, the target building model is mapped in two dimensions to obtain the building model surface. This surface is then segmented into multiple sub-regions. Based on the current time information (e.g., 8:00 AM) corresponding to the instruction for generating the building structure, and the type of the building model, a suitable texture image is selected from the texture library for rendering. Figure 8 The building structure shown in the middle (e) during the day.

[0152] Therefore, dynamically updating texture images based on current time information can provide real-time visual effects, enhance user experience, and intuitively display the materials and details of building models through high-quality texture image rendering.

[0153] Therefore, this application can extract the structure of building models and is suitable for rendering buildings with high precision and quality requirements. While meeting the requirements of map rendering quality and performance, it can also obtain building structures that are mapped to the real world. In particular, it can be applied to the rendering and display in 3D white / night mode, providing users with accurate information acquisition and map reading experience.

[0154] As can be seen from the above embodiments, this application can automatically transform mesh surfaces based on input from any data source, combined with the type of the initial building model to match the corresponding model reshaping strategy, and trim the bottom external mesh surfaces in the initial building model. It automatically filters out invalid spatial vertices and overlapping redundant mesh surfaces, and renders high-quality building structures. It is applicable to open-source model data at any mesh level, greatly reducing data acquisition / production costs, improving map rendering efficiency, and can be applied to the generation of any landmark building in the map, bringing users a highly perceptive map reading experience.

[0155] In the foregoing embodiments, the building model reshaping method provided by the embodiments of this application has been described. To implement the functions of the methods provided by the embodiments of this application, the electronic device serving as the execution subject may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.

[0156] For example, Figure 9 This is a schematic diagram of the structure of a building model reshaping device provided in an embodiment of this application, as shown below. Figure 9 As shown, the building model reshaping device 900 includes: an acquisition module 901 for acquiring an initial building model;

[0157] The processing module 902 is used to perform meshing on the initial building model to obtain multiple mesh surfaces, wherein each mesh surface is composed of at least three spatial vertices connected together;

[0158] The determination module 903 is used to determine the external mesh surface located on the surface of the initial building model from multiple mesh surfaces;

[0159] Reshaping module 904 is used to reshape the target building model corresponding to the initial building model based on the spatial vertices corresponding to the external mesh surface.

[0160] Optionally, module 903 is defined, specifically for:

[0161] The outline of the initial building model is determined based on multiple mesh surfaces;

[0162] Within the defined contour lines, retain the closed contour lines and delete the other contour lines;

[0163] Based on the preserved outline, determine the external mesh surface located on the surface of the initial building model.

[0164] Optionally, before reshaping the target building model, the building model reshaping device 900 further includes at least one module; the at least one module is used for:

[0165] If the total number of all external mesh faces on the surface of the initial building model is greater than the mesh face number threshold, then the external mesh faces are reduced to obtain the reduced external mesh faces.

[0166] If the number of retained contour lines is greater than the contour line number threshold, the retained contour lines are filtered to determine the outer mesh surface based on the contour lines obtained after the filtering operation.

[0167] If the number of spatial vertices corresponding to all external mesh surfaces on the surface of the initial building model is greater than the vertex number threshold, the spatial vertices are filtered to obtain the spatial vertices corresponding to the filtered external mesh surfaces; the spatial vertices corresponding to the filtered external mesh surfaces are used to reshape the target building model.

[0168] Optionally, the building model reshaping device 900 also includes an identification module, which is used for:

[0169] Identify the type of the initial building model, and determine at least one of the following based on the type: mesh face number threshold, outline number threshold, and vertex number threshold.

[0170] Optionally, the at least one module is specifically used for:

[0171] The outer mesh faces at the bottom of the initial building model are cut off, and the curvature value of the outline corresponding to the cut outer mesh faces is determined. The curvature value at any position of the outline is positively correlated with the number of mesh faces to be retained at that position.

[0172] The number of faces in the cut outer mesh is reduced based on the size of the radian value.

[0173] Optionally, module 903 is defined, specifically for:

[0174] Determine the normal direction corresponding to each mesh face, and determine multiple external mesh faces corresponding to the initial building model based on the normal direction.

[0175] Optional, the remodeling module 904 is specifically used for:

[0176] An intermediate processing model is constructed based on the spatial vertices corresponding to the external mesh surface;

[0177] Identify the component to be replaced in the intermediate processing model; the component to be replaced is the component corresponding to the preset component type in the intermediate processing model;

[0178] Based on the type of the initial building model and the component type of the component to be replaced, a predefined component matching the component to be replaced is selected from the predefined component library, and the predefined component is used to replace the component to be replaced in the intermediate processing model to obtain the target building model.

[0179] It should be noted that the specific implementation principle and effect of the above-mentioned building model reshaping device 900 can be found in the relevant description and effect of the above embodiments, and will not be elaborated further here.

[0180] For example, this application embodiment also provides a building model rendering apparatus, which includes:

[0181] The mapping module is used to respond to the command to generate a building structure, obtain the target building model, and perform two-dimensional mapping on the target building model to obtain the building model surface;

[0182] The segmentation module is used to segment the surface of a building model to obtain multiple sub-regions;

[0183] The rendering module is used to determine the texture image to be tiled, tile the texture image to multiple sub-regions, and render the building structure.

[0184] The target building model is obtained by meshing the initial building model to obtain multiple mesh surfaces, identifying the outer mesh surface located on the surface of the initial building model from the multiple mesh surfaces, and reshaping it based on the spatial vertices corresponding to the outer mesh surface; each mesh surface is composed of at least three spatial vertices connected together.

[0185] Optional, rendering module, specifically used for:

[0186] The texture image to be tiled is determined based on the current time information and the type of the initial building model.

[0187] It should also be noted that the specific implementation principle and effects of the above-mentioned building model rendering device can be found in the relevant descriptions and effects of the above embodiments, and will not be elaborated further here.

[0188] For example, Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 10 As shown, the electronic device provided in the embodiments of this application may include: at least one processor 1001; and a memory 1002 communicatively connected to at least one processor; wherein the memory 1002 stores instructions that can be executed by at least one processor 1001, which are executed by at least one processor 1001 to cause the electronic device to perform the method as described in any of the above embodiments.

[0189] Optionally, the memory 1002 can be either standalone or integrated with the processor 1001.

[0190] The memory 1002 and the processor 1001 can be connected via the bus 1003.

[0191] The implementation principle and technical effects of the electronic device provided in this application can be found in the foregoing embodiments, and will not be repeated here.

[0192] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the method described in any of the foregoing embodiments.

[0193] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the method described in any of the foregoing embodiments.

[0194] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed.

[0195] The integrated modules implemented as software functional modules described above can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this application.

[0196] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor. The memory may include RAM (Random Access Memory), and may also include NVM (Non-Volatile Memory), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk, or optical disc, etc.

[0197] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0198] The aforementioned storage media can be implemented from any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage media can be any available medium accessible to general-purpose or special-purpose computers.

[0199] An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Alternatively, the storage medium can be an integral part of the processor. Both the processor and the storage medium can reside in an application-specific integrated circuit (ASIC). Alternatively, the processor and storage medium can exist as discrete components in an electronic device or host device.

[0200] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0201] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.

[0202] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0203] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for reconstructing a building model, characterized in that, The method includes: Obtain the initial building model; The initial building model is meshed to obtain multiple mesh surfaces, wherein each mesh surface is composed of at least three spatial vertices connected together; Determine the outer mesh face located on the surface of the initial building model from the plurality of mesh faces; Based on the spatial vertices corresponding to the external mesh surface, reshape the target building model corresponding to the initial building model.

2. The method according to claim 1, characterized in that, Determining the outer mesh surface located on the surface of the initial building model from the plurality of mesh surfaces includes: The outline of the initial building model is determined based on the multiple mesh surfaces; Within the defined contour lines, retain the closed contour lines and delete the other contour lines; Based on the preserved outline, the outer mesh surface located on the surface of the initial building model is determined.

3. The method according to claim 2, characterized in that, Before reshaping the target building model, the method further includes at least one of the following: If the total number of all external mesh faces on the surface of the initial building model is greater than the mesh face number threshold, then the external mesh faces are reduced to obtain the reduced external mesh faces. If the number of retained contour lines is greater than the contour line number threshold, the retained contour lines are filtered to determine the outer mesh surface based on the contour lines obtained after the filtering operation. If the number of spatial vertices corresponding to all external mesh surfaces on the surface of the initial building model is greater than the vertex number threshold, then the spatial vertices are filtered to obtain the spatial vertices corresponding to the filtered external mesh surfaces. The spatial vertices corresponding to the filtered external mesh surfaces are used to reshape the target building model.

4. The method according to claim 3, characterized in that, The method further includes: Identify the type of the initial building model, and determine at least one of the following based on the type: a threshold for the number of mesh faces, a threshold for the number of outlines, and a threshold for the number of vertices.

5. The method according to claim 3, characterized in that, The reduction of the surface area of ​​the outer mesh includes: The outer mesh face at the bottom of the initial building model is cut off, and the curvature value of the outline corresponding to the cut outer mesh face is determined; the curvature value at any position of the outline is positively correlated with the number of mesh faces to be retained at that position; The outer mesh surface is reduced based on the magnitude of the arc value.

6. The method according to claim 1, characterized in that, Determining the outer mesh surface located on the surface of the initial building model from the plurality of mesh surfaces includes: Determine the normal direction corresponding to each mesh face, and determine multiple external mesh faces corresponding to the initial building model based on the normal direction.

7. The method according to claim 1, characterized in that, The process of reshaping the target building model corresponding to the initial building model based on the spatial vertices corresponding to the external mesh surface includes: Based on the spatial vertices corresponding to the external mesh surface, an intermediate processing model is constructed; Identify the component to be replaced in the intermediate processing model; the component to be replaced is a component corresponding to a preset component type in the intermediate processing model; Based on the type of the initial building model and the component type of the component to be replaced, a predefined component matching the component to be replaced is selected from the predefined component library, and the predefined component is used to replace the component to be replaced in the intermediate processing model to obtain the target building model.

8. A method for rendering building models, characterized in that, The method includes: In response to the instruction to generate a building structure, a target building model is obtained, and the target building model is mapped in two dimensions to obtain the building model surface; The surface of the building model is segmented to obtain multiple sub-regions; Determine the texture image to be tiled, tile the texture image onto the multiple sub-regions, and render the building structure. The target building model is obtained by acquiring an initial building model, meshing the initial building model to obtain multiple mesh surfaces, determining the outer mesh surface located on the surface of the initial building model from the multiple mesh surfaces, and reshaping it based on the spatial vertices corresponding to the outer mesh surface; each mesh surface is composed of at least three spatial vertices connected together.

9. The method according to claim 8, characterized in that, The process of determining the texture image to be tiled includes: The texture image to be tiled is determined based on the current time information and the type of the initial building model.

10. A building model reshaping device, characterized in that, include: The acquisition module is used to acquire the initial building model; The processing module is used to perform meshing processing on the initial building model to obtain multiple mesh surfaces, wherein each mesh surface is composed of at least three spatial vertices connected together; A determining module is used to determine the outer mesh surface located on the surface of the initial building model from the plurality of mesh surfaces; The reshaping module is used to reshape the target building model corresponding to the initial building model based on the spatial vertices corresponding to the external mesh surface.