Search

CN-121982245-A - Three-dimensional model processing method and device

CN121982245ACN 121982245 ACN121982245 ACN 121982245ACN-121982245-A

Abstract

The application provides a three-dimensional model processing method and a device, which relate to the technical field of information, wherein the three-dimensional model processing method comprises the steps of obtaining an original three-dimensional model; the method comprises the steps of obtaining outer layer model data taking a building body as a display object based on an original three-dimensional model, separating connected geometric units in the original three-dimensional model, separating all the connected geometric units into independent objects, wherein the independent objects take building floors as display objects, constructing spatial indexes among floors of all the independent objects to obtain inner layer model data, constructing mapping relations between the outer layer model data and the inner layer model data inside and outside the building body to obtain a three-dimensional model package, and improving the interactivity and expansibility requirements of the three-dimensional building model.

Inventors

  • WANG BIN
  • LI JING
  • WEI HUAYANG
  • XU HUANFENG

Assignees

  • 中控技术股份有限公司

Dates

Publication Date
20260505
Application Date
20251223

Claims (10)

  1. 1. A method for processing a three-dimensional model, comprising: Acquiring an original three-dimensional model; Obtaining outer layer model data taking a building body as a display object based on the original three-dimensional model; Separating the communication geometric units in the original three-dimensional model, and separating all the communication geometric units into independent objects, wherein the independent objects take building floors as display objects; constructing spatial indexes among floors of all the independent objects to obtain inner layer model data; And constructing the mapping relation between the inside and outside of the building body for the outer layer model data and the inner layer model data to obtain a three-dimensional model package.
  2. 2. The method of three-dimensional model processing according to claim 1, wherein said separating connected geometric units in the original three-dimensional model, separating all the connected geometric units into independent objects, comprises: According to the topological connection relation of each geometrical surface in the original three-dimensional model, identifying a geometrical subset which is mutually communicated, taking each geometrical unit which is communicated as the independent object as the communicated geometrical unit, wherein each independent object corresponds to at least one building floor; Each of the separate individual objects is assigned a unique floor identifier.
  3. 3. The method of claim 2, wherein constructing spatial indexes between floors for all the independent objects to obtain inner layer model data comprises: Converting each of the independent objects into an instantiation tile; Generating an index structure based on the spatial position relation of the instantiation tile in the original three-dimensional model; generating hierarchical description information based on the index structure and the unique floor identifier corresponding to the instantiation tile, wherein the inner layer model data comprises the instantiation tile and the hierarchical description information.
  4. 4. The method of three-dimensional model processing according to claim 3, wherein said performing the mapping relationship construction between the inside and outside of the building on the outside model data and the inside model data, obtaining the three-dimensional model package includes: assigning a unique building identifier to each of the building bodies in the skin model data; organizing the building and the inner layer model data corresponding to the building into a building set; and constructing a mapping relation between the unique building identifier and the building set to obtain the three-dimensional model package.
  5. 5. The method of three-dimensional model processing according to claim 4, wherein said constructing a mapping relationship between the unique building identifier and the set of building bodies, obtaining the three-dimensional model package comprises: Acquiring scene description information of each building body from the outer layer model data; Generating resource positioning information of the inner layer model data corresponding to each building from the building set; generating global metadata description information based on the unique building identifier, the scene description information and the resource location information; and taking the outer layer model data, the building set and the global metadata description information as the three-dimensional model package.
  6. 6. The method of three-dimensional model processing according to claim 5, wherein generating resource location information of the interior model data corresponding to each building from the set of buildings comprises: Determining inner layer model data of the building corresponding to the unique building identifier based on the unique building identifier; extracting the hierarchical description information and the instantiation tiles of each floor from the determined inner layer model data; A storage path is constructed based on the unique building identifier associated with the hierarchical description information and the instantiated tiles for each floor, the storage path being the resource location information.
  7. 7. The method according to claim 1, wherein obtaining outer layer model data with a building body as a display object based on the original three-dimensional model comprises: And inputting the original three-dimensional model into a model conversion tool for processing to obtain the outer layer model data, wherein the outer layer model data comprises geometric data information and scene description information.
  8. 8. The three-dimensional model processing method according to claim 1, further comprising: Loading the skin model data in response to a display instruction to display an overall structure of the building in a three-dimensional scene; Acquiring a unique building identifier of a target building in response to the interactive operation of any building; obtaining corresponding resource positioning information from the three-dimensional model package based on the unique building identifier; And loading the inner layer model data of the target building according to the resource positioning information, and rendering the inner layer model data into the three-dimensional scene.
  9. 9. The method of claim 8, wherein loading the interior model data of the target building according to the resource location information, and rendering the interior model data into the three-dimensional scene comprises: acquiring instantiation tiles and hierarchy description information from the inner layer model data; Obtaining a unique floor identifier corresponding to the instantiation tile according to the hierarchy description information; constructing a local transformation matrix of the unique floor identifier on the instantiated tile, and applying an offset in the vertical direction; And updating the local transformation matrix to separate each floor along the vertical direction in the three-dimensional space, so as to form a visual effect of layered disassembly.
  10. 10. A three-dimensional model processing apparatus, comprising: the acquisition module is used for acquiring the original three-dimensional model; the outer layer model processing module is used for obtaining outer layer model data taking a building body as a display object based on the original three-dimensional model; the splitting module is used for separating the communication geometric units in the original three-dimensional model and separating all the communication geometric units into independent objects, wherein the independent objects take building floors as display objects; The inner layer model processing module is used for constructing spatial indexes among floors of all the independent objects to obtain inner layer model data; and the assembly module is used for constructing the mapping relation between the inside and outside of the building body for the outer layer model data and the inner layer model data to obtain a three-dimensional model package.

Description

Three-dimensional model processing method and device Technical Field The application relates to the technical field of information, in particular to a three-dimensional model processing method and device. Background In the field of three-dimensional visual display, in order to display the indoor effect of a model, the model needs to be split and displayed, complex three-dimensional information is simplified into visual information, functions, structures and streamline relations between upper and lower levels are clearly expressed, and the requirement for indoor condition display of the model, such as personnel, articles, floor conditions and the like of a display target floor, is met through the split level. In the related art, split presentation of the model is mainly realized based on glTF (GL Transmission Format) or a binary form glb and other general three-dimensional model formats, and glTF and glb formats have the following significant limitation in a large-scale building indoor layered visualization scene that interactive and extensible engineering requirements are difficult to meet. Disclosure of Invention The application solves the problem of how to increase the interactivity and expansibility requirements of a three-dimensional building model. In order to solve the problems, the application provides a three-dimensional model processing method and a device. In a first aspect, the present application provides a three-dimensional model processing method, including: Acquiring an original three-dimensional model; Obtaining outer layer model data taking a building body as a display object based on the original three-dimensional model; Separating the communication geometric units in the original three-dimensional model, and separating all the communication geometric units into independent objects, wherein the independent objects take building floors as display objects; constructing spatial indexes among floors of all the independent objects to obtain inner layer model data; And constructing the mapping relation between the inside and outside of the building body for the outer layer model data and the inner layer model data to obtain a three-dimensional model package. Optionally, the separating the connected geometric units in the original three-dimensional model, and separating all the connected geometric units into independent objects includes: According to the topological connection relation of each geometrical surface in the original three-dimensional model, identifying a geometrical subset which is mutually communicated, taking each geometrical unit which is communicated as the independent object as the communicated geometrical unit, wherein each independent object corresponds to at least one building floor; Each of the separate individual objects is assigned a unique floor identifier. Optionally, the constructing the spatial index between floors by using all the independent objects, and obtaining the inner layer model data includes: Converting each of the independent objects into an instantiation tile; Generating an index structure based on the spatial position relation of the instantiation tile in the original three-dimensional model; generating hierarchical description information based on the index structure and the unique floor identifier corresponding to the instantiation tile, wherein the inner layer model data comprises the instantiation tile and the hierarchical description information. Optionally, the building the mapping relationship between the outer layer model data and the inner layer model data in the building body and the outside, and obtaining the three-dimensional model package includes: assigning a unique building identifier to each of the building bodies in the skin model data; organizing the building and the inner layer model data corresponding to the building into a building set; and constructing a mapping relation between the unique building identifier and the building set to obtain the three-dimensional model package. Optionally, said constructing a mapping relationship between said unique building identifier and said set of building bodies, obtaining said three-dimensional model package comprises: Acquiring scene description information of each building body from the outer layer model data; Generating resource positioning information of the inner layer model data corresponding to each building from the building set; generating global metadata description information based on the unique building identifier, the scene description information and the resource location information; and taking the outer layer model data, the building set and the global metadata description information as the three-dimensional model package. Optionally, the generating the resource positioning information of the inner layer model data corresponding to each building body from the building body set includes: Determining inner layer model data of the building corresponding to the unique building identi