A Metaverse Virtual Space Modeling Optimization Method and System

By constructing a library of geometric components for BIM models and establishing a geometric instance index information database, the vertices and feature fingerprints of BIM models are optimized, solving the problems of manual intervention in the volume and compatibility of BIM models in metaverse applications, and achieving lightweight and stable rendering of the models.

CN116226985BActive Publication Date: 2026-07-17SANDA UNIVERSITY

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SANDA UNIVERSITY
Filing Date
2023-02-22
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing BIM models in metaverse applications suffer from problems such as high cost of manual intervention due to their large size, difficulty in rapid deployment, and insufficient format compatibility, data restoration capabilities, network loading capabilities, and smoothness and stability of web-based rendering.

Method used

By constructing a library of geometric components for BIM models, performing vertex optimization and feature fingerprint extraction, establishing a geometric instance index information library, generating new BIM models, optimizing the repetition and reuse rate of model components, and improving the loading efficiency and rendering smoothness of the graphics engine.

Benefits of technology

This achieves lightweight model files, reduces processing costs for modelers, improves the loading efficiency of the graphics engine and the number of batches in the rendering process, and ensures stable operation of the model on the browser side.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116226985B_ABST
    Figure CN116226985B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for optimizing BIM modeling based on a metaverse virtual space. The method includes: acquiring and loading a BIM model file; constructing a BIM model geometric component library; traversing the geometric component library and performing a first judgment; optimizing the vertices of the geometric components in the first judgment and extracting feature fingerprints by setting vertex thresholds; performing a second judgment based on the feature fingerprints and establishing a geometric instance index information library based on the second judgment result; and reconstructing the fingerprint library and geometric instance index information library by combining the first and second judgments to generate a new BIM model. This invention improves the efficiency of graphics engines loading model files by establishing fingerprint and index libraries for model components; increases the number of batches the engine can handle during rendering by increasing the reusability of model components; and saves processing costs for modelers by quickly optimizing the model using a lightweight model optimization tool.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of metaverse modeling application technology, and in particular to a method and system for optimizing metaverse virtual space modeling. Background Technology

[0002] With the development of technology, the information exchange and interaction between the virtual world and the real world in the metaverse is becoming more and more realistic and rich. This can greatly improve the efficiency of information transmission between different users and different fields, break down information barriers, and provide users with more diverse and convenient ways of life and learning.

[0003] The most fundamental technology for the metaverse is the creation of a virtual world identical to the real world. Current modeling techniques are largely based on and refined BIM models. Because the metaverse encompasses a wide range of fields—from education and healthcare to manufacturing—the required prototypes are extremely large-scale, involving massive computations. However, most lightweight BIM models on the market rely on manual compression, which incurs huge costs due to the sheer size of the models, hindering rapid deployment and browser compatibility. Furthermore, the high hardware requirements for users' computers result in significant expenses. In other words, there are shortcomings in BIM model format compatibility, data restoration capabilities, network loading capacity, and the smoothness and stability of web-based BIM model rendering. Therefore, further optimization is urgently needed for lightweight applications of BIM models in the metaverse. Summary of the Invention

[0004] The purpose of this section is to outline some aspects of embodiments of the present invention and to briefly describe some preferred embodiments. Simplifications or omissions may be made in this section, as well as in the abstract and title of this application, to avoid obscuring the purpose of these documents; however, such simplifications or omissions should not be construed as limiting the scope of the invention.

[0005] In view of the aforementioned existing problems, the present invention is proposed.

[0006] Therefore, the present invention provides a method and system for optimizing BIM modeling based on the metaverse virtual space, which addresses the problems of the huge cost of manual intervention in the model size, which is not conducive to rapid application and browser-based operation. It also has certain deficiencies in the BIM model's format compatibility, BIM model data restoration capability, BIM model network loading capability, and the smoothness and stability of BIM model rendering on the web.

[0007] In a first aspect, the present invention provides a method for optimizing modeling based on a metaverse virtual space, comprising:

[0008] Get and load the BIM model file;

[0009] Construct a library of geometric components for BIM models;

[0010] Traverse the geometric component library and perform the first judgment;

[0011] In the first judgment, the vertices of the geometric components are optimized and a vertex threshold is set for feature fingerprint extraction; a second judgment is made based on the feature fingerprint, and a geometric instance index information database is established based on the result of the second judgment.

[0012] Combining the first and second judgments, the fingerprint database and geometric instance index information database are reconstructed to generate a new BIM model.

[0013] As a preferred embodiment of the metaverse virtual space modeling optimization method described in this invention, the BIM model file includes several geometric components of the virtual space, and the components are composed of several points, lines, and surfaces.

[0014] Before constructing the BIM model geometric component library, extract the BIM model geometric components.

[0015] As a preferred embodiment of the metaverse virtual space modeling and optimization method described in this invention, the first determination includes:

[0016] When the traversal is determined to be incomplete, the vertices of the geometric components are counted, and the overlapping vertices of the geometric components are marked.

[0017] As a preferred embodiment of the metaverse virtual space modeling optimization method described in this invention, the optimization of geometric component vertices includes...

[0018] When the number of overlapping vertices is greater than or equal to 3, the vertices beyond the overlapping vertices will be deduplicated.

[0019] As a preferred embodiment of the metaverse virtual space modeling and optimization method described in this invention, the step of setting a vertex threshold for feature fingerprint extraction includes...

[0020] Vertex indexing is performed. When the number of vertex indices is less than the vertex threshold, feature fingerprints are extracted based on the geometric vertex information. The vertex threshold is set to 10.

[0021] As a preferred embodiment of the metaverse virtual space modeling and optimization method described in this invention, the second judgment includes,

[0022] Determine whether the extracted feature fingerprint exists in the feature fingerprint database;

[0023] If they exist, then establish a mapping fingerprint database and the geometric instance index information database;

[0024] If it does not exist, a set of component fingerprint feature library instances is established, and a mapping fingerprint library and the geometric instance index information library are established based on the set of component fingerprint feature library instances.

[0025] After the geometric instance index information database is established, the components will be traversed again and the geometric component collection database will be updated for the next traversal.

[0026] As a preferred embodiment of the metaverse virtual space modeling optimization method described in this invention, the fingerprint database and geometric instance index information database are reconstructed by combining the first and second judgments, including:

[0027] When the traversal is determined to be complete, and the mapping fingerprint database and geometric instance index information database of the second determination are updated and established, data reconstruction is performed based on the geometric fingerprint database and instance reference index database.

[0028] Secondly, this invention provides a metaverse virtual space modeling and optimization system, comprising,

[0029] The acquisition module is used to acquire and load BIM model files;

[0030] The module for building collection libraries is used to build collection libraries of geometric components for BIM models;

[0031] The first judgment module is used to traverse the geometric component collection library and perform the first judgment;

[0032] The optimization judgment module is used to optimize the vertices of the geometric components in the first judgment, set a vertex threshold for feature fingerprint extraction, perform a second judgment based on the feature fingerprint, and establish a geometric instance index information database based on the result of the second judgment.

[0033] The reconstruction module is used to combine the first and second judgments to reconstruct the fingerprint database and geometric instance index information database, and generate a new BIM model.

[0034] Thirdly, the present invention provides a computing device, comprising:

[0035] Memory and processor;

[0036] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, they implement the steps of the metaverse virtual space modeling optimization method.

[0037] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the metaverse virtual space modeling optimization method.

[0038] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention improves the efficiency of the graphics engine in loading model files by establishing a fingerprint library and index library for model components; it increases the number of batches in the rendering process by increasing the reuse rate of model components; and it saves the processing cost of modeling personnel by quickly optimizing the model through the model lightweighting tool. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein:

[0040] Figure 1 This is a schematic diagram of the overall process of the metaverse virtual space modeling and optimization method according to an embodiment of the present invention;

[0041] Figure 2 This is a flowchart of the first and second judgments in the metaverse virtual space modeling optimization method according to an embodiment of the present invention;

[0042] Figure 3 This is a pre-optimization file diagram of the metaverse virtual space modeling optimization method according to an embodiment of the present invention;

[0043] Figure 4 This is an optimized file diagram of the metaverse virtual space modeling optimization method described in one embodiment of the present invention;

[0044] Figure 5 This is a comparison diagram of the model before and after optimization in the metaverse virtual space modeling optimization method described in one embodiment of the present invention. Detailed Implementation

[0045] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.

[0046] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0047] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0048] This invention is described in detail with reference to the schematic diagrams. When detailing the embodiments of this invention, for ease of explanation, the cross-sectional views illustrating the device structure may be partially enlarged, not adhering to the usual scale. Furthermore, the schematic diagrams are merely examples and should not be construed as limiting the scope of protection of this invention. In actual fabrication, the three-dimensional spatial dimensions of length, width, and depth should be included.

[0049] Furthermore, in the description of this invention, it should be noted that the terms "upper," "lower," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are used solely for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. In addition, the terms "first," "second," or "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0050] Unless otherwise explicitly specified and limited, the terms "installation," "connection," and "joining" in this invention should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; similarly, they can refer to mechanical connections, electrical connections, or direct connections, or indirect connections through an intermediate medium, or internal connections between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0051] Example 1

[0052] Reference Figure 1-2 As an embodiment of the present invention, a method for optimizing modeling based on metaverse virtual space is provided, comprising:

[0053] S1: Obtain and load the BIM model file;

[0054] Furthermore, BIM model files include several geometric components in the virtual space, and these components are composed of several points, lines, and surfaces;

[0055] S2: Construct a library of BIM model geometric components;

[0056] Before building the BIM model geometric component collection library, extract the BIM model geometric components.

[0057] S3: Traverse the geometric component collection library and perform the first judgment;

[0058] Furthermore, the first judgment includes,

[0059] When the traversal is determined to be incomplete, the vertices of the geometric components are counted, and the overlapping vertices of the geometric components are marked.

[0060] It should be noted that the first judgment can provide real-time information on the modeling status of the geometric components and count overlapping vertices, thereby establishing a foundation for optimization and feature fingerprint extraction, reducing the number of extractions and improving the extraction rate.

[0061] S4: In the first judgment, the vertices of the geometric components are optimized, and a vertex threshold is set for feature fingerprint extraction; a second judgment is made based on the feature fingerprint, and a geometric instance index information database is established based on the result of the second judgment;

[0062] Furthermore, optimizing the vertices of the geometric components includes,

[0063] When there are 3 or more overlapping vertices, the vertices that are more than 3 overlapping vertices will be deduplicated.

[0064] It should be noted that when there are 3 or more overlapping vertices, it means that there is too much overlap in this part of the model. If it is only greater than 2, it only represents overlap, but it cannot guarantee the integrity of the model after removing the overlap. Therefore, according to the model modeling mode, simplifying and removing overlapping points with more than 3 points can simplify the size to the greatest extent while preserving the overall structure and details of the model.

[0065] Furthermore, setting vertex thresholds for feature fingerprint extraction includes,

[0066] Vertex indexing is performed. When the number of vertex indices is less than the vertex threshold, feature fingerprints are extracted based on the geometric vertex information. The vertex threshold is set to 10.

[0067] It should be noted that when the number of vertex thresholds is set to 10, the fingerprint feature extraction rate is fastest when the number of vertex thresholds is less than the threshold. If the threshold is too large, it will easily increase the redundancy of information in the fingerprint database.

[0068] Furthermore, the second judgment includes,

[0069] Determine whether the extracted feature fingerprint exists in the feature fingerprint database;

[0070] If they exist, then establish a mapping fingerprint database and a geometric instance index information database;

[0071] If it does not exist, then a set of component fingerprint feature library instances is created, and a mapping fingerprint library and a geometric instance index information library are created based on the set of component fingerprint feature library instances.

[0072] After the geometric instance index information database is established, the components will be traversed again and the geometric component collection database will be updated for the next traversal.

[0073] S5: Combining the first and second judgments, reconstruct the fingerprint database and geometric instance index information database to generate a new BIM model.

[0074] Furthermore, combining the first and second judgments, the fingerprint database and geometric instance index information database are reconstructed, including:

[0075] When the traversal is determined to be complete, and the mapping fingerprint database and geometric instance index information database of the second determination are updated and established, data reconstruction is performed based on the geometric fingerprint database and instance reference index database.

[0076] It should be noted that by traversing the model components to improve reusability, the number of batches the engine can handle during the rendering process is increased. Furthermore, the modularity of the model components is continuously improved to a more streamlined level, thereby saving processing costs for modelers.

[0077] The above is an illustrative scheme of a metaverse virtual space modeling optimization method according to this embodiment. It should be noted that the technical solution of this metaverse virtual space modeling optimization system belongs to the same concept as the technical solution of the metaverse virtual space modeling optimization method described above. Details not described in detail in the technical solution of the metaverse virtual space modeling optimization system in this embodiment can be found in the description of the technical solution of the metaverse virtual space modeling optimization method described above.

[0078] This embodiment is based on a metaverse virtual space modeling and optimization system, including:

[0079] The acquisition module is used to acquire and load BIM model files;

[0080] The module for building collection libraries is used to build collection libraries of geometric components for BIM models;

[0081] The first judgment module is used to traverse the geometric component collection library and perform the first judgment.

[0082] The optimization judgment module is used to optimize the vertices of geometric components in the first judgment, set the vertex threshold for feature fingerprint extraction, perform the second judgment based on the feature fingerprint, and establish a geometric instance index information database based on the result of the second judgment.

[0083] The reconstruction module is used to combine the first and second judgments to reconstruct the fingerprint database and geometric instance index information database, and generate a new BIM model.

[0084] This embodiment also provides a computing device suitable for optimization based on metaverse virtual space modeling, including:

[0085] The memory and processor are used to store computer-executable instructions and execute computer-executable instructions to implement the optimization method based on metaverse virtual space modeling proposed in the above embodiments.

[0086] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements the method for optimizing the modeling of the metaverse virtual space as proposed in the above embodiments.

[0087] The storage medium proposed in this embodiment and the method for calculating the cumulative climb height proposed in the above embodiments belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiments, and this embodiment has the same beneficial effects as the above embodiments.

[0088] Based on the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0089] Example 2

[0090] Reference Figure 3-5 As an embodiment of the present invention, a method and system for optimizing modeling based on metaverse virtual space are provided. To verify its beneficial effects, a comparison of data graphs before and after model optimization is provided.

[0091] Figure 2 Before optimization, the model file size was 223MB. After lightweight optimization of the model, Figure 3 The size of the model file is only one-quarter of the original.

[0092] At the same time, it can be based on Figure 4 The duplicate points were found to have been removed after optimization. The right side is before deduplication, and the left side is after deduplication. The entire model is preserved, while the details are also simplified, making it look lighter visually.

[0093] Compared to current modeling methods, we have improved the efficiency of the graphics engine in loading model files by establishing fingerprint and index libraries for model components; increased the number of batches the engine can handle during the rendering process by improving the reusability of model components; and saved processing costs for modelers by quickly optimizing models using model lightweighting tools.

[0094] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for optimizing modeling based on metaverse virtual space, characterized in that, include: Get and load the BIM model file; Construct a library of geometric components for BIM models; Traverse the geometric component collection library and perform the first judgment; In the first judgment, the vertices of the geometric components are optimized, and a vertex threshold is set for feature fingerprint extraction; A second judgment is made based on the described feature fingerprint, and a geometric instance index information database is established based on the result of the second judgment. The step of setting a vertex threshold for feature fingerprint extraction includes performing vertex indexing. When the number of vertex indices is less than the vertex threshold, feature fingerprints are extracted based on geometric vertex information. The vertex threshold is set to a number of 10. The second determination includes determining whether the extracted feature fingerprint exists in the feature fingerprint database; If they exist, then establish a mapping fingerprint database and the geometric instance index information database; If it does not exist, a set of component fingerprint feature library instances is established, and a mapping fingerprint library and the geometric instance index information library are established based on the set of component fingerprint feature library instances. After the geometric instance index information database is established, the components will be traversed again and the geometric component collection database will be updated for the next traversal; Combining the first and second judgments, the mapping fingerprint database and geometric instance index information database are reconstructed to generate a new BIM model, including: When the traversal is determined to be complete, and the mapping fingerprint database and geometric instance index information database of the second determination are updated and established, data reconstruction is performed based on the mapping fingerprint database and geometric instance index information database.

2. The method for optimizing modeling based on metaverse virtual space as described in claim 1, characterized in that, The BIM model file includes several geometric components in the virtual space, which are composed of points, lines, and surfaces; Before constructing the BIM model geometric component library, extract the BIM model geometric components.

3. The method for optimizing modeling based on metaverse virtual space as described in claim 1 or 2, characterized in that, The first judgment includes, When the traversal is determined to be incomplete, the vertices of the geometric components are counted, and the overlapping vertices of the geometric components are marked.

4. The method for optimizing modeling based on metaverse virtual space as described in claim 3, characterized in that, The optimization of the geometric component vertices includes removing duplicates when there are more than 3 overlapping vertices.

5. A metaverse virtual space modeling and optimization system, employing the method described in any one of claims 1-4, characterized in that, include, The acquisition module is used to acquire and load BIM model files; The module for building collection libraries is used to build collection libraries of geometric components for BIM models; The first judgment module is used to traverse the geometric component collection library and perform the first judgment; An optimization judgment module is used to optimize the vertices of geometric components in the first judgment and set a vertex threshold for feature fingerprint extraction. A second judgment is made based on the described feature fingerprint, and a geometric instance index information database is established based on the result of the second judgment. The reconstruction module is used to combine the first and second judgments to reconstruct the mapping fingerprint database and geometric instance index information database, and generate a new BIM model.

6. An electronic device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, they implement the steps of the metaverse virtual space modeling optimization method according to any one of claims 1 to 4.

7. A computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the metaverse virtual space modeling optimization method according to any one of claims 1 to 4.