CN111930742B - Building information model BIM-based data storage method and related device - Google Patents

Building information model BIM-based data storage method and related device Download PDF

Info

Publication number
CN111930742B
CN111930742B CN202010720321.4A CN202010720321A CN111930742B CN 111930742 B CN111930742 B CN 111930742B CN 202010720321 A CN202010720321 A CN 202010720321A CN 111930742 B CN111930742 B CN 111930742B
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.)
Active
Application number
CN202010720321.4A
Other languages
Chinese (zh)
Other versions
CN111930742A (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
Shenzhen Wanyi Digital Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Wanyi Digital Technology Co ltd filed Critical Shenzhen Wanyi Digital 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

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)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a data storage method and a related device based on a Building Information Model (BIM), 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 operations for each of the plurality of component groups to obtain target storage data for 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; target storage data of the plurality of component groups is stored. Therefore, the occupation of the BIM to the storage space during storage is reduced, and the network transmission performance and the circulation speed of the BIM are improved.

Description

Building information model BIM-based data storage method and related device
Technical Field
The application relates to the technical field of building design, in particular to a data storage method and a related device based on a building information model BIM.
Background
The building information model (Building Information Modeling, BIM) technology is a datamation tool applied to engineering design, construction and management, and by integrating datamation and informatization models of buildings, sharing and transmitting are carried out in the whole life cycle process of project planning, operation and maintenance, so that engineering technicians can correctly understand and highly effect various building information, a cooperative work foundation is provided for design teams and construction subjects of all parties including buildings and operation units, and important effects are played in terms of improving production efficiency, saving cost and shortening construction period. Most BIM files used in the market at present adopt a digital-analog separation mode to realize the purpose of light weight of the model. Because the model formats of different vendors are organized differently, the different vendors almost always provide specific model export application program interfaces (Application Programming Interface, APIs) to implement direct export of model parts in BIM files into a generic 3d model format.
Disclosure of Invention
The embodiment of the application provides a data storage method and a related device based on a building information model BIM, so that the storage space of the model can be reduced.
In a first aspect, an embodiment of the present application provides a method for storing data 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 component information, and the component information comprises the grid information;
performing the following operations for each of the plurality of component groups to obtain target storage data for each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing 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 with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
target storage data of the plurality of component groups is stored.
In a second aspect, an embodiment of the present application provides a data storage device based on a building information model BIM, the device including:
a classification unit, 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, configured to perform, for each of the plurality of component groups, the following operation to obtain target storage data of each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing 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 with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
and a storage unit configured to store 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, the programs including instructions for performing steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform part or all of the steps as described in any of the methods of the first aspect of the embodiments of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any 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 first 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 to the storage space during storage is reduced, and the network transmission performance and the circulation speed of the BIM are improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a block diagram of a BIM-based data storage system provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a BIM-based data storage method according to an embodiment of the present application;
FIG. 3 is a block diagram showing the functional units of a BIM-based data storage device according to an embodiment of the present application;
fig. 4 is a schematic diagram of an electronic device result according to an embodiment of the present application.
Detailed Description
In order to make the present application better understood by those skilled in the art, the following description will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
At present, the general 3d file format considers the application purpose of the general 3d model, so that a lot of compatibility information is added, and when BIM model data are huge, the 3d file occupies a large space.
In view of the foregoing, an embodiment of the present application provides a data storage method and a related device based on a building information model BIM, and the following detailed description of the embodiment of the present application is provided with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a BIM-based data storage system 100 according to 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 flow chart of a BIM-based data storage method according to an embodiment of the present application, and as shown in the drawing, the building information model-based data storage method includes the following steps.
S201, classifying each component in the BIM model 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 component information, and the component information comprises the grid information.
Wherein the mesh information may be used to represent the information of the members having different shapes, that is, each member having a unique mesh information, for example, the mesh information of the pillars in the BIM model is the same, even though the positions and attitudes of the members each having the pillars are different, their mesh information is the same. The mesh information may be regarded as a set of points and triangle sides constituting the triangular surface of the member, and includes normal line information, color information, and the like of the vertices, and a connection order of each vertex.
S202, executing 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 current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing 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 with different parameter types from 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, for example, 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 type of all 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 the 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; updating the currently processed parameter type to be the next unprocessed parameter type until all parameter types are processed. The second data may be regarded as data obtained by excluding information which is 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 the requirements of a user, the data can be processed after the first data and the second data are determined by the component group which is processed currently, 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 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 the front end is rendered finally, the original coordinate value can be obtained by directly multiplying corresponding data by the inverse matrix of the transformation matrix.
In a specific implementation, for example, when the component group includes components of a column, if the component groups include components of the column that are different in position information and the other component information are the same, the other data are first data, and the position information of each component is second data, where the first data include only one part, and all components may share the first data. The target storage data can thus be regarded as first data containing all the component groups and second data of each component.
It can be seen that, in the embodiment of the present application, each component in the BIM model is first 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 to the storage space during storage can be reduced, and the network transmission performance and the circulation speed of the BIM can be improved.
In one possible example, the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices contained by the member.
Wherein the BIM model comprises a plurality of vertices which may constitute differently shaped members according to different connection orders and position information, and therefore, the position information and connection orders of the vertices comprised by each shaped member are specific, and each vertex corresponds to normal data, coordinate data and/or color data, etc. And typically normal data, coordinate data and color data are all stored using double precision floating point types.
It can be seen that, in this example, the grid 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, so as to ensure that the data amount of the finally obtained target storage data is small enough.
In one possible example, the processing the first data and the second data to obtain target storage data includes: obtaining 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; and 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 4 bytes are needed for changing the double-precision floating point to integer, so that each number can save half of space. By setting up a transformation matrix, double-precision floating point data are transformed into integer data, so that the conversion of data types is realized, and the purpose of saving space can be achieved. Because the matrix is only an array of 16 floating point numbers, and the information such as coordinate points is a quantity of tens of millions or even hundreds of millions, the floating point type storage is changed into integer type storage, and the space for reduction is at least 50%. The value of the coordinate data can be converted into 32 bits, the normal data and the color data can be converted into byte types, floating point data are converted into byte type data for storage, and the storage space can be reduced.
Therefore, in this example, floating point data is converted into byte stream data according to the transformation matrix for storage, so that the storage space of 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 component information includes location information, the converting the integer data into byte stream data according to a data compression algorithm includes: determining a center coordinate of the BIM model; acquiring offset coordinates of each component relative to the center coordinates according to the position information; assigning the offset coordinates to obtain compression integer data; and performing data type conversion on the compression integer data to obtain byte stream data.
The center coordinates of the BIM model may be center coordinates of the BIM model determined based on the whole BIM model, or center coordinates of each component group determined based on each component group. After the center coordinates are determined, offset coordinates with respect to the center coordinates in the second data of each member can be determined. If the center coordinates are determined based on the BIM model, the center coordinates should include all parameter types in the component information, and if the center coordinates are determined based on each component group, 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, the coordinate information of a component is x= [12000,4200,53400], which is 16-bit unsigned integer data, the coordinate of the component is x 2= [125000-12000,4300-4200,53000-53400] = [5000,100, -400] after the component is shifted through the central position [12000,4200,53400], and then the component is further divided by a constant, for example 65535, so that the component becomes x 3= [5000/65535,100/65535, -400/65535], and finally x3 is multiplied by another constant m, so that the finally obtained value can be fixed in the range of 8-bit unsigned integer data, the integer data is further compressed, and the compressed data is stored in a byte stream mode, and the compression rate of the compressed data can reach at least 10%.
Therefore, in this example, the byte stream data obtained after the compression processing is stored on the overall 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 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 a 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 relative to the component information of the reference component; and determining the offset data as second data of each component.
The reference member may be any member in the member group, or a member having the highest overlapping degree with the member information of other members may be determined as the reference member. The method of determining a reference member may comprise: dividing the components with the same parameter value in the currently processed parameter types into a set, and reserving a first set with the largest number of the contained components, wherein the first set is one of a plurality of sets; updating the current processed parameter type into the next unprocessed parameter type, dividing the components with the same parameter value of the current processed parameter type in the first set into a subset, and reserving a second set with the largest number of contained components, wherein the second set is a set in a plurality of subsets; repeating the operation until all parameters are processed or only one member remains in the reserved set; the components in the final set are determined to be reference components.
In this example, the offset data of other components is determined according to the reference component, and the offset data is finally stored as the 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 end 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 with the number to obtain target storage data.
All grid information existing in the BIM model can be stored in the cloud in advance, and each grid information is marked, for example, numbered. When a specific BIM model is stored, grid information existing in the BIM model which is currently processed can be determined, the number of the grid information in the BIM model is determined, when the specific grid information is finally stored, only the number corresponding to the grid information is stored, and when the specific grid information is finally used, the cloud end is used for obtaining the grid information corresponding to the number.
Therefore, in this example, the grid information is stored in the cloud, and the number of the grid information in the cloud is stored locally, 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 gesture 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, the gesture transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as target storage data.
The position information may be coordinate data of the component, the position information is used for determining a specific azimuth of the component in the BIM model, the posture information may include data such as a placement 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 gesture transformation matrix and the position transformation matrix may be for all components in the BIM model, or may be for only components in one component group, that is, the gesture transformation matrix and the position transformation matrix of each component group may be different. Each component is provided with a unique parameter M and a unique parameter N aiming at the attitude information and the position information, the component can finally determine the specific attitude information of the component according to the combination of the parameter M and the attitude transformation matrix, and the component can finally determine the specific position information of the component according to the combination of the parameter N and the position transformation matrix.
In this example, when the posture information and the position information are stored, the storage space of the BIM data can be reduced according to different parameters, the posture transformation matrix and the position transformation matrix, so that the network transmission performance and the circulation speed of the BIM model are improved.
In accordance with the embodiment described in fig. 2, please refer 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 application. The building information model BIM-based data storage device 300 includes: a classification 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, and each component includes component information, and the component information includes the grid information; an obtaining unit 320, configured to perform, for each of the plurality of component groups, the following operations, to obtain target storage data of each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing 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 with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group; and a storage unit 330 for storing 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 contained by the member.
In one possible example, the processing the first data and the second data to obtain target storage data includes: obtaining 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; and 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 component information includes location information, the converting the integer data into byte stream data according to a data compression algorithm includes: determining a center coordinate of the BIM model; acquiring offset coordinates of each component relative to the center coordinates according to the position information; assigning the offset coordinates to obtain compression integer data; and performing data type conversion on the compression 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 a 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 relative to the component information of the reference component; and determining the offset data as second data of each component.
In one possible example, the cloud end 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 with the number to obtain target storage data.
In one possible example, the second data includes gesture 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, the gesture transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as 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. "unit" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory executing one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above 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, which is not described herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 2, 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 embodiments.
The communication unit is used for supporting the communication between the electronic device and other devices. The terminal may further comprise a memory 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 (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an Application-specific integrated circuit (ASIC), a field programmable gate array (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 exemplary logic blocks, units and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication unit may be a communication interface 430, a transceiver, a transceiving circuit, etc., and the storage unit may be a memory 420.
In particular implementations, the processor 410 is configured to perform any of the steps performed by the electronic device in the method embodiments described above, and when performing a data transmission, such as a transmission, the communication interface 430 is optionally invoked to complete the corresponding operation. The following is a detailed description.
In one possible example, the instructions in the program 421 are for performing 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 component information, and the component information comprises the grid information; performing the following operations for each of the plurality of component groups to obtain target storage data for each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing 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 with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group; target storage data of the plurality of component groups is stored.
In one possible example, the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices contained by the member.
In one possible example, in said processing of said first data and said second data resulting in target stored data, instructions in said program 421 are for: obtaining 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; and 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 component information includes location information, and the instructions in the program 421 are for performing the following operations in terms of converting the integer data into byte stream data according to a data compression algorithm: determining a center coordinate of the BIM model; acquiring offset coordinates of each component relative to the center coordinates according to the position information; assigning the offset coordinates to obtain compression integer data; and performing data type conversion on the compression integer data to obtain byte stream data.
In one possible example, in said determining the second data of each component from the component information, the instructions in the program 421 are for: determining a reference member of each member group, wherein the reference member is a 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 relative to the component information of the reference component; and determining the offset data as second data of each component.
In one possible example, the cloud end stores basic grid information of the BIM model, and in the aspect of processing the first data and the second data to obtain target storage data, the instructions in the program 421 are configured to perform the following operations: 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 with the number to obtain target storage data.
In one possible example, the second data includes gesture information and location information, and in said 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, the gesture transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as target storage data.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that, in order to achieve the above-described functions, the electronic device includes corresponding hardware structures and/or software elements for performing the respective functions. Those of skill in the art will readily appreciate that the various steps described in connection with the embodiments provided herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven 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.
The embodiment of the application can divide the functional units of the electronic device according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can be integrated in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of 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 part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, it should be understood by those skilled in the art that the embodiments described in the specification are all preferred embodiments, and the acts and elements referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, such as the above-described division of units, merely a division of logic functions, and there may be additional manners of dividing in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, or may be in electrical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units described above, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned method of the various embodiments of the present application. And the aforementioned memory includes: a U-disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or a portion of the steps in the various methods of the above embodiments may be implemented by a program that instructs associated hardware, and the program may be stored in a computer readable memory, which may include: flash disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk.
The foregoing has outlined rather broadly the more detailed description of embodiments of the application, wherein the principles and embodiments of the application are explained in detail using specific examples, the above examples being provided solely to facilitate the understanding of the method and core concepts of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. A method for storing data based on a building information model BIM, the method comprising:
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 component information, and the component information comprises the grid information;
performing the following operations for each of the plurality of component groups to obtain target storage data for each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing component group, and the first data comprises the grid information; determining a reference member of each member group, wherein the reference member is a 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 relative to the component information of the reference component; determining the offset data as second data of each component, wherein the second data comprises data with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
target storage data of the plurality of component groups is stored.
2. The method of claim 1, wherein the mesh information includes normal data, coordinate data, and/or color data corresponding to vertices contained by the member.
3. The method of claim 2, wherein the processing the first data and the second data to obtain target storage data comprises:
obtaining 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;
and 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. A method according to claim 3, wherein the component information comprises location information, the converting the integer data into byte stream data according to a data compression algorithm comprising:
determining a center coordinate of the BIM model;
acquiring offset coordinates of each component relative to the center coordinates according to the position information;
assigning the offset coordinates to obtain compression integer data;
and performing data type conversion on the compression integer data to obtain byte stream data.
5. The method according to any one of claims 1-4, wherein the cloud end 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 with the number to obtain target storage data.
6. The method of claim 1, wherein the second data includes pose information and position information, and wherein the processing the first data and the second data to obtain target storage 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, the gesture transformation matrix, the position transformation matrix, the preset parameter M and the preset parameter N as target storage data.
7. A model storage device based on a building information model BIM, the device comprising:
a classification unit, 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, configured to perform, for each of the plurality of component groups, the following operation to obtain target storage data of each component group: determining first data of a current processing component group according to the component information, wherein the first data refers to data with the same parameter type and parameter value in component information of a plurality of components in the current processing component group, and the first data comprises the grid information; determining a reference member of each member group, wherein the reference member is a 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 relative to the component information of the reference component; determining the offset data as second data of each component, wherein the second data comprises data with different parameter types from the first data; processing the first data and the second data to obtain target storage data of the currently processed component group;
and a storage unit configured to store target storage data of the plurality of component groups.
8. 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-6.
9. 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-6.
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 CN111930742A (en) 2020-11-13
CN111930742B true 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)

Families Citing this family (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 (8)

* 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
CN107103158A (en) * 2017-05-24 2017-08-29 中铁四局集团有限公司 The method that high-speed rail bridge rapid modeling is dynamically changed is realized using DYNAMO
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101614065B1 (en) * 2014-10-15 2016-04-20 가이아쓰리디 주식회사 Method and system for reducing 3d modeling data

Patent Citations (8)

* 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
CN107103158A (en) * 2017-05-24 2017-08-29 中铁四局集团有限公司 The method that high-speed rail bridge rapid modeling is dynamically changed is realized using DYNAMO
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

Also Published As

Publication number Publication date
CN111930742A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN111930742B (en) Building information model BIM-based data storage method and related device
CN107247822B (en) Method for lightening BIM (building information modeling) model
CN111090903B (en) BIM-based component statistical method and related device
CN108023942A (en) CAD modeling datas transmission method based on cloud platform, server and client side
CN109683858B (en) Data processing method and device
CN116843525B (en) Intelligent automatic course arrangement method, system, equipment and storage medium
CN113256782A (en) Three-dimensional model generation method and device, storage medium and electronic equipment
CN109697748A (en) Model compression processing method, model pinup picture processing method device, storage medium
CN109976827B (en) Model loading method, server and terminal
CN111339599A (en) Conversion method from BIM model to GIS model
CN113470092B (en) Terrain rendering method and device, electronic equipment and storage medium
CN112233241B (en) Method and device for generating height map of virtual scene terrain and storage medium
CN107301269B (en) Method for carrying out data interaction on power distribution device based on BIM technology
CN117455895A (en) Preparation device and preparation method for realizing wire clamp
US20110185014A1 (en) Modeling a cloud computing system
CN108288303B (en) Automatic checking method, device, equipment and medium for three-dimensional model purchasing specification
CN107393019B (en) Particle-based cloth simulation method and device
CN110287351A (en) A kind of threedimensional model lightweight displaying optimization method
CN111046214B (en) Method for dynamically processing model
CN115272552A (en) Model rendering method and device
CN115035265A (en) SketchUp scene-to-three-dimensional geographic space conversion method, terminal and storage medium
CN114528305A (en) Vector data updating range determining method and device, electronic equipment and storage medium
CN114307158A (en) Three-dimensional virtual scene data generation method and device, storage medium and terminal
CN115205484A (en) Three-dimensional space display method, device, equipment and medium for historical culture block
CN107784674B (en) Method and system for simplifying three-dimensional model

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