Loading Method, Device, Server and Storage Medium for Mine Three-Dimensional Model

By caching and parsing pre-built three-dimensional mine models, the method addresses the lag and slow loading issues in mine scene displays, enhancing rendering efficiency.

CN115546411BActive Publication Date: 2025-07-15JINGYING SHUZHI TECH HLDG CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211282008.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2025-07-15
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

The loading display of mine three-dimensional scenes is slow and stuttered, and it is difficult for the existing technology to achieve efficient rendering.

Method used

By storing model cache data in the database collection, using pre-established 3D mine models for analysis and loading, avoiding reconstructing real coordinates and model parameters, and accelerating data processing in JSON format and index correlation.

Benefits of technology

It significantly improves the rendering efficiency of the mine three-dimensional scene, reduces loading time, and improves display speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115546411B_ABST
    Figure CN115546411B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, server, and storage medium for loading a three-dimensional model of a mine, including: if a model loading instruction is received, determining whether target model cache data corresponding to the model loading instruction is stored in a database set; wherein, model cache data is stored in the database set, and the model cache data is generated based on a pre-established first three-dimensional model of a mine; if so, reading the target model cache data from the database set; performing parsing processing on the target model cache data to obtain a second three-dimensional model of a mine corresponding to the target model cache data, and loading the second three-dimensional model of a mine into a specified three-dimensional scene. The present invention can accelerate the display of the three-dimensional scene of the mine and significantly improve the rendering efficiency of the three-dimensional scene of the mine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of geospatial information systems, and in particular to a method, device, server, and storage medium for loading a three-dimensional model of a mine. Background Art

[0002] In order to clearly, intuitively, and realistically express the mine structure, a large amount of real coordinates (x, y, z), model parameters (section shape, horizontal azimuth, inclination angle, length), etc. data support under a unified geographic (projection) coordinate system is required to dynamically construct a three-dimensional model of the mine based on GIS (Geographic Information System). Due to the complex spatial structure of the underground model, which affects and depends on each other, from the algorithm analysis of the basic data to the dynamic construction of a high-precision and multi-level-of-detail model, a large amount of three-dimensional model data with complex structure and multi-scale is generated in the three-dimensional scene, resulting in slow and lagging loading and display of the three-dimensional scene of the entire mine. Summary of the Invention

[0003] In view of this, an object of the present invention is to provide a method, device, server, and storage medium for loading a three-dimensional model of a mine, which can accelerate the display of the three-dimensional scene of the mine and significantly improve the rendering efficiency of the three-dimensional scene of the mine.

[0004] In a first aspect, an embodiment of the present invention provides a method for loading a three-dimensional model of a mine, including: if a model loading instruction is received, determining whether target model cache data corresponding to the model loading instruction is stored in a database set; wherein, model cache data is stored in the database set, and the model cache data is generated based on a pre-established first three-dimensional model of the mine; if so, reading the target model cache data from the database set; performing parsing processing on the target model cache data to obtain a second three-dimensional model of the mine corresponding to the target model cache data, and loading the second three-dimensional model into a specified three-dimensional scene.

[0005] In one embodiment, the method further includes: if the target model cache data corresponding to the model loading instruction is not stored in the database set, obtaining the model basic data corresponding to the target model cache data, and constructing a first three-dimensional mine model based on the model basic data; wherein, the model basic data includes coordinate data and / or model parameter data, and the first three-dimensional mine model is in JSON format; establishing an association relationship between the first three-dimensional mine model and the model structure data set; wherein, the model structure data set is used to characterize the geometric structure and / or model material of the first three-dimensional mine model; dividing the model structure data set into multiple first sub-data sets based on a preset service type, and performing format conversion on each first sub-data set to obtain the model cache data corresponding to the first three-dimensional mine model; wherein, the model cache data is in binary format; storing the model cache data corresponding to the first three-dimensional mine model in the database set.

[0006] In one embodiment, the step of parsing the target model cache data to obtain a second three-dimensional mine model corresponding to the target model cache data includes: converting the target model cache data from binary format to JSON format, and generating a second three-dimensional mine model corresponding to the target model cache data based on the target model cache data in JSON format and the association relationship.

[0007] In one embodiment, the database set includes a database and a cache, and the step of determining whether the target model cache data corresponding to the model loading instruction is stored in the database set includes: determining whether the target model cache data corresponding to the model loading instruction is stored in the cache; if not, judging whether the target model cache data is stored in the database according to the target service type and model identifier carried by the model loading instruction; if the target model cache data is stored in the database, synchronizing the target model cache data to the cache to read the target model cache data from the cache.

[0008] In one embodiment, the method further includes: if the target model cache data is stored in the cache, determining whether the expiration date of the target model cache data is greater than 0; if so, determining that the target model cache data has not expired, and determining that the target model cache data is stored in the database set; if not, determining that the target model cache data has expired, and judging whether the target model cache data is stored in the database according to the target service type and model identifier carried by the model loading instruction; if the target model cache data is stored in the database, synchronizing the target model cache data to the cache to read the target model cache data from the cache.

[0009] In one embodiment, the expiration period is randomly generated when the target model cache data is stored in the cache, and the expiration period is a multiple of a specified threshold.

[0010] In one embodiment, the method further includes: if it is monitored that the model base data corresponding to the target model cache data changes, creating a third mine three-dimensional model based on the changed model base data; establishing an association relationship between the third mine three-dimensional model and the model structure data set; dividing the model structure data set into multiple second sub-data sets based on a preset service type, and performing format conversion on each of the second sub-data sets to obtain the changed model cache data; storing the changed model cache data in the database set.

[0011] In a second aspect, an embodiment of the present invention further provides a loading device for a mine three-dimensional model, including: a judgment module, configured to judge whether the database set stores target model cache data corresponding to the model loading instruction if a model loading instruction is received; wherein, the database set stores model cache data, and the model cache data is generated based on a pre-established first mine three-dimensional model; a data reading module, configured to read the target model cache data from the database set when the judgment result of the judgment module is yes; a model loading module, configured to perform parsing processing on the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and load the second mine three-dimensional model into a specified three-dimensional scene.

[0012] In a third aspect, an embodiment of the present invention further provides a server, including a processor and a memory, where the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of the first aspect.

[0013] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by a processor, the computer executable instructions cause the processor to implement the method according to any one of the first aspect.

[0014] A method, device, server, and storage medium for loading a three-dimensional mine model provided by an embodiment of the present invention. If a model loading instruction is received and target model cache data corresponding to the model loading instruction is stored in a database set, the target model cache data is read from the database set, and the target model cache data is parsed and processed to obtain a second three-dimensional mine model corresponding to the target model cache data, and the second three-dimensional mine model is loaded into a specified three-dimensional scene. Among them, model cache data is stored in the database set, and the model cache data is generated based on a pre-established first three-dimensional mine model. The above method can obtain the corresponding second three-dimensional mine model by parsing and processing the target model cache data, without parsing real coordinates, model parameters, etc. to rebuild the three-dimensional mine model, thereby accelerating the display of the three-dimensional mine scene and significantly improving the rendering efficiency of the three-dimensional mine scene.

[0015] Other features and advantages of the present invention will be described in the following description, and in part will be obvious from the description, or will be understood by implementing the present invention. The objectives and other advantages of the present invention are achieved and obtained by the structures specifically pointed out in the description, claims, and drawings.

[0016] To make the above objectives, features, and advantages of the present invention more obvious and understandable, the following specifically provides preferred embodiments and, in conjunction with the accompanying drawings, detailed descriptions are as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0018] Figure 1 A flowchart of a method for loading a three-dimensional mine model provided by an embodiment of the present invention;

[0019] Figure 2 A flowchart of another method for loading a three-dimensional mine model provided by an embodiment of the present invention;

[0020] Figure 3 The implementation process of a method for loading a three-dimensional mine model provided by an embodiment of the present invention;

[0021] Figure 4 A flowchart of another method for loading a three-dimensional mine model provided by an embodiment of the present invention;

[0022] Figure 5Schematic structural diagram of a loading device for a mine three-dimensional model provided by an embodiment of the present invention;

[0023] Figure 6 Schematic structural diagram of a server provided by an embodiment of the present invention. Specific embodiments

[0024] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0025] Currently, there are slow and lagging phenomena in the loading and display of mine three-dimensional scenes. Based on this, the embodiments of the present invention provide a method, device, server, and storage medium for loading a mine three-dimensional model, which can accelerate the display of the mine three-dimensional scene and significantly improve the rendering efficiency of the mine three-dimensional scene.

[0026] To facilitate the understanding of this embodiment, first, a method for loading a mine three-dimensional model disclosed in the embodiments of the present invention will be introduced in detail. Refer to Figure 1 The flowchart of a method for loading a mine three-dimensional model shown, and this method mainly includes the following steps S102 to step S106:

[0027] Step S102, if a model loading instruction is received, it is determined whether target model cache data corresponding to the model loading instruction is stored in the database set. The database set includes a database and a cache. Model cache data is stored in the database set, and the model cache data is generated based on a pre-established first mine three-dimensional model. The first mine three-dimensional model can be obtained by parsing data such as coordinates and model parameters in the unified geographic (projection) coordinate system of the GIS platform through an SDK (Software Development Kit). The model parameters include cross-sectional shape, horizontal azimuth angle, inclination angle, length, etc. In one implementation, the target model cache data corresponding to the model loading instruction can be first searched in the cache. If the target model cache data is not found in the cache or the target model cache data has expired, the target model cache data corresponding to the model loading instruction is searched in the database. If the target model cache data is found in the database, the target model cache data is synchronized to the cache and the target model cache data is returned. If the target model cache data is never found in the database, the first mine three-dimensional model is reconstructed, and the required target model cache data is obtained based on the first mine three-dimensional model.

[0028] Step S104, if so, read the target model cache data from the database set.

[0029] Step S106, perform parsing processing on the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and load the second mine three-dimensional model into a specified three-dimensional scene. The second mine three-dimensional model may be a complete first mine three-dimensional model or a partial mine three-dimensional model corresponding to the target business type carried by the model loading instruction. In one implementation manner, the target model cache data can be converted from a binary format to a JSON format, and based on the JSON-format target model cache data and the association relationship (which can also be called an index), a second mine three-dimensional model corresponding to the target model cache data is generated.

[0030] The method for loading a mine three-dimensional model provided by the embodiment of the present invention can obtain the corresponding second mine three-dimensional model by performing parsing processing on the target model cache data, without parsing real coordinates, model parameters, etc. to rebuild the mine three-dimensional model, thereby accelerating the display of the mine three-dimensional scene and significantly improving the rendering efficiency of the mine three-dimensional scene.

[0031] In the case where the target model cache data corresponding to the model loading instruction is not stored in the database set, it is necessary to generate cache data and store the generated cache data in the database set. Specifically, the embodiment of the present invention provides an implementation manner for generating cache data, as shown in the following steps 1 to 4:

[0032] Step 1, obtain the model basic data corresponding to the target model cache data, and build a first mine three-dimensional model based on the model basic data; the model basic data includes coordinate data and / or model parameter data, the first mine three-dimensional model is in JSON format, the coordinate data is the coordinate in the unified geographic coordinate system of the GIS platform, and the model parameter data includes cross-sectional shape, horizontal azimuth, inclination angle, length, etc. In one implementation manner, the coordinate data and the model parameter data can be parsed through the SDK, so as to realize dynamically building the first mine three-dimensional model using the SDK.

[0033] Step 2, establish an association relationship between the first mine three-dimensional model and the model structure data set. The model structure data set is used to represent the geometric structure and / or model material of the first mine three-dimensional model, the model material includes texture and / or texture map, and the association relationship can also be called an index. In specific implementation, standard JSON-format data (that is, the first mine three-dimensional model) is output through the SDK, and the first mine three-dimensional model and the model structure data set are associated through an index.

[0034] Step 3: Divide the model structure dataset into multiple first sub-datasets based on the preset business types, and perform format conversion on each first sub-dataset to obtain the model cache data corresponding to the first three-dimensional mine model. The model cache data is in binary format, and the preset business types include one or more of the following data: underground roadways, working faces, mine field boundaries, water accumulation areas, three zones, boreholes, faults, collapse columns, aquifers, geology, etc., as well as surface buildings above ground. Exemplarily, taking the business type as the working face, there are multiple working faces; a single model refers to one of the working faces, and the structure of a working face includes a geometric structure and materials. In specific implementation, the model structure dataset can be divided into multiple first sub-datasets with the working face as the unit, and then each first sub-dataset is converted into binary data respectively, so as to facilitate subsequent searching and updating with the working face as the unit.

[0035] Step 4: Store the model cache data corresponding to the first three-dimensional mine model in the database set. In one implementation, the model cache data corresponding to the first three-dimensional mine model can be stored in the database, and at the same time, the model cache data is synchronized to the cache.

[0036] In addition, for the foregoing step S102, the embodiment of the present invention also provides an implementation for determining whether the target model cache data corresponding to the model loading instruction is stored in the database set. Refer to Figure 2 the flowchart of another method for loading a three-dimensional mine model shown in the figure. This method mainly includes the following steps a to e:

[0037] Step a: Determine whether the target model cache data corresponding to the model loading instruction is stored in the cache. If so, execute step d; if not, execute step b. In specific implementation, the model loading instruction carries the target business type TYPE and a single model ID (Identity document). Query whether the target model cache data is stored in the cache. The single model ID is also the model identifier.

[0038] Step b: According to the target business type and model identifier carried by the model loading instruction, determine whether the target model cache data is stored in the database. If so, execute step c; if not, end. In practical applications, if the target model cache data is not stored in the cache, then further query whether the target model cache data is stored in the database according to the target business type TYPE and the single model ID.

[0039] Step c: Synchronize the target model cache data to the cache to read the target model cache data from the cache.

[0040] Step d: Determine whether the expiration period of the target model cache data is greater than 0. If so, determine that the target model cache data has not expired and execute Step e; if not, determine that the target model cache data has expired and execute Step b. The expiration period is randomly generated when the target model cache data is stored in the cache. The expiration period is a multiple of a specified threshold and decreases over time. In one implementation, when the target model cache data is stored in the cache, the expiration period is randomly generated in units of 30 days. Additionally, the EXPIRE attribute of the target model cache data is used to represent the expiration period of the data, so as to determine whether the target model cache data has expired based on the EXPIRE attribute.

[0041] Step e: Determine that the target model cache data is stored in the database set.

[0042] After obtaining the target model cache data, the target model cache data can be parsed to obtain the second mine three-dimensional model corresponding to the target model cache data. Specifically, the target model cache data can be converted from the binary format to the JSON format, and based on the JSON-format target model cache data and the association relationship, the second mine three-dimensional model corresponding to the target model cache data can be generated. In practical applications, the binary data obtained from the cache is parsed into JSON data, the data in the standard JSON format is constructed through model indexing and returned, and finally the standard JSON-format data is parsed into a three-dimensional model through the SDK and loaded in the three-dimensional scene.

[0043] To accelerate the display of the three-dimensional scene and improve the rendering efficiency, the three-dimensional model data is simplified, and the three-dimensional model is converted into the standard JSON-format data according to certain rules, and the internal geometric structure, materials (textures, maps) of the model and the relationships between the models are established through indexing. However, as the three-dimensional model grows, its data continuously increases. Facing such a large amount of data, it is unrealistic to cache all of it in the client memory. Therefore, high requirements are imposed on both computer hardware and application software for the efficient visualization of large-scale scenes. The main idea of the embodiments of the present invention is: when loading the mine three-dimensional model in the three-dimensional scene, by reading the three-dimensional model data cached on the server side, the parsing of the GIS basic data coordinates (x, y, z) and model parameters (section shape, horizontal azimuth, inclination angle, length) is omitted, and the process of dynamically creating the model through the SDK is omitted, so as to accelerate the display of the three-dimensional scene and improve the rendering efficiency.

[0044] For ease of understanding, the embodiments of the present invention provide an application example of a method for loading a mine three-dimensional model. Refer to Figure 3The implementation process of a method for loading a three-dimensional mine model is as follows: Specifically, (1) First, initialize the three-dimensional scene, which is used to load the three-dimensional mine model; (2) Determine whether there is target model cache data in the database set; (3) If there is no target model cache data in the database set, dynamically construct the three-dimensional mine model through the SDK; (4) Output the three-dimensional mine model as data in the standard JSON format through the SDK, and associate the model structure through indexing; (5) If there is target model cache data in the database set, first determine whether there is target model cache data in the cache or whether the target model cache data has expired; (6) If the target model cache data does not exist in the cache or has expired, read the target model cache data from the database, and at the same time synchronize the target model cache data to the cache; (7) If there is target model cache data in the cache, read the target model cache data therein; (8) Parse the binary data obtained from the cache into JSON data, construct data in the standard JSON format through model indexing and return; (9) Finally, parse the data in the standard JSON format into a three-dimensional model through the SDK and load it in the three-dimensional scene.

[0045] In the embodiment of the present invention, the three-dimensional model is converted into JSON data, and through indexing association, cache data is constructed and stored on the server side to achieve the effect of sharing among multiple clients. Compared with not using the cache technology, while ensuring the timeliness of dynamic modeling, the display of the three-dimensional scene is accelerated and the rendering efficiency is improved.

[0046] In one implementation, the embodiment of the present invention can also monitor the model basic data to update the model cache data in a timely manner when it is monitored that the model basic data has changed. See Figure 4 The flow schematic diagram of another device for loading a three-dimensional mine model shown, this method mainly includes the following (1) to (4):

[0047] (1) If it is monitored that the model basic data corresponding to the target model cache data has changed, create a third three-dimensional mine model based on the changed model basic data. In practical applications, it can be determined whether the basic data managed by the GIS platform has changed, and if there is no change, exit.

[0048] (2) Establish an association relationship between the third three-dimensional mine model and the model structure data set. In one implementation, if the coordinates, model parameters, etc. of a certain business type (for example: working face) change, then by parsing the data under the unified geographic (projection) coordinate system of the GIS platform, use the SDK to dynamically construct a three-dimensional model.

[0049] (3) Divide the model structure data set into multiple second sub-data sets based on a preset service type, and perform format conversion on each second sub-data set to obtain the changed model cache data. In one implementation, 3. Output the 3D model as standard JSON format data through the SDK. The model structure includes geometric structure, materials (textures, maps). Associate the model structure through indexing, then convert the model structure into binary data module by module, and update the corresponding data in the database according to the service type (e.g., working face) TYPE and the single model ID. At the same time, update the data in the cache database.

[0050] (4) Store the changed model cache data in the database set.

[0051] For the method for loading a mine 3D model provided in the foregoing embodiments, the embodiments of the present invention provide a device for loading a mine 3D model. Refer to Figure 5 the structural schematic diagram of a device for loading a mine 3D model shown in

[0052] A judgment module 502, configured to, if a model loading instruction is received, judge whether target model cache data corresponding to the model loading instruction is stored in the database set; wherein, the database set stores model cache data, and the model cache data is generated based on a pre-established first mine 3D model;

[0053] A data reading module 504, configured to, when the judgment result of the judgment module is yes, read the target model cache data from the database set;

[0054] A model loading module 506, configured to perform parsing processing on the target model cache data to obtain a second mine 3D model corresponding to the target model cache data, and load the second mine 3D model into a specified 3D scene.

[0055] The device for loading a mine 3D model provided by the embodiments of the present invention can obtain the corresponding second mine 3D model by performing parsing processing on the target model cache data, without parsing real coordinates, model parameters, etc. to rebuild the mine 3D model, thereby accelerating the display of the mine 3D scene and significantly improving the rendering efficiency of the mine 3D scene.

[0056] In one embodiment, the above device further includes a cache data generation module, configured to: if the target model cache data corresponding to the model loading instruction is not stored in the database set, obtain the model basic data corresponding to the target model cache data, and construct a first three-dimensional mine model based on the model basic data; wherein, the model basic data includes coordinate data and / or model parameter data, and the first three-dimensional mine model is in JSON format; establish an association relationship between the first three-dimensional mine model and the model structure data set; wherein, the model structure data set is used to represent the geometric structure and / or model material of the first three-dimensional mine model; divide the model structure data set into multiple first sub-data sets based on a preset business type, and perform format conversion on each first sub-data set to obtain the model cache data corresponding to the first three-dimensional mine model; wherein, the model cache data is in binary format; store the model cache data corresponding to the first three-dimensional mine model in the database set.

[0057] In one embodiment, the model loading module 506 is further configured to: convert the target model cache data from binary format to JSON format, and generate a second three-dimensional mine model corresponding to the target model cache data based on the target model cache data in JSON format and the association relationship.

[0058] In one embodiment, the database set includes a database and a cache, and the judgment module 502 is further configured to: judge whether the target model cache data corresponding to the model loading instruction is stored in the cache; if not, judge whether the target model cache data is stored in the database according to the target business type and model identifier carried by the model loading instruction; if the target model cache data is stored in the database, synchronize the target model cache data to the cache to read the target model cache data from the cache.

[0059] In one embodiment, the judgment module 502 is further configured to: if the target model cache data is stored in the cache, judge whether the expiration date of the target model cache data is greater than 0; if so, determine that the target model cache data has not expired, and determine that the target model cache data is stored in the database set; if not, determine that the target model cache data has expired, and judge whether the target model cache data is stored in the database according to the target business type and model identifier carried by the model loading instruction; if the target model cache data is stored in the database, synchronize the target model cache data to the cache to read the target model cache data from the cache.

[0060] In one embodiment, the expiration date is randomly generated when the target model cache data is stored in the cache, and the expiration date is a multiple of a specified threshold.

[0061] In one embodiment, the above device further includes a change module, configured to: if it is monitored that the model basic data corresponding to the target model cache data changes, create a third three-dimensional mine model based on the changed model basic data; establish an association relationship between the third three-dimensional mine model and the model structure data set; divide the model structure data set into multiple second sub-data sets based on a preset service type, and perform format conversion on each second sub-data set to obtain the changed model cache data; store the changed model cache data in the database set.

[0062] The device provided by the embodiment of the present invention has the same implementation principle and the same technical effects as those of the foregoing method embodiment. For the sake of brief description, for the parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment.

[0063] The embodiment of the present invention provides a server. Specifically, the server includes a processor and a storage device; a computer program is stored on the storage device, and the computer program executes the method according to any one of the above embodiments when being run by the processor.

[0064] Figure 6 FIG. 10 is a schematic structural diagram of a server provided by an embodiment of the present invention. The server 100 includes: a processor 60, a memory 61, a bus 62, and a communication interface 63. The processor 60, the communication interface 63, and the memory 61 are connected through the bus 62; the processor 60 is configured to execute an executable module stored in the memory 61, such as a computer program.

[0065] Among them, the memory 61 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 63 (which may be wired or wireless), a communication connection between the system network element and at least one other network element is realized, and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.

[0066] The bus 62 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 6 only a bidirectional arrow is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.

[0067] Among them, the memory 61 is used to store the program. After receiving an execution instruction, the processor 60 executes the program. The method executed by the device defined by the flow process disclosed in any one of the foregoing embodiments of the present invention can be applied to the processor 60 or implemented by the processor 60.

[0068] The processor 60 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the above method can be completed by the integrated logic circuit of the hardware in the processor 60 or the instructions in the form of software. The above-mentioned processor 60 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 61, and the processor 60 reads the information in the memory 61 and combines its hardware to complete the steps of the above method.

[0069] The computer program product of the readable storage medium provided by the embodiments of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For the specific implementation, reference can be made to the foregoing method embodiments, and details are not described herein again.

[0070] If the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0071] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting them. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions described in the foregoing embodiments or easily conceive of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims

1. A method for loading a three-dimensional model of a mine, characterized in that, Including: If a model loading instruction is received, determine whether target model cache data corresponding to the model loading instruction is stored in the database set; wherein, model cache data is stored in the database set, and the model cache data is generated based on a pre-established first three-dimensional mine model; If so, read the target model cache data from the database set; Perform parsing processing on the target model cache data to obtain a second three-dimensional mine model corresponding to the target model cache data, and load the second three-dimensional mine model into a specified three-dimensional scene; The method further includes: if the target model cache data corresponding to the model loading instruction is not stored in the database set, obtain model basic data corresponding to the target model cache data, and construct a first three-dimensional mine model based on the model basic data; wherein, the model basic data includes coordinate data and / or model parameter data, and the first three-dimensional mine model is in JSON format; establish an association relationship between the first three-dimensional mine model and a model structure data set; wherein, the model structure data set is used to characterize the geometric structure and / or model material of the first three-dimensional mine model; divide the model structure data set into multiple first sub-data sets based on a preset service type, and perform format conversion on each first sub-data set to obtain model cache data corresponding to the first three-dimensional mine model; wherein, the model cache data is in binary format; store the model cache data corresponding to the first three-dimensional mine model in the database set; The database set includes a database and a cache; the step of determining whether target model cache data corresponding to the model loading instruction is stored in the database set includes: determining whether the target model cache data corresponding to the model loading instruction is stored in the cache; if not, according to the target service type and model identifier carried by the model loading instruction, determine whether the target model cache data is stored in the database; if the target model cache data is stored in the database, synchronize the target model cache data to the cache to read the target model cache data from the cache; The method further includes: if the target model cache data is stored in the cache, determine whether the expiration period of the target model cache data is greater than 0; if so, determine that the target model cache data has not expired, and determine that the target model cache data is stored in the database set; if not, determine that the target model cache data has expired, and according to the target service type and model identifier carried by the model loading instruction, determine whether the target model cache data is stored in the database; if the target model cache data is stored in the database, synchronize the target model cache data to the cache to read the target model cache data from the cache.

2. The method according to claim 1, wherein The step of performing parsing processing on the target model cache data to obtain a second three-dimensional mine model corresponding to the target model cache data includes: Convert the target model cache data from binary format to JSON format, and generate a second 3D mine model corresponding to the target model cache data based on the JSON-format target model cache data and the association relationship.

3. The method according to claim 1, characterized in that, The expiration period is randomly generated when the target model cache data is stored in the cache, and the expiration period is a multiple of a specified threshold.

4. The method according to claim 1, characterized in that The method further includes: If it is monitored that the model basic data corresponding to the target model cache data changes, create a third 3D mine model based on the changed model basic data; Establish an association relationship between the third 3D mine model and the model structure data set; Divide the model structure data set into multiple second sub-data sets based on a preset business type, and perform format conversion on each second sub-data set to obtain changed model cache data; Store the changed model cache data in the database set.

5. A loading device for a three-dimensional model of a mine, characterized in that, The device is used to implement the method for loading a 3D mine model according to claim 1, and the device includes: A judgment module, configured to, if a model loading instruction is received, judge whether the target model cache data corresponding to the model loading instruction is stored in the database set; wherein, the database set stores model cache data, and the model cache data is generated based on a pre-established first 3D mine model; A data reading module, configured to, when the judgment result of the judgment module is yes, read the target model cache data from the database set; A model loading module, configured to perform parsing processing on the target model cache data to obtain a second 3D mine model corresponding to the target model cache data, and load the second 3D mine model into a specified 3D scene.

6. A server, characterized in that, It includes a processor and a memory, the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to implement the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for quickly loading space data through three-dimensional GIS (global information system)

    CN104616354A

  • Three-dimensional animation production method and system and storage medium

    CN111179391A