BIM model preview method, device, computer equipment and readable storage medium

By storing the entity and attribute data of the BIM model in a database and the geometric data in a distributed object storage system, the problem of slow model preview speed is solved, and faster data loading and model display are achieved.

CN111797153BActive Publication Date: 2024-11-26GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010627534.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-01
Publication Date
2024-11-26
Estimated Expiration
2040-07-01

AI Technical Summary

Technical Problem

In existing technologies, BIM model preview speed is slow, resulting in a poor user experience, especially when loading large models, the data loading time is too long.

Method used

The entity data and attribute data of the model are stored in the database, and the geometric data is stored in the distributed object storage system. The data is loaded separately through different storage media, and the differentiated storage method is used to improve the loading speed.

Benefits of technology

By storing model data using differentiated storage media, data loading speed is improved, and model preview speed is enhanced. Especially when reading large amounts of data, the parallelism is high, and flexible data operations and management are supported.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111797153B_ABST
    Figure CN111797153B_ABST
Patent Text Reader

Abstract

The present invention provides a BIM model preview method, device, computer equipment and readable storage medium. The model includes a plurality of graphics elements, and the BIM model preview method includes: loading entity data and attribute data of the graphics elements from a database; loading geometric data of the graphics elements from a distributed object storage system; and displaying the model according to the loaded data. Through the present invention, the model preview speed can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of model technology, and in particular to a BIM model preview method, device, computer equipment and readable storage medium. Background Art

[0002] With the increasing popularity of SAAS application services on cloud platforms, cloud services are also facing increasingly higher performance requirements. When the amount of data and the number of users increase, the user experience of browsing models becomes worse and worse, especially when browsing large decorative models. Users need to wait for several minutes or even longer for the model data to load, which results in a poor user experience.

[0003] In this regard, the inventors have found that the single data model storage design is the main reason for the poor performance. After the model is parsed, the data is stored as a whole in a single data document, and the data document is stored in a single storage table, which not only causes slow data loading, but also slow network transmission. At the same time, it causes the data processing program to be unable to fully utilize the advantages of asynchronous processing of the multi-threaded mechanism, resulting in the overall slow speed of model display, especially for larger models such as BIM (Building Information Model), the problem of slow preview speed is more prominent.

[0004] Therefore, the problem of poor user experience caused by slow model preview when previewing a large model in the prior art has become a technical problem that needs to be solved urgently in the field. Summary of the invention

[0005] The purpose of the present invention is to provide a BIM model preview method, device, computer equipment and readable storage medium, which are used to solve the technical problem of slow preview speed during model preview in the prior art.

[0006] On the one hand, to achieve the above objectives, the present invention provides a BIM model preview method.

[0007] The model includes a plurality of graphics elements, and the BIM model preview method includes: loading entity data of the graphics elements and attribute data of the graphics elements from a database; loading geometric data of the graphics elements from a distributed object storage system; and displaying the model according to the loaded data.

[0008] Furthermore, the step of loading the geometric data of the primitives from the distributed object storage system includes: loading a data package file from the distributed object storage system, wherein the data package file includes the geometric data of one or more primitives.

[0009] Furthermore, the step of loading the geometric data of the primitive from the distributed object storage system includes: loading the geometric data of the virtual reference primitive from the distributed object storage system; performing matrix transformation on the geometric data of the virtual reference primitive to obtain the geometric data of the primitive.

[0010] Furthermore, the steps of loading the entity data of the primitive and the attribute data of the primitive from the database, and loading the geometric data of the primitive from the distributed object storage system include: in response to a model preview operation, loading the entity data of the primitive from the database, and loading the geometric data of the primitive from the distributed object storage system; in response to a primitive preview operation, loading the attribute data of the primitive from the database.

[0011] Furthermore, the BIM model preview method also includes: obtaining a loading order configuration table, determining a first element in a first loading order and a second element in a second loading order according to the loading order configuration table, wherein the first loading order is before the second loading order; loading the entity data of the element and the attribute data of the element from a database, and loading the geometric data of the element from a distributed object storage system, and the step of displaying the model according to the loaded data includes: loading the entity data of the first element and the attribute data of the first element from the database, and loading the geometric data of the first element from the distributed object storage system; displaying the first element; loading the entity data of the second element and the attribute data of the second element from the database, and loading the geometric data of the second element from the distributed object storage system; and displaying the second element.

[0012] Furthermore, the BIM model preview method also includes: loading entity data of components and attribute data of components from the database; loading entity data of materials, texture data of materials, entity data of rooms and / or entity data of floors from the database; and / or loading material image data from the distributed object storage system.

[0013] Furthermore, the database includes a first data table, a second data table, a third data table and a fourth data table, and the step of loading data from the database includes: loading the version data from the first data table; loading the entity data of the graphic element, the entity data of the component, the entity data of the material, the entity data of the room and the entity data of the floor from the second data table; loading the attribute data of the graphic element and the attribute data of the component from the third data table; loading the material map data from the fourth data table.

[0014] On the other hand, to achieve the above object, the present invention provides a model preview device.

[0015] The model includes a number of graphics elements, and the model preview device includes: a first loading module, used to load the entity data of the graphics element and the attribute data of the graphics element from a database; a second loading module, used to load the geometric data of the graphics element from a distributed object storage system; and a display module, used to display the model according to the loaded data.

[0016] To achieve the above objectives, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0017] To achieve the above object, the present invention also provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the steps of the above method when executed by a processor.

[0018] The BIM model preview method, device, computer equipment and readable storage medium provided by the present invention load entity data and attribute data of the primitive from a database, load geometric data of the primitive from a distributed object storage system, and then display the model according to the loaded data. Through the present invention, the entity data and attribute data of the primitive included in the model, and the geometric data of the primitive, are stored in different media respectively, so that when the model is previewed, data is loaded from different storage media respectively, compared with loading data from a single storage medium in the prior art, the data loading speed can be improved, thereby improving the model preview speed; further, the present invention uses differentiated storage media to store differentiated model data, specifically, for the entity data and attribute data of the primitive, the data change frequency is high and the data volume is small, through database storage, data addition, deletion and modification can be flexibly realized, which is conducive to data operation in the model construction process, for the geometric data of the primitive, the change frequency is low and the data volume is large, through the distributed object storage system storage, data distribution balance can be better realized, and the parallelism is high when the data is read, when reading a large amount of data, the data loading speed can be further characterized, thereby further improving the model preview speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0020] Figure 1 A flowchart of a BIM model preview method provided in Embodiment 1 of the present invention;

[0021] Figure 2 A schematic diagram of executing the BIM model preview method provided in the first embodiment of the present invention;

[0022] Figure 3 A block diagram of a model preview device provided in Embodiment 2 of the present invention;

[0023] Figure 4 This is a hardware structure diagram of a computer device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0025] In order to solve the problem of poor user experience caused by long data loading time when previewing a large model in the prior art, the present invention proposes a BIM model preview method, device, computer equipment and readable storage medium. Specifically, the model includes a plurality of graphics elements, and the entity data and attribute data of the graphics elements are stored in a database, and the geometric data of the graphics elements are stored in a distributed object storage system. Based on this, when previewing the model, the entity data and attribute data of the graphics elements are loaded from the database, the geometric data of the graphics elements are loaded from the distributed object storage system, and then the model is displayed according to the loaded data. It can be seen that, firstly, the data of the model in the present invention is no longer stored in a single data document. When the model is previewed, data is loaded from different storage media respectively. Compared with loading data from a single data document in the prior art, the data loading speed can be improved, thereby improving the model preview speed; further, the present invention uses differentiated storage media to store differentiated model data. Specifically, for the entity data of the primitives and the attribute data of the primitives, the data change frequency is high and the data volume is small. Through database storage, data addition, deletion and modification can be flexibly realized, which is beneficial to data operations in the model construction process. For the geometric data of the primitives, the change frequency is low and the data volume is large. Through distributed object storage system storage, data distribution balance can be better achieved, and the degree of parallelism is high when reading data. When reading large amounts of data, the data loading speed can be further characterized, thereby further improving the model preview speed.

[0026] Specific embodiments of the BIM model preview method, device, computer equipment and readable storage medium provided by the present invention will be described in detail below.

[0027] Embodiment 1

[0028] The embodiment of the present invention provides a BIM model preview method, through which the model preview speed can be improved. The model includes a number of primitives, and the model preview is realized by displaying each primitive of the model. The entity data and attribute data of the primitive are stored in the database, and the geometric data of the primitive is stored in the distributed object storage system. Specifically, Figure 1 This is a flowchart of a BIM model preview method provided in Embodiment 1 of the present invention, such as Figure 1 As shown, the BIM model preview method provided by this embodiment includes the following steps S101 to S103.

[0029] Step S101: Load entity data and attribute data of a primitive from a database.

[0030] The entity data of the primitives include the geometric figures such as points, lines, and surfaces, as well as solid figures that constitute the primitives. For building models, the primitives include walls, roofs, floors, partitions, and beams, and the entity data of the primitives are also the geometric figures that constitute the above walls, roofs, floors, partitions, and beams. The attribute data of the primitives include the attribute parameters that affect the display of the primitives, such as line type, line color, surface transparency, layer bottom elevation, fill color, type, etc.

[0031] The entity data and attribute data of the primitives can be stored in the database in the form of a data table. Optionally, the entity data of the primitives is stored in the database in the correspondence relationship of model identifier-primitive identifier-entity data of the primitive. When a model preview is required, the entity data and attribute data of the primitives are queried and loaded in the database based on the model identifier.

[0032] Optionally, the database may be a MongoDB database, a Redis database, a Cassandra database or a MySQL database, etc. Among them, the MongoDB database is a database based on distributed file storage, supports the storage of complex large document type data, supports indexing of data, can implement table data query functions similar to relational databases, has data caching capabilities, has high performance, and is suitable for the storage of entity data and attribute data of graphics elements in larger model scenarios.

[0033] Step S102: Loading geometric data of primitives from the distributed object storage system.

[0034] The geometric data of a primitive refers to the data that limits the geometric parameters of the entity data of the primitive, such as the coordinates of the geometric center and side length of the cube included in the primitive, the coordinates, radius and height of the geometric center of the cylinder included in the primitive, or vertices (vertex data array), triangles (triangle vertex index array), normals (normal vector array), uv (texture coordinate array).

[0035] The geometric data of the primitives can be stored in the distributed object storage system in the form of data files, and the files can be read and loaded through the interface of the distributed object storage system.

[0036] Optionally, the distributed object storage system can specifically be a Ceph storage system or an HDFS storage system, wherein the Ceph storage system can provide network-based unstructured data access services, can store and call various unstructured data files including text, pictures, audio and video, and can use Restful API to perform various storage and access operations on files. The Ceph storage system uploads data files to the storage space (bucket) in the form of objects.

[0037] Step S103: Display the model according to the loaded data.

[0038] In this embodiment, the loaded data includes entity data, attribute data and geometric data of the primitive. The entity data, attribute data and geometric data of the primitive can be used to display an primitive, and the primitives of the model are displayed to realize the display of the model.

[0039] In the BIM model preview method provided in this embodiment, the entity data and attribute data of the element are loaded from the database, the geometric data of the element is loaded from the distributed object storage system, and then the model is displayed according to the loaded data. Using the BIM model preview method provided in this embodiment, the entity data and attribute data of the element included in the model, and the geometric data of the element are stored in different media respectively, so that when the model is previewed, the data is loaded from different storage media respectively, compared with the loading of data from a single storage medium in the prior art, the data loading speed can be improved, thereby improving the model preview speed; further, this embodiment uses differentiated storage media to store differentiated model data, specifically, for the entity data and attribute data of the element, the data change frequency is high and the data volume is small, through database storage, data addition, deletion and modification can be flexibly realized, which is conducive to data operation in the model construction process, for the geometric data of the element, the change frequency is low and the data volume is large, through the distributed object storage system storage, data distribution can be better achieved, and the parallelism is high when the data is read, when reading a large amount of data, the data loading speed can be further characterized, thereby further improving the model preview speed.

[0040] Optionally, in one embodiment, the graphic elements in the model are obtained by instantiating and drawing the components, and the graphic elements are attached to the components. Correspondingly, the data of the model also includes entity data of the components and attribute data of the components, and the entity data of the components and the attribute data of the components are stored in a data database. Therefore, the BIM model preview method also includes: loading the entity data of the components and the attribute data of the components from the database.

[0041] The data of the model also includes data related to the material of the component, such as the entity data of the material, the mapping data of the material, and the image data of the material, wherein the entity data of the material and the mapping data of the material are stored in a database, and the material image data is stored as an image file in a distributed object storage system. Therefore, the BIM model preview method also includes: loading the entity data of the material and the mapping data of the material from the database; loading the material image data from the distributed object storage system.

[0042] For the building model, the data of the model includes entity data of the room and entity data of the floor, etc., wherein the entity data of the room and the entity data of the floor are stored in a database. Therefore, the BIM model preview method also includes: loading the entity data of the room and the entity data of the floor from the database.

[0043] In order to facilitate the version management of the model, the database also stores version data of components, primitives, materials, rooms, floors, etc. In order to facilitate the reading of the geometric data of primitives, the distributed object storage system also stores the index data of primitives. Therefore, when loading the geometric data of primitives, the loading can be performed through the index data of primitives. In order to facilitate the display of primitives, the distributed object storage system also stores corresponding relationship data, which is used to identify the corresponding relationship between the attribute data of the primitive, the entity data of the primitive, and the geometric data of the primitive. Therefore, when displaying the primitives, the entity data, attribute data, and geometric data of the primitives can be assembled based on the corresponding relationship data.

[0044] Further optionally, in one embodiment, the database includes a first data table, a second data table, a third data table and a fourth data table, and the step of loading data from the database includes: loading version data from the first data table; loading entity data of primitives, entity data of components and entity data of materials from the second data table; loading attribute data of primitives and attribute data of components from the third data table; and loading mapping data of materials from the fourth data table.

[0045] Specifically, four independent data tables are set for the data stored in the database. The first data table stores the above version data, the second data table stores entity data of primitives, components, etc., the third data table stores attribute data of primitives and components, and the fourth data table stores material mapping data. The same data type is stored in the same data table, which facilitates the unified management of data in a single data table. At the same time, when loading data from the database, reading data from different data tables is conducive to improving the speed of data loading.

[0046] Optionally, in one embodiment, the step of loading geometric data of a graphic element from a distributed object storage system includes: loading a data packet file from the distributed object storage system, wherein the data packet file includes geometric data of a number of graphic elements, and a size of the data packet file is less than or equal to a preset threshold.

[0047] Specifically, a larger model may contain tens of thousands of primitives. When reading the geometric data of each primitive separately, the number of files is large and it takes a long time. Especially in the cloud service scenario, the geometric data of each primitive is transmitted separately during the data transmission process. The number of files transmitted is large and it will also take a long time, which will affect the overall preview speed of the model. In order to solve this problem, in this embodiment, the geometric data of multiple primitives are encapsulated into a data package file. For example, the geometric data of tens of thousands of primitives are encapsulated into dozens of data packages of json files. When loading the geometric data of the primitives, the dozens of json files can be loaded from the distributed object storage system.

[0048] The BIM model preview method provided in this embodiment can reduce the number of data files in the distributed object storage system, thereby reducing the number of data files to be read and transmitted when loading the geometric data of the graphic elements, which is conducive to further improving the model preview speed.

[0049] Further optionally, the size of the data packet file is limited to within a preset threshold size. For example, each of the above json files is limited to within 5M to avoid a data packet file being too large which slows down the loading speed of the data packet file, making the sizes of each data packet file more balanced, which is conducive to achieving balanced control of data loading.

[0050] Optionally, when loading a data packet file, the data packet file is first compressed, and then the compressed data packet file is loaded to further improve the loading speed. For example, using gzip compression to transmit the json file in Ceph can reduce the amount of network transmission data to about 10% of the original data size, and the transmission efficiency can be increased by about 10 times. For json files within 5M, the number of network transmission bytes after compression is about 500K, further improving the preview speed.

[0051] Optionally, in one embodiment, the step of loading geometric data of a graphic element from a distributed object storage system includes: loading geometric data of a virtual reference graphic element from the distributed object storage system; performing a matrix transformation on the geometric data of the virtual reference graphic element to obtain the geometric data of the graphic element.

[0052] Specifically, in a model, there are some graphics elements that are highly similar, including similar shapes and materials. For example, in a building model, the walls of each room are rectangular in shape and have the same material. For such graphics elements, a common reference virtual reference element is set, and the geometric data of the virtual reference element is stored in a distributed object storage system. Therefore, when loading the geometric data of the graphics element from the distributed object storage system, the geometric data of the virtual reference element is loaded first, and then the geometric data of the virtual reference element is transformed by a matrix to obtain the geometric data of the real graphics element, wherein the matrix transformation includes a combination of rotation, scaling, and translation transformation methods. Further optionally, the entity data of the graphic element includes graphic element ID information and matrix transformation parameters, and the corresponding relationship data includes the correspondence between the graphic element ID information and the geometric data of the virtual reference graphic element. Based on this, after loading the entity data of the graphic element, the corresponding geometric data of the virtual reference graphic element is found in the corresponding relationship data according to the graphic element ID information and loaded, and the geometric data of the virtual reference graphic element is matrix transformed according to the matrix transformation parameters in the graphic element's entity data, so as to obtain the geometric data of the real graphic element identified by the graphic element ID information.

[0053] For example, in a building model, some highly similar primitives are processed in an instance manner. For example, if the wall of a room is a cuboid, a reference cuboid primitive is introduced, and other cuboids of the same material can reference this primitive, so that the original large amount of geometric data stored for such repeated wall primitives only needs to store a virtual reference primitive, and other real primitives can obtain real primitives by referencing the virtual reference primitives and combining rotation, scaling, and translation matrix transformations. Considering that the number of primitives such as walls, roofs, floors, and partitions in a building model accounts for about 70% of the total number of primitives, the amount of primitive geometric data in the distributed object storage system can be reduced by about 40%.

[0054] In the BIM model preview method provided in this embodiment, by setting a virtual reference element, there is no need to store the geometric data of each real element that can be obtained by performing matrix transformation based on the virtual reference element in the distributed object storage system. Only the geometric data of the virtual reference element needs to be stored, thereby reducing the amount of geometric data in the distributed object storage system, further accelerating the data loading speed and improving the model preview speed.

[0055] Optionally, in one embodiment, the step of displaying the model according to the loaded data and the step of loading the data can be performed asynchronously, so that loading and displaying can be achieved, and the loading step and the display step are performed alternately, which is conducive to improving the loading speed.

[0056] Further optionally, the steps of loading the entity data of the primitive and the attribute data of the primitive from the database, and loading the geometric data of the primitive from the distributed object storage system include: in response to a model preview operation, loading the entity data of the primitive from the database, and loading the geometric data of the primitive from the distributed object storage system; in response to the primitive preview operation, loading the attribute data of the primitive from the database.

[0057] Specifically, when a user browses a model, he selects the model to be previewed on the client or WEB side. This operation is also a model preview operation. In response to the model preview operation, the entity data and the geometric data of the element are first loaded. At this time, a fuzzy display of the element can be performed based on the entity data and the geometric data. When the user is interested in a certain element and performs further browsing operations on the element, such as clicking on the location of the element, the attribute data of the element is loaded in response to the element preview operation to display the element in detail.

[0058] By adopting the BIM model preview method provided in this embodiment, for the overall display of the model, the detailed information of the element may not be displayed, so there is no need to load the attribute data of the element, so as to achieve the technical effect of quickly displaying the overall information of the model. Only when the user further previews the element, the attribute data of the element is loaded to realize the display of the element.

[0059] Further optionally, the BIM model preview method also includes: obtaining a loading order configuration table, determining a first element in a first loading order and a second element in a second loading order according to the loading order configuration table, wherein the first loading order is before the second loading order; loading entity data and attribute data of the element from a database, loading geometric data of the element from a distributed object storage system, and the step of displaying the model according to the loaded data includes: loading entity data and attribute data of the first element from a database, loading geometric data of the first element from a distributed object storage system; displaying the first element; loading entity data and attribute data of the second element from a database, loading geometric data of the second element from a distributed object storage system; displaying the second element.

[0060] Specifically, for some larger models, during the display process, due to the large amount of data, a visual effect of gradually displaying different graphics elements appears. In order to make the above-mentioned gradual display not chaotic and more in line with the user's browsing habits of the model, a loading order configuration table is set to set the loading order of graphics elements according to the user's browsing habits of the model or other needs. Among them, the specific order of graphics elements in the loading order configuration table is not limited in the present invention, and those skilled in the art can set different loading orders to achieve different display effects.

[0061] It should be noted that the above-mentioned first loading order and second loading order are only used to distinguish the order of the first loading order and the second loading order, and the loading order configuration table may include multiple loading orders; the first primitive and the second primitive are only used to distinguish the primitives in different loading orders, and the number of primitives in the first loading order can be any number, and the number of primitives in the second loading order can also be any number.

[0062] After determining the loading order of the graphics elements according to the loading order configuration table, load the entity data and attribute data of the graphics elements with the first order from the database, load the geometric data of the graphics elements with the first order from the distributed object storage system, and display the graphics elements with the first order. Then, load and display the graphics elements with the last order.

[0063] For example, for a building model, by configuring the loading sequence configuration table, progressive batch loading of graphics elements is implemented. The model is loaded and displayed in batches from the outside to the inside from the user's browsing perspective. The user will first see the outline of the model composed of outer graphics elements, and then gradually the middle and inner graphics elements, to enhance the user experience. Specifically:

[0064] The first batch: prioritize loading framework elements such as "walls, ceilings, floors, partitions", which account for about 70% of the total elements;

[0065] The second batch: Then load the graphics elements such as "rooms, skirting boards, corrugated lines, and other parts".

[0066] Optionally, loading tags are set for graphics elements. Graphic elements in the same loading order may be set with the same loading tags. Then, when loading graphics elements, they may be loaded according to the loading tags, thereby quickly loading graphics elements in batches.

[0067] Figure 2 Schematic diagram of the execution of the BIM model preview method provided in the first embodiment of the present invention, such as Figure 2 As shown, the system implementing the BIM model preview method includes a web client, DataMS (i.e., a MongoDB database interface), Store (i.e., a MySQL database interface), OSS (a distributed object storage system based on Ceph), a MongoDB database, and a MySQL database. Based on the system, the steps of the BIM model preview method provided by the embodiment of the present invention are as follows:

[0068] The user selects a model to be browsed on the web client, and then the model is displayed based on the interaction between the web client and various database interfaces, databases, and distributed object storage systems. Specifically:

[0069] On the one hand, the web client loads data from the MongoDB database, including the following process:

[0070] The web client determines the model ID based on the user's selection, and then queries the DataMS for component and graphic metadata (i.e., component entity data, graphic entity data, component attribute data, and graphic attribute data, etc.) according to the model ID.

[0071] After receiving the data query request, DataMS downloads the component and image metadata to the MongoDB database according to the model ID, including material entity data, floor entity data, room entity data, etc.

[0072] The MongoDB database returns the queried data such as components and image metadata to DataMS;

[0073] DataMS then returns the queried data to the web user end;

[0074] On the other hand, the web client loads data from the OSS storage system, wherein the databag (i.e., data packet file) is stored in the OSS storage system, the URL of the databag is set in the databag address list, the databag address list is stored in the MySQL database, and the web client reads the data in the MySQL database via the Store, specifically including the following process:

[0075] The web client determines the model ID based on the user's selection, and then queries the Store for a list of databag (i.e., data packet file) addresses based on the model ID.

[0076] Store then queries the MySQL database for the databag address list based on the model ID;

[0077] The MySQL database returns the queried databag address list to the Store;

[0078] The Store then returns the databag address list to the web client;

[0079] After the web client obtains the databag address list, it traverses the databag address list and downloads the corresponding json data file from the OSS storage system according to the databag URL in the databag address list. The OSS storage system returns the json data file to the web client. The json data file transmitted from the OSS storage system to the web client is a compressed file.

[0080] After receiving the JSON data file, the web client parses the JSON data file and traverses the mesh list in the JSON data file, wherein the mesh list is provided with the corresponding relationship between the geometric data, attribute data and entity data of the graphic element based on the mesh ID, obtains the mesh ID by traversing the mesh list, and assembles the geometric data, attribute data and entity data of the graphic element according to the mesh ID;

[0081] The web client can also download the material map (image file) of the primitive from the OSS storage system according to the mesh ID;

[0082] The OSS storage system returns the primitive material map to the web client, wherein the primitive material map transmitted by the OSS storage system to the web client is a compressed file;

[0083] On the web user side, webGL renders and displays primitives based on their geometric data, attribute data, entity data, and primitive material maps, that is, it realizes model preview.

[0084] Embodiment 2

[0085] Corresponding to the above-mentioned embodiment 1, embodiment 2 of the present invention provides a model preview device. The corresponding technical features and corresponding technical effects can refer to the relevant description of the above-mentioned embodiment 1 and will not be repeated in this embodiment. Figure 3This is a block diagram of a model preview device provided in Embodiment 2 of the present invention. The model includes several graphic elements, such as Figure 3 As shown, the device includes: a first loading module 201, a second loading module 202 and a display module 203.

[0086] Among them, the first loading module 201 is used to load the entity data and attribute data of the primitive from the database; the second loading module 202 is used to load the geometric data of the primitive from the distributed object storage system; and the display module 203 is used to display the model according to the loaded data.

[0087] Optionally, in one embodiment, when the second loading module 202 loads geometric data of a primitive from a distributed object storage system, specific steps performed include: loading a data packet file from the distributed object storage system, wherein the data packet file includes geometric data of multiple primitives.

[0088] Optionally, in one embodiment, the second loading module 202 includes a first loading unit and a transformation unit, wherein the first loading unit is used to load the geometric data of the virtual reference element from the distributed object storage system; the transformation unit is used to perform matrix transformation on the geometric data of the virtual reference element to obtain the geometric data of the element.

[0089] Optionally, in one embodiment, the first loading module 201 includes a second loading unit and a third loading unit, the second loading unit is used to load the entity data of the primitive from the database in response to the model preview operation, the second loading module 202 is also used to load the geometric data of the primitive from the distributed object storage system in response to the model preview operation; the third loading unit is used to load the attribute data of the primitive from the database in response to the primitive preview operation.

[0090] Optionally, in one embodiment, the model preview device further includes: an acquisition module and a determination module, wherein the acquisition module is used to acquire a loading order configuration table, and the determination module is used to determine a first primitive in a first loading order and a second primitive in a second loading order according to the loading order configuration table, wherein the first loading order is before the second loading order; when the first loading module 201 loads entity data and attribute data of the primitive from a database, and the second loading module 202 loads geometric data of the primitive from a distributed object storage system, and the display module 203 displays the model according to the loaded data, the first loading module 201 first loads entity data and attribute data of the first primitive from a database, and the second loading module 202 loads geometric data of the first primitive from a distributed object storage system, and the display module 203 displays the first primitive; then the first loading module 201 loads entity data and attribute data of the second primitive from a database, and the second loading module 202 loads geometric data of the second primitive from a distributed object storage system; and the display module 203 displays the second primitive.

[0091] Optionally, in one embodiment, the first loading module 201 is also used to load entity data of components and attribute data of components from a database, load entity data of materials, texture data of materials, entity data of rooms and / or entity data of floors from a database; and / or the second loading module 202 is also used to load material image data from a distributed object storage system.

[0092] Optionally, in one embodiment, the database includes a first data table, a second data table, a third data table and a fourth data table, and the first loading module 201 includes a fourth loading unit, a fifth loading unit, a sixth loading unit and a seventh loading unit, wherein the fourth loading unit is used to load version data from the first data table; the fifth loading unit is used to load entity data of primitives, entity data of components, entity data of materials, entity data of rooms and entity data of floors from the second data table; the sixth loading unit is used to load attribute data of primitives and attribute data of components from the third data table; and the seventh loading unit is used to load material map data from the fourth data table.

[0093] Embodiment 3

[0094] This embodiment also provides a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server or a server cluster composed of multiple servers) that can execute programs. Figure 4 As shown, the computer device 01 of this embodiment includes at least but is not limited to: a memory 011 and a processor 012 which can be interconnected through a system bus. Figure 4It should be pointed out that Figure 4 Only a computer device 01 having components memory 011 and processor 012 is shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0095] In this embodiment, the memory 011 (i.e., readable storage medium) includes flash memory, hard disk, multimedia card, card-type 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 011 can be an internal storage unit of the computer device 01, such as a hard disk or memory of the computer device 01. In other embodiments, the memory 011 can also be an external storage device of the computer device 01, such as a plug-in hard disk equipped on the computer device 01, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 011 can also include both the internal storage unit of the computer device 01 and its external storage device. In this embodiment, the memory 011 is generally used to store the operating system and various application software installed on the computer device 01, such as the program code of the model preview device of the second embodiment. In addition, the memory 011 can also be used to temporarily store various types of data that have been output or are to be output.

[0096] In some embodiments, the processor 012 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is used to run the program code stored in the memory 011 or process data, such as the BIM model preview method.

[0097] Embodiment 4

[0098] This embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (for example, an 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 disk, an optical disk, a server, an App application store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is used to store a model preview device, and when executed by a processor, the BIM model preview method of the first embodiment is realized.

[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0100] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0101] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method.

[0102] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A BIM model preview method, It is characterized in that The model includes several graphic elements, and the BIM model preview method includes: Loading entity data of the graphic element, attribute data of the graphic element, entity data of the component, attribute data of the component, entity data of the material, texture data of the material, entity data of the room and entity data of the floor from a database; Loading geometric data and material image data of the primitive from a distributed object storage system; The database includes a first data table, a second data table, a third data table and a fourth data table, version data is loaded from the first data table, entity data of the graphic element, entity data of the component, entity data of the material, entity data of the room and entity data of the floor are loaded from the second data table, attribute data of the graphic element and attribute data of the component are loaded from the third data table, and material mapping data is loaded from the fourth data table; and The model is displayed based on the loaded data.

2. The BIM model preview method according to claim 1, It is characterized in that The step of loading the geometric data of the primitive from the distributed object storage system comprises: A data package file is loaded from the distributed object storage system, wherein the data package file includes geometric data of one or more of the primitives.

3. The BIM model preview method according to claim 1, It is characterized in that The step of loading the geometric data of the primitive from the distributed object storage system comprises: Loading geometric data of a virtual reference primitive from the distributed object storage system; Performing matrix transformation on the geometric data of the virtual reference primitive to obtain the geometric data of the primitive.

4. The BIM model preview method according to claim 1, It is characterized in that The steps of loading entity data of the primitive and attribute data of the primitive from a database and loading geometric data of the primitive from a distributed object storage system include: In response to the model preview operation, loading the entity data of the primitive from the database and loading the geometric data of the primitive from the distributed object storage system; In response to the primitive preview operation, the attribute data of the primitive is loaded from the database.

5. The BIM model preview method according to claim 1, It is characterized in that The BIM model preview method further includes: obtaining a loading order configuration table, and determining a first graphic element in a first loading order and a second graphic element in a second loading order according to the loading order configuration table, wherein the first loading order is before the second loading order; The steps of loading entity data of the primitive and attribute data of the primitive from a database, loading geometric data of the primitive from a distributed object storage system, and displaying the model according to the loaded data include: Loading entity data of the first primitive and attribute data of the first primitive from the database, and loading geometric data of the first primitive from the distributed object storage system; displaying the first graphic element; Loading entity data of the second primitive and attribute data of the second primitive from the database, and loading geometric data of the second primitive from the distributed object storage system; The second graphic element is displayed.

6. A model preview device, It is characterized in that The model includes a plurality of graphic elements, and the model preview device includes: A first loading module is used to load entity data of the graphic element, attribute data of the graphic element, entity data of the component, attribute data of the component, entity data of the material, texture data of the material, entity data of the room and entity data of the floor from a database; A second loading module, used to load the geometric data and material image data of the primitive from the distributed object storage system; and A display module, used to display the model according to the loaded data; Wherein, the database includes a first data table, a second data table, a third data table and a fourth data table. The first loading module loads version data from the first data table, loads entity data of the graphic element, entity data of the component, entity data of the material, entity data of the room and entity data of the floor from the second data table, loads attribute data of the graphic element and attribute data of the component from the third data table, and loads the material map data from the fourth data table.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, Features: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.