Search

CN-121982194-A - Building model remolding method, rendering method and device

CN121982194ACN 121982194 ACN121982194 ACN 121982194ACN-121982194-A

Abstract

The application provides a building model remolding method, a rendering method and a rendering device, which relate to the technical field of map data processing, wherein the method comprises the steps of obtaining an initial building model; the method comprises the steps of carrying out gridding treatment on an initial building model to obtain a plurality of grid surfaces, wherein each grid surface is formed by connecting at least three spatial vertexes, determining an external grid surface positioned on the surface of the initial building model from the plurality of grid surfaces, and remolding a target building model corresponding to the initial building model based on the spatial vertexes corresponding to the external grid surface.

Inventors

  • Xia Zengrong
  • XUE JUNQIANG
  • LI XIANG
  • TONG XUE

Assignees

  • 北京高德云图科技有限公司

Dates

Publication Date
20260505
Application Date
20251222

Claims (10)

  1. 1. A method of building model remodeling, the method comprising: Acquiring an initial building model; performing gridding treatment on the initial building model to obtain a plurality of grid surfaces, wherein each grid surface is formed by connecting at least three spatial vertexes; Determining an external grid surface from the plurality of grid surfaces that is located on the initial building model surface; And remolding a target building model corresponding to the initial building model based on the spatial vertexes corresponding to the external grid surfaces.
  2. 2. The method of claim 1, wherein said determining an external grid surface from said plurality of grid surfaces that is located on said initial building model surface comprises: determining contour lines of the initial building model according to the grid planes; in the determined contour lines, retaining the closed contour lines, and deleting other contour lines; And determining an external grid surface positioned on the surface of the initial building model according to the reserved contour lines.
  3. 3. The method of claim 2, wherein prior to remodelling the target building model, the method further comprises at least one of: if the number of all the external grid surfaces of the initial building model surface is larger than the grid surface number threshold, carrying out surface subtracting treatment on the external grid surfaces to obtain the external grid surfaces subjected to surface subtracting treatment; If the number of the reserved contour lines is larger than the contour line number threshold value, filtering the reserved contour lines to determine the external grid surface according to the contour lines obtained after filtering operation; And if the number of the space vertexes corresponding to all the external grid surfaces of the initial building model surface is larger than a vertex number threshold, filtering the space vertexes to obtain the space vertexes corresponding to the filtered external grid surfaces, wherein the space vertexes corresponding to the filtered external grid surfaces are used for remolding the target building model.
  4. 4. A method according to claim 3, characterized in that the method further comprises: A type of the initial building model is identified, and at least one of a mesh surface number threshold, a contour line number threshold, and a vertex number threshold is determined based on the type.
  5. 5. A method according to claim 3, wherein said subtracting the surface of the external mesh surface comprises: Cutting off the outer grid surface at the bottom of the initial building model, and determining the radian value of the contour line corresponding to the cut outer grid surface, wherein the radian value of any position of the contour line is positively correlated with the number of grid surfaces required to be reserved at the position; and subtracting the surface of the cut external grid surface based on the radian value.
  6. 6. The method of claim 1, wherein said determining an external grid surface from said plurality of grid surfaces that is located on said initial building model surface comprises: and determining a normal direction corresponding to each grid surface, and determining a plurality of external grid surfaces corresponding to the initial building model based on the normal direction.
  7. 7. The method of claim 1, wherein the remodelling the target building model corresponding to the initial building model based on the spatial vertices corresponding to the external mesh faces comprises: Constructing an intermediate processing model based on the spatial vertexes corresponding to the external grid surface; identifying a part to be replaced in the intermediate processing model, wherein the part to be replaced is a part corresponding to a part type preset in the intermediate processing model; And selecting a predefined component matched with the component to be replaced from a predefined component library based on the type of the initial building model and the component type of the component to be replaced, and replacing the component to be replaced in the intermediate processing model by using the predefined component to obtain the target building model.
  8. 8. A method of building model rendering, the method comprising: responding to an instruction for generating a building structure body, acquiring a target building model, and carrying out two-dimensional mapping on the target building model to obtain a building model surface; dividing the surface of the building model to obtain a plurality of subareas; Determining texture images to be tiled, tiling the texture images to the plurality of subareas, and rendering to obtain a building structure; The target building model is obtained by acquiring an initial building model, then carrying out gridding treatment on the initial building model to obtain a plurality of grid surfaces, determining an external grid surface positioned on the surface of the initial building model from the plurality of grid surfaces, and carrying out remodelling on the basis of space vertexes corresponding to the external grid surface, wherein each grid surface is formed by connecting at least three space vertexes.
  9. 9. The method of claim 8, wherein the determining the texture image to be tiled comprises: A texture image to be tiled is determined based on the current time information and the type of the initial building model.
  10. 10. A building model remodeling device, comprising: the acquisition module is used for acquiring an initial building model; the processing module is used for carrying out gridding processing on the initial building model to obtain a plurality of grid surfaces, wherein each grid surface is formed by connecting at least three space vertexes; a determining module for determining an external grid surface from the plurality of grid surfaces that is located on the initial building model surface; And the remolding module is used for remolding the target building model corresponding to the initial building model based on the space vertexes corresponding to the external grid surface.

Description

Building model remolding method, rendering method and device Technical Field The present application relates to the field of map data processing technologies, and in particular, to a building model remodeling method, a rendering method and a device. Background Along with the progress of technology, point cloud and image acquisition technologies are widely applied in the fields of geographic information systems (Geographic Information System, GIS), building information models (Building Information Modeling, BIM), urban planning, virtual Reality (VR) and the like, and the technologies can efficiently capture building and terrain data in the real world, so that a foundation is provided for three-dimensional reconstruction of building models. In the related art, taking an initial building model built in a map as an example, after the reconstructed building data is acquired through a point cloud and image acquisition technology, the initial building model is built based on the building data, and a building model body is rendered. However, the building data contains a large number of model faces and data corresponding to complex internal interpenetration structures, so that the rendering rate of the building model is slow and the rendering effect is poor. Disclosure of Invention The application provides a building model remolding method, a rendering method and a rendering device, which are used for solving the problems that the rendering speed of a building model is low and the rendering effect is poor because the existing building data contains a large number of model faces and data corresponding to a complex internal alternate structure. In a first aspect, the present application provides a method of building model remodeling, the method comprising: Acquiring an initial building model; Performing gridding treatment on the initial building model to obtain a plurality of grid surfaces, wherein each grid surface is formed by connecting at least three spatial vertexes; Determining an external grid surface from the plurality of grid surfaces that is located on the surface of the initial building model; and remodelling the target building model corresponding to the initial building model based on the spatial vertexes corresponding to the external grid surfaces. In a second aspect, the present application provides a building model rendering method, the method comprising: Responding to an instruction for generating a building structure body, acquiring a target building model, and carrying out two-dimensional mapping on the target building model to obtain a building model surface; Dividing the surface of the building model to obtain a plurality of subareas; determining a texture image to be tiled, tiling the texture image into a plurality of sub-areas, and rendering to obtain a building structure; The target building model is obtained by acquiring an initial building model, then carrying out gridding treatment on the initial building model to obtain a plurality of grid surfaces, determining an external grid surface positioned on the surface of the initial building model from the plurality of grid surfaces, and carrying out remodelling on the basis of space vertexes corresponding to the external grid surface, wherein each grid surface is formed by connecting at least three space vertexes. In a third aspect, the present application provides a building model remodeling apparatus, the apparatus comprising: the acquisition module is used for acquiring an initial building model; the processing module is used for carrying out gridding processing on the initial building model to obtain a plurality of grid surfaces, wherein each grid surface is formed by connecting at least three spatial vertexes; a determining module for determining an external grid surface from a plurality of grid surfaces, the external grid surface being located on a surface of an initial building model; And the remodeling module is used for remodelling the target building model corresponding to the initial building model based on the spatial vertexes corresponding to the external grid surfaces. In summary, the application provides a building model remodeling method, a rendering method and a device, by obtaining an initial building model, the initial building model generally comprises complete internal and external structure data, further, the initial building model is converted into a plurality of mesh surfaces which are convenient to edit, each mesh surface is formed by connecting at least three spatial vertexes, the step is used for discretizing a continuous curved surface corresponding to the initial building model into a computable surface patch structure, further, external mesh surfaces positioned on the surface of the initial building model are identified and screened from all mesh surfaces, the mesh surfaces in the interior of the initial building model are removed during the step, the external mesh surfaces corresponding to the surface of the initial