CN111930742A - Data storage method based on building information model BIM and related device - Google Patents

Data storage method based on building information model BIM and related device Download PDF

Info

Publication number
CN111930742A
CN111930742A CN202010720321.4A CN202010720321A CN111930742A CN 111930742 A CN111930742 A CN 111930742A CN 202010720321 A CN202010720321 A CN 202010720321A CN 111930742 A CN111930742 A CN 111930742A
Authority
CN
China
Prior art keywords
data
component
information
determining
bim
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.)
Granted
Application number
CN202010720321.4A
Other languages
Chinese (zh)
Other versions
CN111930742B (en
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.)
Shenzhen Wanyi Digital Technology Co ltd
Original Assignee
Wanyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wanyi Technology Co Ltd filed Critical Wanyi Technology Co Ltd
Priority to CN202010720321.4A priority Critical patent/CN111930742B/en
Publication of CN111930742A publication Critical patent/CN111930742A/en
Application granted granted Critical
Publication of CN111930742B publication Critical patent/CN111930742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • G06F9/30007Arrangements for executing specific machine instructions to perform operations on data operands
    • G06F9/30025Format conversion instructions, e.g. Floating-Point to Integer, decimal conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application discloses a data storage method based on a Building Information Model (BIM) and a related device, wherein the method comprises the following steps: classifying each component in the BIM according to the grid information to obtain a plurality of component groups; performing the following operation for each component group in the plurality of component groups to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information; determining second data of each component in the currently processed component group according to the component information; processing the first data and the second data to obtain target storage data of the currently processed component group; storing the target storage data of the plurality of component groups. Therefore, the occupation of the memory space of the BIM model during storage can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.

Description

Data storage method based on building information model BIM and related device
Technical Field
The application relates to the technical field of building design, in particular to a data storage method based on a Building Information Model (BIM) and a related device.
Background
The Building Information Modeling (BIM) technology is a datamation tool applied to engineering design, construction and management, and is used for sharing and transmitting all life cycle processes of project planning, operation and maintenance by integrating datamation and informatization models of buildings, so that engineering technicians can correctly understand and efficiently deal with various Building Information, a foundation for cooperative work is provided for design teams and all parts of construction main bodies including buildings and operation units, and important functions are played in the aspects of improving production efficiency, saving cost and shortening construction period. Most of BIM files used in the market at present adopt a digital-analog separation mode to achieve the aim of model lightweight. Because the model formats of different manufacturers are organized differently, different manufacturers almost provide a specific model export Application Program Interface (API) to directly export the model part in the BIM file into a universal 3d model format.
Disclosure of Invention
The embodiment of the application provides a data storage method based on a Building Information Model (BIM) and a related device, so that the storage space of the model can be reduced.
In a first aspect, an embodiment of the present application provides a data storage method based on a building information model BIM, including:
classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information;
performing the following operation for each component group in the plurality of component groups to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
storing the target storage data of the plurality of component groups.
In a second aspect, an embodiment of the present application provides a data storage device based on a building information model BIM, where the device includes:
the classification unit is used for classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information;
an obtaining unit, configured to perform the following operations for each component group in the plurality of component groups, to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
and the storage unit is used for storing target storage data of the plurality of component groups.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, each component in the BIM model is classified according to the grid information to obtain a plurality of component groups, then target storage data of each component group is obtained, and finally target storage data of the plurality of component groups is stored. Therefore, the occupation of the memory space of the BIM model during storage can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a BIM-based data storage system provided by an embodiment of the present application;
FIG. 2 is a schematic flowchart of a BIM-based data storage method according to an embodiment of the present disclosure;
FIG. 3 is a block diagram illustrating functional units of a BIM-based data storage device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a result of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
At present, the general 3d file format takes the application purpose of the general 3d model into consideration, so that a lot of compatibility information is added in the general 3d file format, and when the data of the BIM model is huge, the 3d file occupies a large space.
In view of the foregoing problems, embodiments of the present application provide a data storage method and a related apparatus based on a building information model BIM, and the following describes embodiments of the present application in detail with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a BIM-based data storage system provided in an embodiment of the present application, and the BIM-based data storage system 100 includes a BIM data storage device and a database. The BIM data storage device is used for processing and compressing BIM data, and is in communication connection with the database and used for storing the processed and compressed BIM data in the database.
Referring to fig. 2, fig. 2 is a schematic flowchart of a data storage method based on a building information model BIM according to an embodiment of the present disclosure.
S201, classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information.
The grid information may be used to represent component information with different shapes, that is, each component with a shape has a unique grid information, for example, the grid information of a column in a BIM model is the same, even if the position and posture of each component with a shape of a column are different, the grid information is the same. The mesh information may be considered as a set of points constituting a triangular surface of a member and sides of a triangle, and includes normal information and color information of vertices, and also includes a connection order of each vertex.
S202, aiming at each component group in the plurality of component groups, executing the following operation to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; and processing the first data and the second data to obtain target storage data of the currently processed component group.
Wherein the components contained in each component group have the same grid information. The component information refers to information of the component in the BIM model, and includes parameters such as position information, grid information, and posture information of the component. The method for determining the first data may be that parameter values of the parameter types of all the components in the component group corresponding to the currently processed parameter type are determined; if the parameter value of each component is the same, adding information corresponding to the parameter type and the parameter value into the first data; if the parameter value of one component is different from the parameter values of other components, ending the processing of the parameter type; and updating the currently processed parameter type to be the next unprocessed parameter type until all the parameter types are processed. The second data may be regarded as data obtained by removing information as the first data from the component information included in the component. The time for processing the first data and the second data can be set according to user requirements, the data can be processed after the first data and the second data are determined in the currently processed component group, and the first data and the second data can be processed uniformly after the first data and the second data of each group are determined.
S203, storing the target storage data of the plurality of component groups.
The obtained target storage data can be packaged into a transformation matrix and stored in a database, so that when rendering is performed at the front end, the corresponding data can be directly multiplied by an inverse matrix of the transformation matrix to obtain an original coordinate value.
In a specific implementation, for example, when a component group includes components of pillars, if the pillar components included in the component group are only different in position information and other component information is the same, the other data is first data, and the position information of each component is second data, where the first data includes only one copy, and all the components may share the first data. The target storage data can therefore be regarded as including the first data of all component groups and the second data of each component.
As can be seen, in the embodiment of the present application, each component in the BIM model is classified according to the grid information to obtain a plurality of component groups, then target storage data of each component group is obtained, and finally target storage data of the plurality of component groups is stored. Therefore, the occupation of the BIM model on the storage space during storage can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
In one possible example, the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices included in the member.
The BIM model comprises a plurality of vertexes, and the vertexes can form members with different shapes according to different connection sequences and position information, so that the position information and the connection sequence of the vertexes contained in each member with the shape are specific, and each vertex corresponds to normal data, coordinate data and/or color data and the like. And normal data, coordinate data and color data are typically stored using a double precision floating point type.
It can be seen that, in this example, the mesh information includes normal data and/or coordinate data and/or color data, so that when the first data and the second data are compressed, these data can be processed simultaneously, and the data size of the finally obtained target storage data is ensured to be small enough.
In one possible example, the processing the first data and the second data to obtain target storage data includes: acquiring floating point type data contained in the first data and the second data; converting the floating point type data into integer type data according to a preset transformation matrix; converting the integer data into byte stream data according to a data compression algorithm; determining the non-floating point type data and the byte stream data contained in the first data and the second data as target storage data.
Wherein, each double-precision floating point type data storage needs 8 bytes, and the change of the double-precision floating point type into the integer type needs 4 bytes, so that each number can save half of the space. By setting up a transformation matrix, the double-precision floating point data is transformed into integer data, thereby realizing the transformation of data types and achieving the purpose of saving space. Because the matrix is an array of 16 floating point numbers, and the coordinate points and other information are tens of millions of levels or even hundreds of millions of levels, the floating point type storage is changed into integer type storage, and the space is reduced by at least 50%. The coordinate data can be converted into 32 bits, the normal data and the color data can be converted into byte type, the floating point type data is converted into byte type data to be stored, and the storage space can be reduced.
Therefore, in the example, the floating point data is converted into the byte stream data for storage according to the transformation matrix, so that the storage space of the BIM data can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
In one possible example, the building information includes location information, and the converting the integer data into byte stream data according to a data compression algorithm includes: determining center coordinates of the BIM model; acquiring offset coordinates of each member relative to the center coordinates according to the position information; assigning the offset coordinate to obtain compressed integer data; and performing data type conversion on the compressed integer data to obtain byte stream data.
The central coordinate of the BIM model may be a central coordinate of the BIM model determined based on the entire BIM model, or may be a central coordinate of each component group determined based on each component group. After the center coordinates are determined, offset coordinates in the second data for each member with respect to the center coordinates can be determined. If the center coordinates determined based on the BIM model are the center coordinates, the center coordinates should include all parameter types in the component information, and if the center coordinates determined based on each component group are the center coordinates, the center coordinates should include the parameter types in the second data of all components included in the component group corresponding to the center coordinates. For example, a member has coordinate information of x ═ 12000,4200,53400, which is 16-bit unsigned integer data, and after being shifted by the center position [12000,4200,53400], its coordinate is x2 ═ 125000-.
Therefore, in the example, the byte stream data obtained after the whole data is compressed is stored, so that the storage space of the BIM data can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
In one possible example, the determining the second data of each component according to the component information includes: determining a reference member of each member group, wherein the reference member is the member in each member group; determining offset data of each parameter type in the component information of the plurality of components in each component group with respect to the component information of the reference component; determining the offset data as second data for said each member.
The reference component may be any one component in the component group, or may be a component with the highest degree of overlap of component information with other components. The method of determining the reference member may include: dividing components with the same parameter value in the currently processed parameter types into a set, and reserving a first set with the maximum number of components, wherein the first set is a set in a plurality of sets; updating the currently processed parameter type to a next unprocessed parameter type, dividing the components with the same parameter value of the currently processed parameter type in the first set into a subset, and reserving a second set with the largest number of components, wherein the second set is a set in a plurality of subsets; repeating the operation until all the parameters are processed or only one member is left in the set reserved finally; and determining the member in the final set as a reference member.
Therefore, in this example, offset data of other components is determined according to the reference component, and finally the offset data is stored as second data, so that the storage space of the BIM data can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
In one possible example, the cloud stores basic grid information of the BIM model, and the processing the first data and the second data to obtain target storage data includes: numbering the basic grid information contained in the cloud; matching the grid information in the first data with the basic grid information in the cloud, and recording the corresponding number of the grid information; and replacing the grid information in the first data into the serial number to obtain target storage data.
All grid information existing in the BIM can be stored in the cloud in advance, and each grid information is labeled, for example, the grid information is numbered. When a specific BIM model is stored, the grid information existing in the BIM model which is processed currently can be determined firstly, the number of the grid information in the BIM model is determined, when the specific grid information is stored finally, the specific grid information is not stored, only the number corresponding to the grid information is stored, and when the specific grid information is used finally, the cloud end is removed to obtain the grid information corresponding to the number.
Therefore, in the embodiment, the grid information is stored at the cloud end, and the number of the grid information at the cloud end is locally stored, so that the storage space of the BIM data can be reduced, and the network transmission performance and the circulation speed of the BIM model are improved.
In one possible example, the second data includes pose information and position information, and the processing the first data and the second data to obtain target storage data includes: obtaining a posture transformation matrix and a position transformation matrix of the BIM according to the posture information and the position information of each component; determining a preset parameter M of the attitude information of each component; determining a preset parameter N of the position information of each component; and determining the first data and the attitude transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as the target storage data.
The position information may be coordinate data of the component, the position information is used for determining a specific orientation of the component in the BIM model, the posture information may include a placing angle of the component, a direction of the component, and the like, and the posture data may be used for representing a state of the component. The attitude transformation matrix and the position transformation matrix may be for all components in the BIM model, or may be for only the components in one component group, that is, the attitude transformation matrix and the position transformation matrix may be different for each component group. Each component has only one, and for the parameters M and N of the attitude information and the position information, the component can be combined according to the parameter M and the attitude transformation matrix to finally determine the specific attitude information of the component, and the component can be combined according to the parameter N and the position transformation matrix to finally determine the specific position information of the component.
Therefore, in this example, when the attitude information and the position information are stored, the storage space of the BIM data can be reduced according to different parameters, the attitude transformation matrix and the position transformation matrix, so that the network transmission performance and the circulation speed of the BIM model are improved.
Referring to fig. 3, fig. 3 is a block diagram illustrating functional units of a BIM-based data storage device according to an embodiment of the present disclosure, consistent with the embodiment described in fig. 2. The data storage device 300 based on the building information model BIM includes: a classifying unit 310, configured to classify each component in the BIM model according to grid information to obtain a plurality of component groups, where the grid information is used to represent a shape of the component, each component includes component information, and the component information includes the grid information; an obtaining unit 320, configured to perform the following operations for each component group in the multiple component groups, so as to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group; the storage unit 330 is configured to store target storage data of the plurality of component groups.
In one possible example, the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices included in the member.
In one possible example, the processing the first data and the second data to obtain target storage data includes: acquiring floating point type data contained in the first data and the second data; converting the floating point type data into integer type data according to a preset transformation matrix; converting the integer data into byte stream data according to a data compression algorithm; determining the non-floating point type data and the byte stream data contained in the first data and the second data as target storage data.
In one possible example, the building information includes location information, and the converting the integer data into byte stream data according to a data compression algorithm includes: determining center coordinates of the BIM model; acquiring offset coordinates of each member relative to the center coordinates according to the position information; assigning the offset coordinate to obtain compressed integer data; and performing data type conversion on the compressed integer data to obtain byte stream data.
In one possible example, the determining the second data of each component according to the component information includes: determining a reference member of each member group, wherein the reference member is the member in each member group; determining offset data of each parameter type in the component information of the plurality of components in each component group with respect to the component information of the reference component; determining the offset data as second data for said each member.
In one possible example, the cloud stores basic grid information of the BIM model, and the processing the first data and the second data to obtain target storage data includes: numbering the basic grid information contained in the cloud; matching the grid information in the first data with the basic grid information in the cloud, and recording the corresponding number of the grid information; and replacing the grid information in the first data into the serial number to obtain target storage data.
In one possible example, the second data includes pose information and position information, and the processing the first data and the second data to obtain target storage data includes: obtaining a posture transformation matrix and a position transformation matrix of the BIM according to the posture information and the position information of each component; determining a preset parameter M of the attitude information of each component; determining a preset parameter N of the position information of each component; and determining the first data and the attitude transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as the target storage data.
In the present embodiment, the data storage 300 based on the building information model BIM is presented in the form of a unit. An "element" may refer to an application-specific integrated circuit (ASIC), a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that may provide the described functionality.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, and as shown in the drawing, the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the processor 410, and the one or more programs 421 include instructions for executing any step of the method embodiment.
The communication unit is used for supporting the communication between the electronic equipment and other equipment. The terminal may further include a storage unit for storing program codes and data of the terminal.
The Processing Unit may be a Processor 410 or a controller, such as a Central Processing Unit (CPU), a general purpose Processor, a Digital Signal Processor (DSP), an Application-Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, units, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication unit may be the communication interface 430, the transceiver, the transceiving circuit, etc., and the storage unit may be the memory 420.
In a specific implementation, the processor 410 is configured to perform any one of the steps performed by the electronic device in the above method embodiments, and when performing data transmission, such as sending, the communication interface 430 is optionally invoked to complete the corresponding operation. The details will be described below.
In one possible example, the instructions in the program 421 are to perform the following operations: classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information; performing the following operation for each component group in the plurality of component groups to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group; storing the target storage data of the plurality of component groups.
In one possible example, the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices included in the member.
In one possible example, in the processing the first data and the second data to obtain the target storage data, the instructions in the program 421 are configured to: acquiring floating point type data contained in the first data and the second data; converting the floating point type data into integer type data according to a preset transformation matrix; converting the integer data into byte stream data according to a data compression algorithm; determining the non-floating point type data and the byte stream data contained in the first data and the second data as target storage data.
In one possible example, the building information includes location information, and the instructions in the program 421 are to perform the following operations in terms of the converting the integer data into byte stream data according to a data compression algorithm: determining center coordinates of the BIM model; acquiring offset coordinates of each member relative to the center coordinates according to the position information; assigning the offset coordinate to obtain compressed integer data; and performing data type conversion on the compressed integer data to obtain byte stream data.
In one possible example, in the aspect of determining the second data of each component according to the component information, the instructions in the program 421 are configured to: determining a reference member of each member group, wherein the reference member is the member in each member group; determining offset data of each parameter type in the component information of the plurality of components in each component group with respect to the component information of the reference component; determining the offset data as second data for said each member.
In one possible example, the cloud stores basic grid information of the BIM model, and in terms of the processing the first data and the second data to obtain target storage data, the instructions in the program 421 are configured to: numbering the basic grid information contained in the cloud; matching the grid information in the first data with the basic grid information in the cloud, and recording the corresponding number of the grid information; and replacing the grid information in the first data into the serial number to obtain target storage data.
In one possible example, the second data includes pose information and position information, and in the processing the first data and the second data to obtain target stored data, the instructions in the program 421 are configured to: obtaining a posture transformation matrix and a position transformation matrix of the BIM according to the posture information and the position information of each component; determining a preset parameter M of the attitude information of each component; determining a preset parameter N of the position information of each component; and determining the first data and the attitude transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as the target storage data.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software elements for performing the respective functions in order to implement the above-described functions. Those of skill in the art will readily appreciate that the present application is capable of being implemented in hardware or a combination of hardware and computer software to describe the various steps in connection with the embodiments presented herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and elements referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A data storage method based on a Building Information Model (BIM), which is characterized by comprising the following steps:
classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information;
performing the following operation for each component group in the plurality of component groups to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
storing the target storage data of the plurality of component groups.
2. The method of claim 1, wherein the mesh information comprises normal data, coordinate data, and/or color data corresponding to vertices contained by the component.
3. The method of any of claim 2, wherein said processing said first data and said second data to obtain target stored data comprises:
acquiring floating point type data contained in the first data and the second data;
converting the floating point type data into integer type data according to a preset transformation matrix;
converting the integer data into byte stream data according to a data compression algorithm;
determining the non-floating point type data and the byte stream data contained in the first data and the second data as target storage data.
4. The method of claim 3, wherein the building information includes location information, and wherein converting the integer data into byte stream data according to a data compression algorithm comprises:
determining center coordinates of the BIM model;
acquiring offset coordinates of each member relative to the center coordinates according to the position information;
assigning the offset coordinate to obtain compressed integer data;
and performing data type conversion on the compressed integer data to obtain byte stream data.
5. The method of claim 1, wherein said determining second data for said each component based on said component information comprises:
determining a reference member of each member group, wherein the reference member is the member in each member group;
determining offset data of each parameter type in the component information of the plurality of components in each component group with respect to the component information of the reference component;
determining the offset data as second data for said each member.
6. The method according to any one of claims 1 to 5, wherein basic grid information of the BIM is stored in a cloud, and the processing the first data and the second data to obtain target storage data comprises:
numbering the basic grid information contained in the cloud;
matching the grid information in the first data with the basic grid information in the cloud, and recording the corresponding number of the grid information;
and replacing the grid information in the first data into the serial number to obtain target storage data.
7. The method of any one of claims 1-6, wherein the second data includes pose information and position information, and wherein processing the first data and the second data to obtain target stored data comprises:
obtaining a posture transformation matrix and a position transformation matrix of the BIM according to the posture information and the position information of each component;
determining a preset parameter M of the attitude information of each component;
determining a preset parameter N of the position information of each component;
and determining the first data and the attitude transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as the target storage data.
8. A model storage device based on a Building Information Model (BIM), the device comprising:
the classification unit is used for classifying each component in the BIM according to grid information to obtain a plurality of component groups, wherein the grid information is used for representing the shape of the component, each component comprises the component information, and the component information comprises the grid information;
an obtaining unit, configured to perform the following operations for each component group in the plurality of component groups, to obtain target storage data of each component group: determining first data of a currently processed component group according to the component information, wherein the first data refers to data with the same parameter types and parameter values in the component information of a plurality of components in the currently processed component group, and the first data comprises the grid information; determining second data of each component in the currently processed component group according to the component information, wherein the second data comprises data different from the parameter type of the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
and the storage unit is used for storing target storage data of the plurality of component groups.
9. An electronic device comprising a processor, a memory, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN202010720321.4A 2020-07-23 2020-07-23 Building information model BIM-based data storage method and related device Active CN111930742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010720321.4A CN111930742B (en) 2020-07-23 2020-07-23 Building information model BIM-based data storage method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010720321.4A CN111930742B (en) 2020-07-23 2020-07-23 Building information model BIM-based data storage method and related device

Publications (2)

Publication Number Publication Date
CN111930742A true CN111930742A (en) 2020-11-13
CN111930742B CN111930742B (en) 2023-08-25

Family

ID=73314569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010720321.4A Active CN111930742B (en) 2020-07-23 2020-07-23 Building information model BIM-based data storage method and related device

Country Status (1)

Country Link
CN (1) CN111930742B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651070A (en) * 2020-12-18 2021-04-13 中哲国际工程设计有限公司 Data processing method based on building information model
CN114329692A (en) * 2021-11-29 2022-04-12 万翼科技有限公司 Building model processing method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025684A (en) * 2017-03-16 2017-08-08 北京中科辅龙计算机技术股份有限公司 Large scale scene based on model component feature is fixed frame per second and drawn and device
US20170243398A1 (en) * 2014-10-15 2017-08-24 Gaia3D Inc. Method and system for reducing volume of three-dimensional modeling data
CN107103158A (en) * 2017-05-24 2017-08-29 中铁四局集团有限公司 Method for realizing rapid modeling dynamic modification of high-speed railway bridge by utilizing DYNAMOO
CN107169228A (en) * 2017-06-09 2017-09-15 深圳市斯维尔科技股份有限公司 BIM model datas exchange method, device, terminal and computer-readable recording medium
CN109345628A (en) * 2018-08-07 2019-02-15 云南电网有限责任公司曲靖供电局 A kind of model light-weight technologg method, apparatus and electronic equipment
CN109871593A (en) * 2019-01-25 2019-06-11 深圳市华阳国际工程设计股份有限公司 Information inheriting method, apparatus and storage device based on BIM platform
CN110245368A (en) * 2018-03-09 2019-09-17 北京东晨工元科技发展有限公司 A kind of the structuring processing and storage method of BIM data
CN110706345A (en) * 2019-08-28 2020-01-17 中国铁道科学研究院集团有限公司电子计算技术研究所 Railway BIM model lightweight method and system based on component instance combination
CN111078750A (en) * 2019-11-29 2020-04-28 深圳市华阳国际工程设计股份有限公司 Data statistical method and device of project model and computer storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170243398A1 (en) * 2014-10-15 2017-08-24 Gaia3D Inc. Method and system for reducing volume of three-dimensional modeling data
CN107025684A (en) * 2017-03-16 2017-08-08 北京中科辅龙计算机技术股份有限公司 Large scale scene based on model component feature is fixed frame per second and drawn and device
CN107103158A (en) * 2017-05-24 2017-08-29 中铁四局集团有限公司 Method for realizing rapid modeling dynamic modification of high-speed railway bridge by utilizing DYNAMOO
CN107169228A (en) * 2017-06-09 2017-09-15 深圳市斯维尔科技股份有限公司 BIM model datas exchange method, device, terminal and computer-readable recording medium
CN110245368A (en) * 2018-03-09 2019-09-17 北京东晨工元科技发展有限公司 A kind of the structuring processing and storage method of BIM data
CN109345628A (en) * 2018-08-07 2019-02-15 云南电网有限责任公司曲靖供电局 A kind of model light-weight technologg method, apparatus and electronic equipment
CN109871593A (en) * 2019-01-25 2019-06-11 深圳市华阳国际工程设计股份有限公司 Information inheriting method, apparatus and storage device based on BIM platform
CN110706345A (en) * 2019-08-28 2020-01-17 中国铁道科学研究院集团有限公司电子计算技术研究所 Railway BIM model lightweight method and system based on component instance combination
CN111078750A (en) * 2019-11-29 2020-04-28 深圳市华阳国际工程设计股份有限公司 Data statistical method and device of project model and computer storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651070A (en) * 2020-12-18 2021-04-13 中哲国际工程设计有限公司 Data processing method based on building information model
CN114329692A (en) * 2021-11-29 2022-04-12 万翼科技有限公司 Building model processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111930742B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
CN103440357B (en) Virtual reality roaming scence generates method and system
KR101844297B1 (en) Apparatus and method for encoding 3d mesh
CN111191303A (en) BIM data processing method and device, electronic equipment and computer storage medium
US9177418B1 (en) System and method for converting computer aided design data into a three dimensional model
CN110021070B (en) Method, equipment and system for converting FBX three-dimensional model into glTF three-dimensional model
CN111930742A (en) Data storage method based on building information model BIM and related device
CN104143990A (en) Vertex parameter data compression
CN111260784B (en) Urban three-dimensional space grid compression coding method and device and terminal equipment
CN109683858B (en) Data processing method and device
CN111090903B (en) BIM-based component statistical method and related device
US10600142B2 (en) Compression and decompression of indices in a graphics pipeline
CN108537892A (en) The method that threedimensional model and contextual data are automatically imported UE4
CN113724401A (en) Three-dimensional model cutting method and device, computer equipment and storage medium
CN113034663A (en) GIM model lightweight processing method, device, equipment and storage medium
CN112612427A (en) Vehicle stop data processing method and device, storage medium and terminal
CN111090397B (en) Data deduplication method, system, equipment and computer readable storage medium
US8589475B2 (en) Modeling a cloud computing system
CN103970925A (en) Contact Surface Definition Creation Involving Low Order And Quadratic Finite Elements In A Numerical Simulation Of An Impact Event
CN116485995A (en) Modeling method based on assembled building components, intelligent terminal and storage medium
CN115272552A (en) Model rendering method and device
JP5932986B2 (en) Mesh sequence file format
CN112231800B (en) BIM graph optimization method and device and computer storage medium
CN114528305A (en) Vector data updating range determining method and device, electronic equipment and storage medium
JP4218800B2 (en) Data compression apparatus, data compression method, data expansion apparatus, data expansion method, n-dimensional shape model processing apparatus, program, and recording medium
CN111209615A (en) Building management and control-oriented BIM scene lightweight method

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
TA01 Transfer of patent application right

Effective date of registration: 20230627

Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518051

Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd.

Address before: 519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant before: WANYI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant