CN115546411A - Loading method and device of three-dimensional mine model, server and storage medium - Google Patents

Loading method and device of three-dimensional mine model, server and storage medium Download PDF

Info

Publication number
CN115546411A
CN115546411A CN202211282008.2A CN202211282008A CN115546411A CN 115546411 A CN115546411 A CN 115546411A CN 202211282008 A CN202211282008 A CN 202211282008A CN 115546411 A CN115546411 A CN 115546411A
Authority
CN
China
Prior art keywords
model
cache data
data
mine
dimensional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211282008.2A
Other languages
Chinese (zh)
Inventor
田翔宇
韩春宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingying Digital Technology Co Ltd
Original Assignee
Jingying Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingying Digital Technology Co Ltd filed Critical Jingying Digital Technology Co Ltd
Priority to CN202211282008.2A priority Critical patent/CN115546411A/en
Publication of CN115546411A publication Critical patent/CN115546411A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Geometry (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a loading method, a loading device, a server and a storage medium of a three-dimensional mine model, which comprise the following steps: if the model loading instruction is received, judging whether target model cache data corresponding to the model loading instruction is stored in the database set or not; the method comprises the steps that model cache data are stored in a database set, and the model cache data are generated based on a pre-established first mine three-dimensional model; if so, reading target model cache data from the database set; and analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into the specified three-dimensional scene. The method can accelerate the display of the three-dimensional mine scene and obviously improve the rendering efficiency of the three-dimensional mine scene.

Description

Loading method and device of three-dimensional mine model, server and storage medium
Technical Field
The invention relates to the technical field of geospatial information systems, in particular to a loading method and device of a three-dimensional mine model, a server and a storage medium.
Background
In order to clearly, intuitively and truly express a mine structure, a large number of data supports such as real coordinates (x, y, z) and model parameters (section shape, horizontal azimuth angle, inclination angle and length) in a unified Geographic (projection) coordinate System are needed, and a mine three-dimensional model is dynamically constructed on the basis of a GIS (Geographic Information System). Due to the fact that the spatial structure of the underground model is complex and mutually influenced and dependent, from algorithm analysis of basic data to dynamic construction of a high-precision multi-detail level model, a large amount of three-dimensional model data with complex structure and multiple scales are generated in a three-dimensional scene, and the phenomenon that loading display of the whole mine three-dimensional scene is slow and unsmooth occurs.
Disclosure of Invention
In view of this, the present invention provides a loading method, an apparatus, a server and a storage medium for a three-dimensional mine model, which can accelerate the display of a three-dimensional mine scene and significantly improve the rendering efficiency of the three-dimensional mine scene.
In a first aspect, an embodiment of the present invention provides a method for loading a three-dimensional mine model, including: if a model loading instruction is received, judging whether target model cache data corresponding to the model loading instruction is stored in a database set or not; the database set stores model cache data, and the model cache data are generated based on a pre-established first mine three-dimensional model; if yes, reading the target model cache data from the database set; and analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into a specified three-dimensional scene.
In one embodiment, the method further comprises: if the target model cache data corresponding to the model loading instruction is not stored in the database set, obtaining model basic data corresponding to the target model cache data, and constructing a first mine three-dimensional model based on the model basic data; the model basic data comprise coordinate data and/or model parameter data, and the first mine three-dimensional model is in a JSON format; establishing an incidence relation between the first mine three-dimensional model and a model structure data set; wherein the model structure data set is used for representing the geometric structure and/or the model material of the first mine three-dimensional model; dividing the model structure data set into a plurality of first sub data sets based on a preset service type, and performing format conversion on each first sub data set to obtain model cache data corresponding to the first mine three-dimensional model; the model cache data adopts a binary format; and storing model cache data corresponding to the first mine three-dimensional model into the database set.
In one embodiment, the step of analyzing the target model cache data to obtain a second three-dimensional mine model corresponding to the target model cache data includes: and converting the target model cache data from a binary format into a JSON format, and generating a second mine three-dimensional model corresponding to the target model cache data based on the target model cache data in the JSON format and the association relation.
In one embodiment, the database set includes a database and a cache, and the step of determining whether the database set stores target model cache data corresponding to the model load instruction includes: judging whether target model cache data corresponding to the model loading instruction are stored in the cache or not; if not, judging whether the target model cache data is stored in the database or not according to the target service type and the model identification carried by the model loading instruction; and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
In one embodiment, the method further comprises: if the target model cache data are stored in the cache, judging whether the validity period of the target model cache data is greater than 0; if yes, determining that the target model cache data is 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 is overdue, and judging whether the database stores the target model cache data or not according to the target service type and the model identification carried by the model loading instruction; and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
In one embodiment, the validity period is randomly generated when the target model cache data is stored to the cache, the validity period being a multiple of a specified threshold.
In one embodiment, the method further comprises: if the model basic data corresponding to the target model cache data are monitored to be changed, a third mine three-dimensional model is established based on the changed model basic data; establishing an incidence relation between the third mine three-dimensional model and a model structure data set; dividing the model structure data set into a plurality of second sub data sets based on a preset service type, and performing format conversion on each second sub data set to obtain changed model cache data; and storing the changed model cache data to the database set.
In a second aspect, an embodiment of the present invention further provides a loading apparatus for a three-dimensional mine model, including: the judging module is used for judging whether target model cache data corresponding to the model loading instruction are stored in a database set or not if the model loading instruction is received; the database set stores model cache data, and the model cache data are generated based on a pre-established first mine three-dimensional model; the data reading module is used for reading the target model cache data from the database set when the judgment result of the judgment module is yes; and the model loading module is used for analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into a specified three-dimensional scene.
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 any one of the methods provided in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement any one of the methods provided in the first aspect.
According to the loading method and device of the three-dimensional mine model, the server and the storage medium provided by the embodiment of the invention, if the model loading instruction is received and the target model cache data corresponding to the model loading instruction is stored in the database set, the target model cache data is read from the database set, the target model cache data is analyzed, the second three-dimensional mine model corresponding to the target model cache data is obtained, and the second three-dimensional mine model is loaded into the appointed three-dimensional scene. The database set stores model cache data, and the model cache data are generated based on a pre-established first mine three-dimensional model. According to the method, the corresponding second mine three-dimensional model can be obtained by analyzing the target model cache data, and the real coordinates, model parameters and the like do not need to be analyzed to rebuild the mine three-dimensional model, so that the display of the mine three-dimensional scene can be accelerated, and the rendering efficiency of the mine three-dimensional scene is remarkably improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a loading method of a three-dimensional mine model according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another loading method of a three-dimensional mine model according to an embodiment of the present invention;
fig. 3 is an implementation process of a loading method of a three-dimensional mine model according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another loading method for a three-dimensional mine model according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a loading device of a three-dimensional mine model according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, 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 with reference to the embodiments, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
At present, the phenomenon of slow and unsmooth loading display of the three-dimensional mine scene exists, and based on the phenomenon, the invention provides a loading method, a loading device, a server and a storage medium of a three-dimensional mine model, so that the display of the three-dimensional mine scene can be accelerated, and the rendering efficiency of the three-dimensional mine scene is obviously improved.
To facilitate understanding of this embodiment, first, a method for loading a three-dimensional mine model disclosed in this embodiment of the present invention is described in detail, referring to a schematic flow chart of a method for loading a three-dimensional mine model shown in fig. 1, where the method mainly includes the following steps S102 to S106:
and step S102, if the model loading instruction is received, judging whether target model cache data corresponding to the model loading instruction is stored in the database set. The database set comprises a database and a cache, model cache data are stored in the database set, the model cache data are generated based on a pre-established first mine three-dimensional model, the first mine three-dimensional model can be obtained by analyzing data such as coordinates and model parameters under a GIS platform unified geographical (projection) coordinate system through an SDK (Software Development Kit), and the model parameters comprise section shapes, horizontal azimuth angles, inclination angles, lengths and the like. In an embodiment, target model cache data corresponding to a model loading instruction may be searched in a cache, if the target model cache data is not found in the cache or the target model cache data is expired, the target model cache data corresponding to the model loading instruction is searched in a database, if the target model cache data is found in the database, the target model cache data is synchronized into the cache and returned to the target model cache data, and if the target model cache data is not found in the database, a first three-dimensional mine model is reconstructed, and the required target model cache data is obtained based on the first three-dimensional mine model.
And step S104, if so, reading the target model cache data from the database set.
And S106, analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into the specified three-dimensional scene. The second mine three-dimensional model may be a complete first mine three-dimensional model, or may be a local mine three-dimensional model corresponding to a target service type carried by the model loading instruction. In an implementation manner, the target model cache data may be converted from a binary format to a JSON format, and based on the target model cache data in the JSON format and an association relationship (which may also be referred to as an index), a second three-dimensional mine model corresponding to the target model cache data is generated.
According to the loading method of the three-dimensional mine model, provided by the embodiment of the invention, the corresponding second three-dimensional mine model can be obtained by analyzing the target model cache data, and the real coordinates, model parameters and the like do not need to be analyzed to rebuild the three-dimensional mine model, so that the display of the three-dimensional mine scene can be accelerated, and the rendering efficiency of the three-dimensional mine scene is obviously improved.
Specifically, the embodiment of the present invention provides an implementation manner for generating cache data, which refers to the following steps 1 to 4, in which cache data needs to be generated and stored in a database set when target model cache data corresponding to a model load instruction is not stored in the database set:
step 1, obtaining model basic data corresponding to target model cache data, and constructing a first mine three-dimensional model based on the model basic data; the model basic data comprise coordinate data and/or model parameter data, the first mine three-dimensional model is in a JSON format, the coordinate data are coordinates of a GIS platform unified geographic coordinate system, and the model parameter data comprise section shapes, horizontal azimuth angles, inclination angles, lengths and the like. In one embodiment, the coordinate data and the model parameter data may be resolved by the SDK, thereby enabling dynamic construction of the first three-dimensional model of the mine using the SDK.
And 2, establishing an incidence relation between the first mine three-dimensional model and the model structure data set. The model structure data set is used for representing the geometric structure and/or the model material of the first mine three-dimensional model, the model material comprises texture and/or a map, and the incidence relation can also be called as an index. In a specific implementation, data in a standard JSON format (i.e., 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.
And 3, dividing the model structure data set into a plurality of first sub data sets based on the preset service type, and performing format conversion on each first sub data set to obtain model cache data corresponding to the first mine three-dimensional model. The model cache data is in a binary format, and the preset service types comprise one or more of data of underground roadways, working faces, well field boundaries, ponding areas, three areas, drilling holes, faults, collapse columns, aquifers, geology and the like and ground buildings above the well. Illustratively, taking the service type as a working surface as an example, the working surface has a plurality of working surfaces; the single model refers to one of the working surfaces, and the structure of one working surface comprises a geometric structure and a material. In specific implementation, the model structure data set may be divided by taking the working surface as a unit to obtain a plurality of first sub data sets, and each first sub data set is converted into binary data, so as to facilitate subsequent searching and updating by taking the working surface as a unit.
And 4, storing model cache data corresponding to the first mine three-dimensional model into a database set. In one embodiment, the model cache data corresponding to the first mine three-dimensional model may be stored in a database, and the model cache data may be synchronized into a cache.
In addition, as to the step S102, an embodiment of the present invention further provides an implementation manner of determining whether a database set stores target model cache data corresponding to a model loading instruction, referring to a schematic flowchart of another mine three-dimensional model loading method shown in fig. 2, where the method mainly includes the following steps a to e:
step a, judging whether target model cache data corresponding to the model loading instruction is stored in the cache. If yes, executing step d; if not, executing the step b. In a specific implementation, the model loading instruction carries a target service TYPE and an Identity document (Identity document) to query whether target model cache data is stored in the cache, and the Identity document is also a model identifier.
And b, judging whether target model cache data are stored in the database or not according to the target service type and the model identification carried by the model loading instruction. If yes, executing step c; if not, the process is ended. In practical application, if the target model cache data is not stored in the cache, whether the target model cache data is stored in the database is further inquired according to the target service TYPE TYPE and the single model ID.
And c, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
And d, judging whether the validity period of the target model cache data is greater than 0. If yes, determining that the cache data of the target model is not expired, and executing the step e; if not, determining that the target model cache data is expired, and executing the step b. The valid period is randomly generated when the target model cache data is stored in the cache, is a multiple of a specified threshold value, and is reduced along with the time. In one embodiment, when the target model cache data is stored in the cache, an expiration date is randomly generated in units of 30 days, and in addition, an EXPIRE attribute of the target model cache data is used for representing the expiration date of the data, so that whether the target model cache data is expired is judged according to the EXPIRE attribute.
And e, determining that the target model cache data is stored in the database set.
After the target model cache data are obtained, the target model cache data can be analyzed to obtain a second mine three-dimensional model corresponding to the target model cache data, specifically, the target model cache data can be converted from a binary format into a JSON format, and the second mine three-dimensional model corresponding to the target model cache data is generated based on the target model cache data and the association relation in the JSON format. In practical application, binary data acquired from the analysis cache is converted into JSON data, data in a standard JSON format is constructed through model indexes and returned, and finally the data in the standard JSON format is analyzed into a three-dimensional model through the SDK and loaded in a three-dimensional scene.
In order to accelerate the display of a three-dimensional scene and improve the rendering efficiency, the data of the three-dimensional model is simplified, the three-dimensional model is converted into data in a standard JSON format according to a certain rule, and the relationship among the internal geometric structure, the material (texture and map) and the model is established through indexes. However, as the three-dimensional model grows, the data of the three-dimensional model continuously increases, and it is impractical to cache all the huge data in the memory of the client in the face of the huge data, so that the efficient visualization of a large range of scenes puts very high requirements on computer hardware and application software. The main idea of the embodiment of the invention is as follows: when the three-dimensional mine model is loaded in the three-dimensional scene, the analysis of coordinates (x, y, z) of GIS basic data and model parameters (section shape, horizontal azimuth angle, inclination angle and length) is omitted by reading the three-dimensional model data cached by the server, and the process of dynamically creating the model by the SDK accelerates the display of the three-dimensional scene and improves the rendering efficiency.
For convenience of understanding, an embodiment of the present invention provides an application example of a loading method for a three-dimensional mine model, and reference is made to an implementation process of the loading method for a three-dimensional mine model shown in fig. 3, specifically: (1) Firstly, initializing a three-dimensional scene, wherein the three-dimensional scene is used for loading a three-dimensional model of a mine; (2) Judging whether target model cache data exist in the database set or not; (3) If the database set does not have target model cache data, dynamically constructing a three-dimensional mine model through the SDK; (4) Outputting the three-dimensional mine model into data in a standard JSON format through an SDK (software development kit), and associating a model structure through indexing; (5) If the database set has target model cache data, firstly judging whether the target model cache data exists in the cache or whether the target model cache data is overdue; (6) If the target model cache data in the cache does not exist or is overdue, reading the target model cache data of the database, and synchronizing the target model cache data into the cache; (7) If the target model cache data exist in the cache, reading the target model cache data; (8) Converting binary data acquired from the analysis cache into JSON data, constructing data in a standard JSON format through model indexes, and returning; (9) And finally, analyzing the standard JSON format data into a three-dimensional model through the SDK and loading the three-dimensional model in a three-dimensional scene.
The embodiment of the invention converts the three-dimensional model into JSON data, constructs cache data through index association and stores the cache data to the server, thereby realizing the sharing effect of multiple clients. Compared with the method without using a cache technology, the method has the advantages that the dynamic modeling timeliness is guaranteed, the display of a three-dimensional scene is accelerated, and the rendering efficiency is improved.
In an implementation manner, the embodiment of the present invention may further perform snooping on the model basic data, so as to update the model cache data in time when it is snooped that the model basic data is changed. Referring to a flow chart of another loading device for a three-dimensional mine model shown in fig. 4, the method mainly includes the following steps:
and (I) if the model basic data change corresponding to the target model cache data is monitored, establishing a third mine three-dimensional model based on the changed model basic data. In practical application, whether basic data managed by the GIS platform changes or not can be judged, and the GIS platform exits if the basic data does not change.
And (II) establishing an incidence relation between the third mine three-dimensional model and the model structure data set. In one embodiment, if the coordinates, model parameters, etc. of a certain service type (e.g., a working surface) change, the three-dimensional model is dynamically built using the SDK by parsing the data in the GIS platform unified geographic (projection) coordinate system.
And thirdly, dividing the model structure data set into a plurality of second sub data sets based on the preset service type, and performing format conversion on each second sub data set to obtain the changed model cache data. In one embodiment, 3, outputting the three-dimensional model as standard JSON format data through SDK, wherein the model structure comprises a geometric structure and a material (texture and a map), associating the model structure through index, then modularly converting the model structure into binary data, updating corresponding data in the database according to the TYPE of the service (such as a working face) and the ID of the single model, and simultaneously updating the data of the cache database.
And (IV) storing the changed model cache data into a database set.
As to the loading method of the three-dimensional mine model provided in the foregoing embodiment, an embodiment of the present invention provides a loading apparatus of a three-dimensional mine model, and referring to a schematic structural diagram of a loading apparatus of a three-dimensional mine model shown in fig. 5, the apparatus mainly includes the following components:
a determining module 502, configured to determine whether a target model cache data corresponding to a model loading instruction is stored in a database set if the model loading instruction is received; the method comprises the steps that model cache data are stored in a database set, and the model cache data are generated based on a pre-established first mine three-dimensional model;
the data reading module 504 is configured to, when the determination result of the determining module is yes, read target model cache data from the database set;
and the model loading module 506 is configured to analyze 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 the specified three-dimensional scene.
According to the loading device for the three-dimensional mine model, provided by the embodiment of the invention, the corresponding second three-dimensional mine model can be obtained by analyzing the target model cache data, and the analysis on real coordinates, model parameters and the like is not needed to build the three-dimensional mine model again, so that the display of the three-dimensional mine scene can be accelerated, and the rendering efficiency of the three-dimensional mine scene is obviously improved.
In an embodiment, the apparatus further includes a cache data generation module, configured to: if the target model cache data corresponding to the model loading instruction are not stored in the database set, obtaining model basic data corresponding to the target model cache data, and constructing a first mine three-dimensional model based on the model basic data; the model base data comprise coordinate data and/or model parameter data, and the first mine three-dimensional model is in a JSON format; establishing an incidence relation between a first mine three-dimensional model and a model structure data set; the model structure data set is used for representing the geometric structure and/or the model material of the first mine three-dimensional model; dividing the model structure data set into a plurality of first sub data sets based on a preset service type, and performing format conversion on each first sub data set to obtain model cache data corresponding to the first mine three-dimensional model; the model cache data adopts a binary format; and storing model cache data corresponding to the first mine three-dimensional model into a database set.
In one embodiment, model loading module 506 is further configured to: and converting the target model cache data from a binary format into a JSON format, and generating a second mine three-dimensional model corresponding to the target model cache data based on the target model cache data in the JSON format and the association relation.
In one embodiment, the database collection includes a database and a cache, and the determining module 502 is further configured to: judging whether target model cache data corresponding to the model loading instruction are stored in the cache; if not, judging whether target model cache data are stored in the database or not according to the target service type and the model identification carried by the model loading instruction; and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
In one embodiment, the determining module 502 is further configured to: if target model cache data are stored in the cache, judging whether the validity period of the target model cache data is greater than 0; if yes, determining that the target model cache data is 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 is overdue, and judging whether the target model cache data is stored in the database or not according to the target service type and the model identification carried by the model loading instruction; and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
In one embodiment, the validity period is randomly generated when the target model cache data is stored to the cache, the validity period being a multiple of a specified threshold.
In one embodiment, the apparatus further includes a changing module configured to: if monitoring that the model basic data corresponding to the target model cache data are changed, establishing a third mine three-dimensional model based on the changed model basic data; establishing an incidence relation between the third mine three-dimensional model and the model structure data set; dividing the model structure data set into a plurality of second sub data sets based on a preset service type, and performing format conversion on each second sub data set to obtain changed model cache data; and storing the changed model cache data into a database set.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention provides a server, and particularly, the server comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above described embodiments.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server 100 includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, wherein the processor 60, the communication interface 63 and the memory 61 are connected through the bus 62; the processor 60 is arranged to execute executable modules, such as computer programs, stored in the memory 61.
The Memory 61 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 63 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used.
The bus 62 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 6, but this does not indicate only one bus or one type of bus.
The memory 61 is used for storing a program, the processor 60 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 60, or implemented by the processor 60.
The processor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 60. The Processor 60 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 61, and the processor 60 reads the information in the memory 61 and, in combination with its hardware, performs the steps of the above method.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A loading method of a three-dimensional mine model is characterized by comprising the following steps:
if a model loading instruction is received, judging whether target model cache data corresponding to the model loading instruction is stored in a database set or not; the database set is used for storing model cache data, and the model cache data are generated based on a pre-established first mine three-dimensional model;
if yes, reading the target model cache data from the database set;
and analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into a specified three-dimensional scene.
2. The method of claim 1, further comprising:
if the target model cache data corresponding to the model loading instruction is not stored in the database set, obtaining model basic data corresponding to the target model cache data, and constructing a first mine three-dimensional model based on the model basic data; the model base data comprise coordinate data and/or model parameter data, and the first mine three-dimensional model is in a JSON format;
establishing an incidence relation between the first mine three-dimensional model and a model structure data set; wherein the model structure data set is used for representing the geometric structure and/or the model material of the first mine three-dimensional model;
dividing the model structure data set into a plurality of first sub data sets based on a preset service type, and performing format conversion on each first sub data set to obtain model cache data corresponding to the first mine three-dimensional model; the model cache data adopts a binary format;
and storing model cache data corresponding to the first mine three-dimensional model into the database set.
3. The method according to claim 2, wherein the step of analyzing the target model cache data to obtain the second three-dimensional mine model corresponding to the target model cache data comprises:
and converting the target model cache data from a binary format into a JSON format, and generating a second mine three-dimensional model corresponding to the target model cache data based on the target model cache data in the JSON format and the association relation.
4. The method according to claim 1, wherein the database set includes a database and a cache, and the step of determining whether the database set stores target model cache data corresponding to the model load instruction comprises:
judging whether target model cache data corresponding to the model loading instruction are stored in the cache or not;
if not, judging whether the target model cache data is stored in the database or not according to the target service type and the model identification carried by the model loading instruction;
and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
5. The method of claim 4, further comprising:
if the target model cache data are stored in the cache, judging whether the validity period of the target model cache data is greater than 0;
if yes, determining that the target model cache data is 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 is overdue, and judging whether the database stores the target model cache data or not according to the target service type and the model identification carried by the model loading instruction;
and if the target model cache data are stored in the database, synchronizing the target model cache data to the cache so as to read the target model cache data from the cache.
6. The method of claim 5, wherein the validity period is randomly generated when the target model cache data is stored to the cache, the validity period being a multiple of a specified threshold.
7. The method of claim 1, further comprising:
if the model basic data corresponding to the target model cache data are monitored to be changed, a third mine three-dimensional model is established based on the changed model basic data;
establishing an incidence relation between the third mine three-dimensional model and a model structure data set;
dividing the model structure data set into a plurality of second sub data sets based on a preset service type, and performing format conversion on each second sub data set to obtain changed model cache data;
and storing the changed model cache data to the database set.
8. The utility model provides a loading device of three-dimensional model of mine which characterized in that includes:
the judging module is used for judging whether target model cache data corresponding to the model loading instruction is stored in a database set or not if the model loading instruction is received; the database set is used for storing model cache data, and the model cache data are generated based on a pre-established first mine three-dimensional model;
the data reading module is used for reading the target model cache data from the database set when the judgment result of the judgment module is yes;
and the model loading module is used for analyzing the target model cache data to obtain a second mine three-dimensional model corresponding to the target model cache data, and loading the second mine three-dimensional model into a specified three-dimensional scene.
9. A server comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A computer-readable storage medium having computer-executable instructions stored thereon which, when invoked and executed by a processor, cause the processor to perform the method of any of claims 1 to 7.
CN202211282008.2A 2022-10-19 2022-10-19 Loading method and device of three-dimensional mine model, server and storage medium Pending CN115546411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211282008.2A CN115546411A (en) 2022-10-19 2022-10-19 Loading method and device of three-dimensional mine model, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211282008.2A CN115546411A (en) 2022-10-19 2022-10-19 Loading method and device of three-dimensional mine model, server and storage medium

Publications (1)

Publication Number Publication Date
CN115546411A true CN115546411A (en) 2022-12-30

Family

ID=84736290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211282008.2A Pending CN115546411A (en) 2022-10-19 2022-10-19 Loading method and device of three-dimensional mine model, server and storage medium

Country Status (1)

Country Link
CN (1) CN115546411A (en)

Similar Documents

Publication Publication Date Title
CN109165215B (en) Method and device for constructing space-time index in cloud environment and electronic equipment
CN109408657B (en) Method and system for rapidly drawing super-large-scale spatial data
CN111090712B (en) Data processing method, device, equipment and computer storage medium
US9396512B2 (en) Fully parallel construction of k-d trees, octrees, and quadtrees in a graphics processing unit
US9965821B2 (en) Fully parallel in-place construction of 3D acceleration structures in a graphics processing unit
CN113127771A (en) Application point burying method and device, computing equipment and system
CN110321443B (en) Three-dimensional live-action model database construction method and device and data service system
CN111260784B (en) Urban three-dimensional space grid compression coding method and device and terminal equipment
CN110990516A (en) Map data processing method and device and server
CN110647596B (en) Map data processing method and device
CN112348317B (en) Method and system for generating project planning conditions of smart city
CN114049462B (en) Three-dimensional model monomer method and device
CN110209748B (en) Method and apparatus for indexing geofences
CN109683858B (en) Data processing method and device
CN110955656A (en) Vector data topological operation index optimization mechanism and construction method
Wu et al. Novel parallel algorithm for constructing Delaunay triangulation based on a twofold-divide-and-conquer scheme
Neun et al. Web service approaches for providing enriched data structures to generalisation operators
CN117608476A (en) Vector data block storage method and device, electronic equipment and medium
CN115952252B (en) Semantic tile data processing method and device based on dynamic rendering and electronic equipment
CN109710633B (en) Method and device for determining man-in-middle information and intelligent terminal
CN110688995B (en) Map query processing method, computer-readable storage medium and mobile terminal
CN112231481A (en) Website classification method and device, computer equipment and storage medium
CN109412149B (en) Power grid subgraph construction method based on regional division, topology analysis method and device
CN115546411A (en) Loading method and device of three-dimensional mine model, server and storage medium
CN113722415B (en) Point cloud data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination