CN116977516A - BIM model loading method, device and equipment based on Web end and readable storage medium - Google Patents

BIM model loading method, device and equipment based on Web end and readable storage medium Download PDF

Info

Publication number
CN116977516A
CN116977516A CN202210432121.8A CN202210432121A CN116977516A CN 116977516 A CN116977516 A CN 116977516A CN 202210432121 A CN202210432121 A CN 202210432121A CN 116977516 A CN116977516 A CN 116977516A
Authority
CN
China
Prior art keywords
bim model
component data
component
data
loading
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
CN202210432121.8A
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.)
Glodon Co Ltd
Original Assignee
Glodon 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 Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202210432121.8A priority Critical patent/CN116977516A/en
Publication of CN116977516A publication Critical patent/CN116977516A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Computer Graphics (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a Web-based BIM model loading method, a Web-based BIM model loading device, a Web-based BIM model loading equipment and a Web-based BIM model loading readable storage medium, wherein the method comprises the following steps: when monitoring that the current network environment meets the preset condition, triggering a pre-loading instruction of the BIM model, and acquiring a BIM model identifier in the pre-loading instruction; acquiring component data of the BIM model from the Web terminal according to the BIM model identification, and storing the component data into a client database; and responding to the triggered loading instruction of the BIM model, extracting component data of the BIM model from a client database and rendering the component data to realize loading of the BIM model. The application solves the technical problem of heavy development and maintenance workload caused by developing various types of client applications in the prior art, realizes the pre-storage of data through the pre-loading instruction, ensures the stability of the loading process, and simultaneously reduces development work for different application clients based on the acquisition and storage of the model data by the Web terminal, so that the development process is easier to realize and maintain.

Description

BIM model loading method, device and equipment based on Web end and readable storage medium
Technical Field
The application relates to the technical field of building engineering BIM model loading, in particular to a Web-end-based BIM model loading method, a Web-end-based BIM model loading device, a Web-end-based BIM model loading equipment and a Web-end-based BIM model loading readable storage medium.
Background
With the improvement of the performance of the Web client, the related application of the three-dimensional graph rendering of the Web client has been rapidly developed, particularly, in the field of building and city management, the rendering of the three-dimensional BIM model (Building Information Modeling) can be realized through the Web client, and a series of management applications can be established based on the three-dimensional BIM model. In an actual application scene, when a user needs to use a management application based on a three-dimensional BIM model on a construction site, the problem that the application loading of the three-dimensional BIM model of a Web end is slow and even can not be completely loaded due to poor network coverage condition of the construction site and the problem that the model data can not be obtained by stably connecting a network is difficult to normally operate.
Aiming at the situation, the prior art scheme is as follows: fig. 1 shows a flow chart of a BIM model loading scheme, as shown in fig. 1, based on an instruction for developing client applications, different types of client applications, such as an Android mobile terminal, an IOS mobile terminal, a Windows PC terminal, a Linux PC terminal, and the like, are acquired, various clients are analyzed, BIM model storage and extraction methods applied to each client are respectively established, and BIM model data is stored in all clients, and continues to be extracted from the clients for loading when in use. The disadvantage of this solution is that the application needs to develop related applications for multiple clients (including) and a series of functions of storing model resources, extracting model resources, etc. are built for different clients, and the BIM application needs to access the model resource extracting functions of different clients. The technical scheme has huge application development and maintenance workload, and the mode changes the original application from the B/S (browser/server) application to the C/S application (client/server), thereby losing the advantages of easy development, easy updating, easy maintenance and the like of the original application.
Aiming at the technical problem that development and maintenance workload is heavy caused by developing various types of client applications in the prior art, no effective solution exists at present.
Disclosure of Invention
The application aims to provide a Web-based BIM model loading method, a Web-based BIM model loading device, a Web-based BIM model loading equipment and a Web-based BIM model loading device, and a Web-based BIM model loading device can solve the technical problem that development and maintenance workload is heavy due to the fact that various types of client applications are developed in the prior art.
One aspect of the present application provides a Web-based BIM model loading method, which includes: when monitoring that the current network environment meets the preset condition, triggering a pre-loading instruction of the BIM model, and acquiring a BIM model identifier in the pre-loading instruction; acquiring component data of the BIM model from the Web terminal according to the BIM model identification, and storing the component data into a client database; and responding to the triggered loading instruction of the BIM model, extracting component data of the BIM model from a client database and rendering the component data to realize loading of the BIM model.
Optionally, obtaining the component data of the BIM model from the Web end according to the BIM model identification, and storing the component data in a database of the client end, including: creating a corresponding sub-repository in the client database according to the BIM model identification; acquiring a data resource list corresponding to the BIM model identifier, wherein the data resource list comprises a component data identifier and component data path information, and the component data identifier is uniquely corresponding to the component data path information; and acquiring component data of the BIM model from the Web end according to the component data identification and the component data path information in the data resource list, storing the component data in the sub-storage library, and determining the index of the component data identified as the component data of the BIM model.
Optionally, acquiring component data of the BIM model from the Web terminal according to the component data identifier and the component data path information in the data resource list, and storing the component data in the sub-repository, including: acquiring component data of the BIM model from the Web terminal through component data path information in the data resource list; classifying the component data of the BIM model through the component data identification to obtain component data sets of different categories; component data of the BIM model is stored to a sub-repository according to the category to which the component data set belongs.
Optionally, the belonging category of the component data set includes component geometry information, component map information, and component attribute information, and storing component data of the BIM model to the sub-repository according to the belonging category of the component data set includes: if the category of the component data set is component mapping information or component attribute information, directly storing component data of the BIM model in the component data set into a sub-storage library; and if the category of the component data set is component geometric information, carrying out light weight processing on the component data of the BIM model in the component data set to obtain simplified component geometric data, and storing the simplified component geometric data in a sub-storage library.
Optionally, if the category of the component data set is component geometry information, performing light weight processing on component data of the BIM model to obtain simplified geometry data and storing the simplified geometry data in a sub-repository, including: acquiring BIM model component data belonging to the component geometric information, wherein the BIM model component data comprises shape elements and position elements; classifying BIM model component data according to shape elements to obtain component geometric data sets of different categories; and merging BIM model component data in each component geometry data set according to the position elements to obtain simplified component geometry data and storing the simplified component geometry data in a sub-storage library.
Optionally, extracting component data of the BIM model from the client database and rendering to implement loading of the BIM model, including: traversing a client database, and judging whether BIM model identification exists or not; if the BIM model identifier exists, determining an extraction mode of the component data of the BIM model according to the component data identifier; extracting component data of the BIM model from a client database in a BIM model identification and extraction mode; and rendering the component data of the BIM according to the space analytic geometry method to realize loading of the BIM.
Optionally, extracting component data of the BIM model from the client database and rendering to implement loading of the BIM model, including: if the BIM model identification does not exist, acquiring component data of the BIM model from the Web end according to the BIM model identification, storing the component data into a client database, extracting the component data of the BIM model from the client database, and analyzing the component data to realize loading of the BIM model.
Another aspect of the present application provides a Web-based BIM model loading device, which is characterized in that the device includes: the acquisition module is used for monitoring and acquiring a pre-loading instruction of the BIM model when the current network environment meets the preset condition, and acquiring a BIM model identifier in the pre-loading instruction; the storage module is used for acquiring the component data of the BIM model from the Web end according to the BIM model identification and storing the component data into the client database; and the loading module is used for responding to the triggered loading instruction of the BIM model, extracting component data of the BIM model from the client database and rendering the component data so as to realize loading of the BIM model.
Yet another aspect of the present application provides a computer device comprising: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that the processor executes the computer program to realize the Web-based BIM model loading method of any embodiment.
Yet another aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the Web-based BIM model loading method of any of the embodiments described above. Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
According to the Web-end-based BIM model loading method, device, equipment and readable storage medium, when the system monitors that the current network environment meets the preset condition, a pre-loading instruction of the BIM model is triggered, the pre-loading instruction is analyzed, a BIM model identifier carried by the pre-loading instruction is obtained, and corresponding model data can be obtained and stored through the BIM model identifier. The step realizes the pre-storage of BIM model data so as to ensure the stability of the data processing process. And based on the data storage operation of the independent BIM model, after receiving a loading instruction of the required BIM model, extracting component data of the BIM model from a client database for rendering, and completing loading of the BIM model. Meanwhile, based on the universality that the Web end is suitable for various application clients, when the Web end acquires and stores BIM model data, the application of each client does not need to be subjected to targeted development and resource allocation additionally, and the development and maintenance cost of the system is saved. The application solves the technical problem of heavy development and maintenance workload caused by developing various types of client applications in the prior art, realizes the pre-storage of data through the pre-loading instruction, ensures the stability of the loading process, and simultaneously reduces development work on different application clients based on the acquisition and storage of the data by the Web end, so that the development process is easier to realize and maintain.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a schematic flow chart of an alternative BIM model loading method provided in the background of the application;
FIG. 2 is a schematic flow chart of an alternative method for loading a BIM model based on a Web end according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of another alternative method for loading BIM model based on Web end according to the first embodiment of the present application;
FIG. 4 is a schematic flow chart of a Web-based BIM model loading method according to an embodiment of the present application;
FIG. 5 is a block diagram showing an alternative configuration of a Web-based BIM model loading device according to a second embodiment of the present application; and
fig. 6 is a block diagram of an alternative computer device suitable for implementing the Web-based BIM model loading method according to the third embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Example 1
The first embodiment of the present application provides a Web-based BIM model loading method, specifically, fig. 2 shows a flowchart of a Web-based BIM model loading method, as shown in fig. 2, where the Web-based BIM model loading method may include steps S1 to S3, where:
step S1, monitoring and knowing that the current network environment meets the preset condition, triggering a pre-loading instruction of the BIM, and obtaining a BIM model identifier in the pre-loading instruction.
Preferably, the current network environment satisfies the preset condition as a normal data transmission situation between any devices, where any device may be any combination of hardware and software between a computer and a terminal, between a computer and a computer, and in the same computer device, and no limitation is made herein. And the normal data transmission is that a request sent by one end can be completely received by the other end so as to ensure that the system data processing process runs successfully.
When the system monitors that the current network environment meets the preset condition, the background data processing module analyzes the pre-loading instruction by triggering the pre-loading instruction of the current BIM model, and then the BIM model identification carried by the pre-loading instruction can be obtained. The BIM model identifier may be a BIM model name, and is used for reflecting different types of business scenes.
And S2, acquiring the component data of the BIM model from the Web terminal according to the BIM model identification, and storing the component data in a client database.
After the Web terminal receives and acquires the BIM model preloading instruction, based on the unique mapping relation between the BIM model identification and the service interface, the service interface consistent with the BIM model name is called, so that all model component data of the BIM model can be acquired, and the acquired model component data is stored in a database of a client terminal, so that the stability and the integrity of the BIM model in the loading process are ensured. The Web end displays the Web page in the browser, and the Web page is suitable for all clients without additional development and maintenance, thereby reducing the operation cost of the system.
Preferably, step S2 may include steps S21 to S23, wherein:
step S21, creating a corresponding sub-repository in the client database according to the BIM model identification.
For the received preloading instruction of the whole BIM model data, firstly, based on BIM model identification, a corresponding sub-storage library is independently created in a client database (hereinafter expressed as IndexdDB), and all geometric data, attribute data resources and the like of the model are stored in the sub-storage library so as to carry out data isolation on each BIM model, and the influence of data confusion on the whole model loading effect is avoided. Meanwhile, a record library is established to record the stored model information, so that the storage condition of the data can be reflected in real time, and the effective management of the data is realized. After the BIM data is stored in the client, the BIM application can be supported to be normally used under the offline condition.
Step S22, a data resource list corresponding to the BIM model identification is obtained, wherein the data resource list comprises a component data identification and component data path information, and the component data identification and the component data path information are uniquely corresponding.
The data resource list is used for reflecting all component data information contained in the preloaded BIM model, and comprises component data identification and component data path information, wherein the component data identification can be a component name, namely a door, a wall, a beam, a column and the like, the component data path information can be a link address for acquiring component data, and the component data identification and the component data path information are uniquely corresponding.
Step S23, component data of the BIM model is obtained from the Web end according to the component data identification and the component data path information in the data resource list and is stored in the sub-storage library, and the index of the component data of the BIM model is determined by the component data identification.
And the unique corresponding component data can be acquired from the Web end through each component data identifier and component data path information in the data resource list, and meanwhile, in the process of storing the component data into the sub-storage library, the component data identifiers are used as corresponding indexes, so that the data searching in the model loading process is facilitated, and the loading efficiency of the data is saved.
Alternatively, step S23 may include steps A1 to A3, wherein:
a1, acquiring component data of a BIM model from a Web end through component data path information in a data resource list;
step A2, classifying the component data of the BIM model through the component data identification to obtain component data sets of different categories;
the specific storage process of the model data is that firstly, component data of the BIM model is obtained from a Web terminal based on component data path information, and then the component data is classified through component data identification, so that a plurality of component data sets of different types are obtained. Wherein the category to which the component data belongs includes component map information, component attribute information, and component geometry information.
And step A3, storing the component data of the BIM model to a sub-storage library according to the category of the component data set.
Because the display effect of each type of component data in the BIM model is different, the different display effects have corresponding storage modes so as to meet the corresponding calling mode of specific component data during loading. It is therefore necessary to determine the category to which the component data set belongs in order to store the component data in the sub-store.
Preferably, step A3 may include steps a31 to a32, wherein:
step A31, if the category of the component data set is component mapping information or component attribute information, directly storing the component data of the BIM model in the component data set into a sub-storage library;
the component mapping information is characteristic graphic data, such as color, brightness, self-luminosity, opacity and the like, which are formulated on the component and reflect the surface or surfaces of the component when being colored, and is stored in an ImageData format; the attribute information of the components is category information of the components, such as information of doors, windows, beams and the like, the attribute information is stored in a Json data format, and because the Key values of the attribute information of each component of the model are different and the String type data is taken as the main part, the space occupation difference between a Json structured form and a binary form is small, and meanwhile, the Json data can save a data analysis step.
Because the component mapping information and the component attribute information are component data with smaller storage capacity, the component data can be directly stored in the sub-storage library without additional processing. In the process of storing the component data of which the types are component mapping information and component attribute information, the corresponding identification of the BIM model component data is used as the index of the storage record.
And step A32, if the category of the component data set is component geometric information, carrying out light weight processing on the component data of the BIM model in the component data set to obtain simplified component geometric data, and storing the simplified component geometric data in a sub-storage library.
The component geometry information may include information such as vertex positions of the model components, patch indices, phasors, color values, UV coordinates, and the like. Specifically, the geometric information of the components of the BIM model is usually component data with the same shape and different positions, the data usually belong to the same group, the meaning of the representation in the BIM model is the same, and storing the same component data increases the storage pressure of the Web terminal and increases the data analysis duration. Therefore, the model component data is required to be subjected to light weight treatment, so that the similar component data is simplified and combined, and the storage resource is saved. Meanwhile, in the process of storing model data which belongs to the category of component geometric information, the model component data is identified as an index of the storage record, and data transmission and storage are carried out in a binary form, so that time consumption of network transmission and storage occupation of a client are reduced, repeated Key values in the data can be omitted in the binary form, and the binary data represents Number, boolean and other data types, so that storage space is saved compared with structured data.
Preferably, step a32 may include steps B1 to B3, wherein:
step B1, BIM model component data belonging to the component geometric information is obtained, wherein the BIM model component data comprises shape elements and position elements;
the shape elements may be triangle, rectangle, circle, etc., and the position elements may be vertex coordinates or center coordinates of the component in the world coordinate system where the BIM model is located, which is not limited herein.
Step B2, classifying BIM model component data according to shape elements to obtain component geometric data sets of different categories;
since the members having the same shape belong to the same category of members, the member data having the same shape elements and different position elements are divided into one group to constitute a member geometry data set of the category.
And B3, merging BIM model component data in each component geometric data set according to the position elements to obtain simplified component geometric data and storing the simplified component geometric data in a sub-storage library.
For each component geometry data set, selecting any component geometry data as reference data, acquiring position elements of the rest component geometry information in the component geometry data set, establishing a mapping relation between the position elements and the reference data, acquiring simplified component geometry data, and cleaning the rest component geometry information.
Specifically, the meaning of the representation of the component geometric information of the same category in the BIM model is the same, and the positions of the component geometric information are different, so that the geometric information of any component is selected as reference data, the reference data only has the position element of the selected component, the position elements of the rest component geometric information in the component geometric information set are acquired and are added to the reference data, the mapping relation between the position elements and the shape elements in the reference data is established, namely, one shape element of the reference data corresponds to all the position elements in the set, and simplified component geometric data is obtained, and can be correspondingly adjusted according to the specific positions of the components so as to meet the loading requirement. And meanwhile, the rest component geometric data in the set are cleaned, so that the storage space is released, and the resource waste is avoided.
And step S3, responding to the triggered loading instruction of the BIM model, extracting component data of the BIM model from a client database and rendering the component data so as to realize loading of the BIM model.
And the user generates a loading instruction of the BIM model at the current moment by clicking on a system display page, and the system responds to the loading instruction and extracts the required BIM model component data from the client database to render so as to realize loading of the BIM model.
Fig. 3 shows an optional flow chart of a Web-based BIM model loading method, as shown in fig. 3, firstly, based on a network environment, a BIM application initiating client stores a model instruction (i.e. the pre-loading instruction mentioned above), obtains a BIM model identifier carried in the instruction by analyzing the instruction, establishes an independent index db (database) through the BIM model identifier for placing BIM model data, and simultaneously obtains the BIM model data through a network request, and sequentially stores the obtained geometric data, texture map information and attribute information of the model of the BIM model. When the system is in a netless environment, receiving a loading instruction of the BIM model, acquiring BIM model data stored by a client, and rendering to finish loading of the BIM model required currently.
Alternatively, step S3 may include steps S31 to S34, wherein:
step S31, traversing the client database, and judging whether BIM model identification exists.
Firstly traversing a record base of a client database, judging whether a BIM model identifier to be loaded exists in the current record base, and if the BIM model identifier exists, performing an operation of acquiring model data from the client database.
Fig. 4 shows another alternative flow chart of a Web-based BIM model loading method, as shown in fig. 4, when the system is initialized, any model data is not obtained and stored yet, and at this time, the BIM model corresponding to the loading instruction received by the system is the first preloading condition. And for the first preloading instruction of the BIM, sequentially establishing an IndexdDB memory bank of the BIM, acquiring BIM data through network requests, and carrying out type analysis to pre-classify and store different types of model data (model geometric data, model texture map data and model attribute data). When a loading instruction of a required BIM model is received, judging whether a corresponding BIM model identifier exists in a client database based on a storage record, if so, directly acquiring corresponding BIM model data from the client database for loading; if not, acquiring BIM model data from the Web terminal again through the network request, storing the BIM model data, and finally extracting the stored model data for loading.
Step S32, if the BIM model identification exists, determining the extraction mode of the component data of the BIM model according to the component data identification.
The extraction modes of the component data are divided into two types:
when the component data identification belongs to the component mapping information or the component attribute information, directly calling the component data pointed by the component data identification in the sub-storage library to load.
When the component data are identified as component geometric information, determining the calling times of the corresponding component data according to the number of the position elements of each combined component geometric data; and acquiring the corresponding number of simplified component geometric data through the calling times, reserving one position element in each simplified component geometric data, and clearing the rest position elements, wherein the reserved position elements are different from each other.
The method has the advantages that the model component data with corresponding quantity are obtained through the calling times, corresponding position elements are reserved according to different positions, the detailed analysis steps for all component information are reduced, loading efficiency of the BIM model is improved, meanwhile, the quantity of all model components to be loaded is reserved in the loading process, loss of detail features of the model is avoided, the restoring accuracy is high, and user experience is improved.
S33, extracting component data of the BIM model from a client database in a BIM model identification and extraction mode;
and step S34, rendering the component data of the BIM model according to a space analytic geometry method so as to realize loading of the BIM model.
After the component data of the required BIM model are obtained, the simplified geometric component data are arranged and laid out through a mathematical method of space analysis geometry, component mapping information and component attribute information associated with the simplified geometric component data are adaptively mounted according to the position in a coordinate system, and the space layout of each component in the BIM model is restored again to finish loading of the BIM model.
Optionally, step S3 may include step S32', wherein:
and step S32', if the BIM model identification does not exist, acquiring component data of the BIM model from the Web terminal according to the BIM model identification, storing the component data into a client database, extracting the component data of the BIM model from the client database, and analyzing the component data to realize loading of the BIM model.
If the required BIM model identification does not exist in the current record library, the BIM model is not stored, component data of the BIM model are required to be obtained from the Web end through the BIM model identification, and are stored in the client database and loaded correspondingly, wherein the subsequent loading process is the same as the principle of existence of the BIM model identification, and repeated explanation is omitted.
According to the Web-based BIM model loading method, when the system monitors that the current network environment meets the preset condition, a pre-loading instruction of the BIM model is triggered, the pre-loading instruction is analyzed, a BIM model identifier carried by the pre-loading instruction is obtained, and corresponding model data can be obtained through the BIM model identifier and stored correspondingly. The step realizes the pre-storage of BIM model data so as to ensure the stability of the data processing process. And based on the data storage operation of the independent BIM model, after receiving a loading instruction of the required BIM model, extracting component data of the BIM model from a client database for rendering, and completing loading of the BIM model. Meanwhile, based on the universality that the Web end is suitable for various application clients, when the Web end acquires and stores BIM model data, the application of each client does not need to be subjected to targeted development and resource allocation additionally, and the development and maintenance cost of the system is saved. The application solves the technical problem of heavy development and maintenance workload caused by developing various types of client applications in the prior art, realizes the pre-storage of data through the pre-loading instruction, ensures the stability of the loading process, and simultaneously reduces development work on different application clients based on the acquisition and storage of the data by the Web end, so that the development process is easier to realize and maintain.
Example two
The second embodiment of the present application further provides a Web-based BIM model loading device, which corresponds to the Web-based BIM model loading method provided in the first embodiment, and corresponding technical features and technical effects are not described in detail in this embodiment, and reference may be made to the first embodiment for relevant points. Specifically, fig. 5 shows a structural block diagram of a Web-based BIM model loading device. As shown in fig. 5, the Web-based BIM model loading device 500 includes an obtaining module 501, a storing module 502, and a loading module 503, where:
the acquiring module 501 is configured to monitor and acquire a pre-load instruction of the BIM model when the current network environment meets a preset condition, and acquire a BIM model identifier in the pre-load instruction;
the storage module 502 is connected with the acquisition module 501 and is used for acquiring the component data of the BIM model from the Web end according to the BIM model identification and storing the component data into the client database;
and the loading module 503 is connected with the storage module 502 and is used for responding to the triggered loading instruction of the BIM model, extracting the component data of the BIM model from the client database and rendering the component data so as to realize loading of the BIM model.
Optionally, the storage module includes: the creation sub-module is used for creating a corresponding sub-repository in the client database according to the BIM model identification; the acquisition sub-module is used for acquiring a data resource list corresponding to the BIM model identifier, wherein the data resource list comprises a component data identifier and component data path information, and the component data identifier is uniquely corresponding to the component data path information; and the determining submodule is used for acquiring the component data of the BIM model from the Web end according to the component data identification and the component data path information in the data resource list, storing the component data in the sub-storage library and determining the index of the component data of the BIM model as the component data identification.
Optionally, determining the submodule includes: an acquiring unit, configured to acquire component data of the BIM model from the Web terminal through component data path information in the data resource list; the classifying unit is used for classifying the component data of the BIM model through the component data identification to obtain component data sets of different categories; and the storage unit is used for storing the component data of the BIM model to the sub-storage library according to the category of the component data set.
Optionally, the storage unit includes: the first storage subunit is used for directly storing the component data of the BIM model in the component data set into the sub-storage library if the category of the component data set is component mapping information or component attribute information; and the second storage subunit performs light weight processing on the component data of the BIM model in the component data set if the category of the component data set is component geometric information, so as to obtain simplified component geometric data and store the simplified component geometric data in the sub-storage library.
Optionally, the second storage subunit is specifically configured to: acquiring BIM model component data belonging to the component geometric information, wherein the BIM model component data comprises shape elements and position elements; classifying BIM model component data according to shape elements to obtain component geometric data sets of different categories; and merging BIM model component data in each component geometry data set according to the position elements to obtain simplified component geometry data and storing the simplified component geometry data in a sub-storage library.
Optionally, the loading module is specifically configured to: traversing a client database, and judging whether BIM model identification exists or not; if the BIM model identifier exists, determining an extraction mode of the component data of the BIM model according to the component data identifier; extracting component data of the BIM model from a client database in a BIM model identification and extraction mode; and rendering the component data of the BIM according to the space analytic geometry method to realize loading of the BIM.
Optionally, the loading module is further specifically configured to: if the BIM model identification does not exist, acquiring component data of the BIM model from the Web end according to the BIM model identification, storing the component data into a client database, extracting the component data of the BIM model from the client database, and analyzing the component data to realize loading of the BIM model.
Example III
Fig. 6 shows a block diagram of a computer device adapted to implement a Web-based BIM model loading method according to a third embodiment of the present application. In this embodiment, the computer device 600 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack-mounted server, a blade server, a tower server, or a rack-mounted server (including a stand-alone server or a server cluster formed by a plurality of servers) for executing a program, etc. As shown in fig. 6, the computer device 600 of the present embodiment includes at least, but is not limited to: a memory 601, a processor 602, and a network interface 603 that can be communicatively connected to each other through a system bus. It is noted that FIG. 6 only shows computer device 600 having components 601-603, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the memory 603 includes at least one type of computer readable storage medium, including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 601 may be an internal storage unit of the computer device 600, such as a hard disk or memory of the computer device 600. In other embodiments, the memory 601 may also be an external storage device of the computer device 600, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the computer device 600. Of course, the memory 601 may also include both internal storage units of the computer device 600 and external storage devices. In this embodiment, the memory 601 is typically used to store an operating system and various types of application software installed on the computer device 600, such as program codes of a Web-based BIM model loading method.
The processor 602 may be a central processing unit (Central Processing Unit, CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 602 is generally used to control the overall operation of the computer device 600. Such as performing control and processing related to data interaction or communication with the computer device 600. In this embodiment, the processor 602 is configured to execute program codes of steps of the Web-based BIM model loading method stored in the memory 601.
In this embodiment, the Web-based BIM model loading method stored in the memory 601 may also be divided into one or more program modules and executed by one or more processors (the processor 602 in this embodiment) to complete the present application.
The network interface 603 may include a wireless network interface or a wired network interface, which network interface 603 is typically used to establish a communication link between the computer device 600 and other computer devices. For example, the network interface 603 is used to connect the computer device 600 to an external terminal through a network, establish a data transmission channel and a communication link between the computer device 600 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
Example IV
The present embodiment also provides a computer readable storage medium including a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, which when executed by a processor, implements the steps of the Web-side based BIM model loading method.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the application are not limited to any specific combination of hardware and software.
It should be noted that, the embodiment numbers of the present application are only for description, and do not represent the advantages and disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the application, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. The BIM model loading method based on the Web end is characterized by comprising the following steps:
when monitoring that the current network environment meets the preset condition, triggering a pre-loading instruction of a BIM (building information modeling) model, and acquiring a BIM model identifier in the pre-loading instruction;
acquiring component data of the BIM model from a Web terminal according to the BIM model identifier, and storing the component data into a client database;
and responding to a triggered loading instruction of the BIM model, extracting component data of the BIM model from the client database and rendering the component data so as to load the BIM model.
2. The method according to claim 1, wherein the obtaining the component data of the BIM model from the Web terminal according to the BIM model identifier and storing the component data in the database of the client terminal includes:
creating a corresponding sub-repository in the client database according to the BIM model identification;
acquiring a data resource list corresponding to the BIM model identifier, wherein the data resource list comprises a component data identifier and component data path information, and the component data identifier uniquely corresponds to the component data path information;
and acquiring component data of the BIM model from the Web end according to the component data identification and the component data path information in the data resource list, storing the component data into the sub-storage library, and determining the component data identification as an index of the component data of the BIM model.
3. The method according to claim 2, wherein the obtaining component data of the BIM model from the Web terminal according to the component data identifier and the component data path information in the data resource list and storing the component data in the sub-repository includes:
acquiring the component data of the BIM model from the Web terminal through the component data path information in the data resource list;
classifying the component data of the BIM model through the component data identifier to obtain component data sets of different categories;
and storing the component data of the BIM model to the sub-repository according to the category of the component data set.
4. The method of claim 3, wherein the class of the component data set includes component geometry information, component map information, and component attribute information, the storing component data of the BIM model to the sub-repository according to the class of the component data set includes:
if the category of the component data set is component mapping information or component attribute information, directly storing component data of a BIM model in the component data set to the sub-storage library;
and if the category of the component data set is component geometric information, carrying out light weight processing on the component data of the BIM model in the component data set to obtain simplified component geometric data, and storing the simplified component geometric data into the sub-storage library.
5. The method according to claim 4, wherein if the category of the component data set is component geometry information, the step of performing lightweight processing on component data of the BIM model to obtain simplified geometry data and storing the simplified geometry data in the sub-repository includes:
obtaining BIM model component data belonging to component geometric information, wherein the BIM model component data comprises shape elements and position elements;
classifying the BIM model component data according to the shape elements to obtain component geometric data sets of different categories;
and merging BIM model component data in each component geometry data set according to the position elements to obtain simplified component geometry data and storing the simplified component geometry data into the sub-storage library.
6. The method of claim 5, wherein the extracting component data of the BIM model from the client database and rendering to enable loading of the BIM model comprises:
traversing the client database, and judging whether the BIM model identifier exists;
if the BIM model identifier exists, determining an extraction mode of the component data of the BIM model according to the component data identifier;
extracting component data of the BIM model from the client database through the BIM model identification and the extraction mode;
and rendering the component data of the BIM according to a space analytic geometry method to realize loading of the BIM.
7. The method of any of claims 1-6, wherein the extracting component data of the BIM model from the client database and rendering to enable loading of the BIM model comprises:
and if the BIM model identification does not exist, acquiring component data of the BIM model from a Web end according to the BIM model identification, storing the component data into a client database, extracting the component data of the BIM model from the client database, and analyzing the component data to realize loading of the BIM model.
8. A Web-based BIM model loading device, the device comprising:
the acquisition module is used for monitoring and acquiring a pre-loading instruction of the BIM model when the current network environment meets the preset condition, and acquiring a BIM model identifier in the pre-loading instruction;
the storage module is used for acquiring the component data of the BIM model from the Web end according to the BIM model identification and storing the component data into a client database;
and the loading module is used for responding to a triggered loading instruction of the BIM model, extracting component data of the BIM model from the client database and rendering the component data so as to realize loading of the BIM model.
9. A computer device, the computer device comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 7 when executing the computer program.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any of claims 1 to 7.
CN202210432121.8A 2022-04-22 2022-04-22 BIM model loading method, device and equipment based on Web end and readable storage medium Pending CN116977516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210432121.8A CN116977516A (en) 2022-04-22 2022-04-22 BIM model loading method, device and equipment based on Web end and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210432121.8A CN116977516A (en) 2022-04-22 2022-04-22 BIM model loading method, device and equipment based on Web end and readable storage medium

Publications (1)

Publication Number Publication Date
CN116977516A true CN116977516A (en) 2023-10-31

Family

ID=88478357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210432121.8A Pending CN116977516A (en) 2022-04-22 2022-04-22 BIM model loading method, device and equipment based on Web end and readable storage medium

Country Status (1)

Country Link
CN (1) CN116977516A (en)

Similar Documents

Publication Publication Date Title
CN106843828B (en) Interface display and loading method and device
US10284623B2 (en) Optimized browser rendering service
US20180247234A1 (en) Platform for management and tracking of collaborative projects
US9785720B2 (en) Script optimized browser rendering process
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN111143039B (en) Scheduling method and device of virtual machine and computer storage medium
US20140188537A1 (en) System and method for crowdsourcing map production
CN114501501A (en) Configuration management method, device, equipment and medium for mobile communication network target range
CN111435367A (en) Knowledge graph construction method, system, equipment and storage medium
CN113961510A (en) File processing method, device, equipment and storage medium
CN117474091A (en) Knowledge graph construction method, device, equipment and storage medium
CN116938953A (en) Block chain-based data processing method and device, electronic equipment and storage medium
CN116977516A (en) BIM model loading method, device and equipment based on Web end and readable storage medium
CN116451210A (en) Rights recovery method, device, equipment and storage medium
CN110708355A (en) File uploading method, system, device and readable storage medium
CN115686811A (en) Process management method, device, computer equipment and storage medium
CN115495151A (en) Rule engine migration method, device, equipment, storage medium and program product
CN113296913A (en) Data processing method, device and equipment based on single cluster and storage medium
CN115102948A (en) Automatic downloading method, device and equipment of map tiles and storage medium
CN114997414A (en) Data processing method and device, electronic equipment and storage medium
CN113656378A (en) Server management method, device and medium
CN113220573A (en) Test method and device for micro-service architecture and electronic equipment
CN111858234A (en) Task execution method, device, equipment and medium
CN114679468B (en) File transmission method and device, electronic equipment and computer readable storage medium
CN113360689B (en) Image retrieval system, method, related device and computer program product

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