Method and device for data lightweighting used in the field of building information modeling

By adopting geometric similarity principles and shared geometry technology in the field of building information model BIM, only the segmentation data of similar rods and the transformation matrix are preserved, the performance problems caused by large amounts of duplicate data in traditional methods are solved, and the file loading speed is improved and rendering performance.

CN114021237BActive Publication Date: 2024-11-15BEIJING GLORY PKPM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111313937.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-08
Publication Date
2024-11-15
Estimated Expiration
2041-11-08

AI Technical Summary

Technical Problem

In the field of building information model BIM, traditional lightweight processing methods lead to slow computer loading and poor browsing experience due to a large amount of repeated rod data, which affects performance.

Method used

Using geometric similarity principles and shared geometric technology, only one divided geometric data information is saved for similar rods, and the reference and transformation matrix information of other rods are retained to generate data files used to describe the transmission and transformation tower model. .

Benefits of technology

Reduces lightweight file size, improves rendering and parsing speed and rendering performance, simplifies user browsing and operations, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021237B_ABST
    Figure CN114021237B_ABST
Patent Text Reader

Abstract

The present invention discloses a data lightweight method and device used in the field of building information model (BIM), a computer-readable storage medium and a computer program product. In the method, it includes using a power grid information model file, based on the parametric data of the power transmission tower model, determining the rod information of the rods of the power transmission tower pole; based on the rod information, determining a group of rods belonging to the first section information among multiple rods; determining the geometric information of the unit rod for the first section information; determining the transformation matrix of a group of rods relative to the geometric information of the unit rod; and generating a data file for describing the power transmission tower model based on the geometric information of the unit rod and the transformation matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure generally relate to the field of building information modeling (BIM), and more specifically, to a method, device, computer-readable storage medium, and computer program product for data lightweighting used in the field of building information modeling (BIM). Background Art

[0002] The Grid Information Model (GIM) format is a technical standard specified to meet the needs of three-dimensional design of power transmission and transformation projects. It digitizes the components of the power grid, uses information models as carriers, and integrates the information of each element, thereby achieving efficient, accurate, and comprehensive application of information. The transmission and transformation tower model is usually expressed in a parametric form in the GIM format file. Usually, a transmission and transformation tower model is composed of hundreds of poles. In the traditional lightweight processing process, it is usually necessary to segment each pole, obtain triangular facets, and then store them. However, since most of the poles in a tower are similar, there may be dozens or even hundreds of towers in the entire overhead line model, which will result in a large number of duplicate poles in the lightweight data. Therefore, when a computer reads such files, it will be limited by the hardware performance of the computer itself. There are usually problems such as slow file loading and poor browsing experience, and it affects the performance of lightweight model storage, network transmission, and analysis. Summary of the invention

[0003] The embodiments of the present disclosure provide a method, device, and computer-readable storage medium for data lightweighting used in the field of building information modeling (BIM). This paper adopts the principle of geometric similarity and uses shared geometry technology to store the segmented data of the transmission and transformation tower model: for the same type of poles, only one piece of segmented geometric data information is saved; while other poles retain the reference to the pole segmentation data and the corresponding transformation matrix information, which can not only reduce the size of the lightweight file, but also speed up the rendering parsing speed and rendering performance.

[0004] In a first aspect of the present disclosure, a method for data lightweighting is provided. The method includes: using a power grid information model file, based on the parameterized data of the power transmission tower model, determining the member information of the members of the power transmission tower pole; based on the member information, determining a group of members belonging to the first section information among a plurality of members; determining the geometric information of the unit member for the first section information; determining the transformation matrix of a group of members relative to the geometric information of the unit member; and generating a data file for describing the power transmission tower model based on the geometric information of the unit member and the transformation matrix.

[0005] In a second aspect of the present disclosure, a data lightweight device used in the field of building information modeling (BIM) is provided, the device comprising: a first determination module, configured to determine the member information of the members of the transmission and transformation tower pole based on the parametric data of the transmission and transformation tower model by using the power grid information model file; a second determination module, configured to determine a group of members belonging to first section information among a plurality of members based on the member information; a third determination module, configured to determine the geometric information of the unit member for the first section information; a fourth confirmation module, configured to determine the transformation matrix of a group of members relative to the geometric information of the unit member; and a generation module, configured to generate a data file for describing the transmission and transformation tower model based on the geometric information of the unit member and the transformation matrix.

[0006] In a third aspect of the present disclosure, an electronic device is provided, comprising: a memory and a processor, wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.

[0008] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.

[0009] This Summary is provided to introduce a selection of concepts in a simplified form that are further described in the Detailed Description below. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0011] Figure 1 A schematic diagram showing an example environment for using a method for data lightweighting according to certain embodiments of the present disclosure;

[0012] Figure 2 A flowchart showing a method of using data lightweighting according to certain embodiments of the present disclosure is shown;

[0013] FIG. 3A to FIG. 3DA diagram showing a specific calculation process of a transformation matrix according to some embodiments of the present disclosure;

[0014] FIG. 4A to FIG. 4B A diagram showing the geometric information of the calculated unit member;

[0015] Figure 5 A block diagram of a data lightweight apparatus 500 used in the field of Building Information Model (BIM) according to certain embodiments of the present disclosure is shown.

[0016] Figure 6 A block diagram of a computing system is shown in which one or more embodiments of the present disclosure may be implemented.

[0017] Throughout the drawings, the same or similar reference numbers denote the same or similar elements. DETAILED DESCRIPTION

[0018] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0019] The term "including" and its variations used in this document are open-ended, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment". The relevant definitions of other terms will be given in the following description.

[0020] The embodiments of the present disclosure provide a method, device, and computer-readable storage medium for lightweight data used in the field of building information model (BIM). This paper will adopt the principle of geometric similarity and use shared geometry technology to store the segmented data of the transmission and transformation tower model: for the same type of poles, only one piece of segmented geometric data information and multiple pieces of transformation matrix data information are saved; while other poles retain the reference and transformation matrix information of the component, which can not only reduce the size of the lightweight file, but also speed up the parsing speed and rendering performance of the rendering. Therefore, the working principle and mechanism of the present disclosure are significantly different from any known method.

[0021] In the following description, some embodiments will be discussed with reference to a power grid information model, such as a transmission tower model, etc. However, it should be understood that this is only to enable ordinary technicians in the field to better understand the principles and ideas of the embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure in any way.

[0022] Figure 1 A schematic diagram of a diagram 100 of an example environment for using a method of data lightweighting according to certain embodiments of the present disclosure is shown.

[0023] In step 101, at an execution subject (eg, a computer system, a computing module, etc.), a GIM model file is obtained (eg, received), for example, Figure 1 The GIM model file 101 of the present invention is a computer-readable file. The GIM model file includes a transmission and transformation tower model having a plurality of parameterized data. In step 102, the parameterized data in the GIM model file is identified. For example, it is executed in a determination module. The parameterized data in the GIM model file may include type parameters of the transmission and transformation tower, type and quantity of poles of the transmission and transformation tower, starting point information and end point information of the poles, cross-section information, etc., which are not limited in the present disclosure.

[0024] In step 103, based on these parameterized data, the tower type of the power transmission and transformation tower included in the GIM model file is determined.

[0025] In step 104, the transmission and transformation pole tower model with multiple parameterized data is transmitted to other entities via a network or in other ways, and can also be printed or presented on a display device. Regarding the generated transmission and transformation pole tower model, the present disclosure does not limit this.

[0026] It should be understood that Figure 1 The example environment 100 shown in the example is merely illustrative and is not intended to limit the scope of the present disclosure. The example environment 100 may also include various additional devices, apparatuses, and / or modules. Figure 1 The modules shown in the figure are also only illustrative and are not intended to limit the scope of the present disclosure. In some embodiments, some modules can be integrated into one physical entity, or further split into more modules.

[0027] Figure 2 A flowchart of a method for using data lightweighting used in the field of Building Information Modeling (BIM) according to certain embodiments of the present disclosure is shown.

[0028] For ease of description, the data lightweight method implemented by the method 200 in the field of building information model (BIM) will be described by taking the power grid information model file as an example. However, as mentioned above, this is merely exemplary and is not intended to limit the scope of the present disclosure in any way. The embodiment of the method 200 described herein can also be used for any other appropriate power grid information model file.

[0029] As described above, at block 201, the pole information of the pole of the power transmission and transformation tower pole is determined based on the parameterized data of the power transmission and transformation tower model using the power grid information model file. As an example, the pole information may include: starting point information, end point information, and cross-sectional information of the pole. Additionally or alternatively, the pole information may include angle information of the pole, material information of the pole, etc., which is not limited in the present disclosure.

[0030] At block 202, based on the member information, a group of members belonging to the first cross-sectional information among the plurality of members is determined. The group of members and the first cross-sectional information may be saved in a first container for saving data in the GIM model. Additionally or alternatively, the group of members and the first cross-sectional information may also be saved in any data variable with storage properties, a computer-readable file, etc., which is not limited by the present disclosure.

[0031] At box 203, the geometric information of the unit bar for the first section information is determined. In order to determine the geometric information of the unit bar for the first section information, the geometric information of the unit bar can be obtained by traversing the first container and splitting a bar with a length of 1 meter for the first type of bar section. The bar position of the unit bar can be at (0, 0, 0) and its orientation is in the Z-axis direction. The first section information and the geometric information of the unit bar are saved in the second container for storing data in the GIM model. Additionally or alternatively, the present disclosure can split any length of bar sections to obtain the geometric information of the unit bar, and the present disclosure is not limited to this. Additionally or alternatively, the first section information and the geometric information of the unit bar can also be saved in any data variable, computer-readable file, etc. with storage properties, and the present disclosure is not limited to this.

[0032] At box 204, a transformation matrix of the group of rods relative to the geometric information of the unit rod is determined. In order to obtain the transformation matrix, the rod information of the group of rods is first obtained, the length L of the group of rods is calculated by obtaining the starting point information and the end point information of the rod information of the group of rods, and the first transformation matrix is ​​calculated for the normal direction of the rod to the Z-axis direction; the second transformation matrix is ​​calculated by taking the length of the group of rods as the Z-axis scaling value; and the final transformation matrix is ​​generated by multiplying the first transformation matrix with the second transformation matrix. The geometric information of the unit rod in the second container and the final transformation matrix are saved in a third container for saving data in the GIM model. Additionally or alternatively, the geometric information of the unit rod and the final transformation matrix can also be saved in any data variable, computer-readable file, etc. with storage properties, and the present disclosure does not limit this. The third container for saving data is the data file saved in JSON format for storage, transmission, instantiation parsing or rendering. Additionally or alternatively, the third container for saving data can be saved in any format according to actual needs.

[0033] At block 205 , a data file for describing a transmission and transformation tower model is generated based on the geometric information of the unit pole and the transformation matrix.

[0034] It can be seen that in the lightweight process of the power transmission and transformation tower, the present disclosure only saves one copy of the segmentation data of the same pole information, and other poles retain the reference and transformation matrix information of the component, which can not only reduce the size of the lightweight file, but also speed up the rendering parsing speed and rendering performance. This not only facilitates user browsing and operation, but also improves the portability of user interaction with it, thereby improving work efficiency.

[0035] FIG. 3A to FIG. 3D The diagram shows the specific calculation process of the transformation matrix according to some embodiments of the present disclosure. In the GIM model file, the transformation matrix usually includes the scaling matrix, rotation matrix, and translation matrix of the rod.

[0036] Figure 3A An example of a unit transformation matrix is ​​shown. Then the upper left part of the unit transformation matrix Represents the scaling and rotation components of the unit transformation matrix; the right part of the unit transformation matrix Represents the homogeneous component of the unit transformation matrix; the lower part of the unit transformation 0.0 0.0 0.0 represents the translation component of the unit transformation matrix. FIG. 3A to FIG. 3D In the example, the starting point of a group of rods can be set to v1(x1, y1, z1) and the end point can be set to v2(x2, y2, z2).

[0037] Figure 3BFIG. 1 shows scaling a matrix diagram according to member information of a set of members. Figure 3B As shown, the scaling value of the group of rods on the Z axis can be considered as Zscale, and the scaling matrix MatrixScale of the group of rods is:

[0038]

[0039] Figure 3C An example flow chart of rotating a matrix based on the rod information of a group of rods is shown. Since the normal of the unit rod is Z(0.0, 0.0, 1.0), and the normal N of the group of rods is v2-v1, the coordinate system of the unit rod normal Z needs to be recalculated based on the normal N. In other words, while keeping Z fixed, transform the coordinate system where Z is located. The value rule of the up (up) vector is: take the unit normal of any coordinate axis that is not parallel to the normal N. The unit normals of the XYZ coordinate axes of the group of rods are X(1.0, 0.0, 0.0), Y(0.0, 1.0, 0.0), and Z(0.0, 0.0, 1.0). Figure 3C In the flowchart, normalize is a function that normalizes the specified normal, that is, divides the normal vector by the modulus of the normal vector.

[0040] exist Figure 3C In the example flow chart, first check whether the normal N is parallel to the X-axis. If so, the up vector is (0.0, 1.0, 0.0), then the Z-axis of the coordinate system of the unit bar normal Z is normalize(N), which takes the target vector as the Z-axis N; the Y-axis of the coordinate system of the unit bar normal Z is normalize(Z*up), which is obtained by cross product up; the X-axis of the coordinate system of the unit bar normal Z is normalize(Y*Z), which is obtained by cross product Z.

[0041] If the normal N is not parallel to the X-axis, check whether the normal N is parallel to the Y-axis. If so, the up vector is (1.0, 0.0, 0.0), then the Z axis of the coordinate system of the unit bar normal Z is normalize(N), which takes the target vector as the Z axis N; the Y axis of the coordinate system of the unit bar normal Z is normalize(Z*up), which is obtained by cross product up; the X axis of the coordinate system of the unit bar normal Z is normalize(Y*Z), which is obtained by cross product Z.

[0042] If the normal N is not parallel to the Y axis, check whether the normal N is parallel to the Z axis. If so, return the unit matrix. If not, the up vector is (0.0, 0.0, 1.0), then the Z axis of the coordinate system of the unit bar normal Z is normalize(N), which takes the target vector as the Z axis N; the X axis of the coordinate system of the unit bar normal Z is normalize(Z*up), which is obtained by cross product up; the Y axis of the coordinate system of the unit bar normal Z is normalize(Z*X), which is obtained by cross product Z. The rotation matrix MatrixRotate finally returned is

[0043] Figure 3D The translation matrix of the rod is shown in Figure 3D As shown in the figure, since the unit member is at point (0.0, 0.0, 0.0) by default, and the starting point of the instance member is v1 (x1, y1, z1), the translation matrix MatrixTranlate is

[0044] The transformation matrix of the rod member finally generated is MatrixInstance, where MatrixInstance=MatrixTranlate*MatrixRotate*MatrixScale.

[0045] FIG. 4A to FIG. 4B A diagram showing the calculation of the geometric information of a unit member. Figure 4A A flow chart 400 for calculating geometric information of a unit member is shown. Figure 4A As shown, in step 401, the cross-sectional information of the rod is first determined. In step 402, the two-dimensional profile of the rod can be obtained based on the cross-sectional information, and the profile information, stretching length, and stretching direction are input through the three-dimensional stretching modeling interface. In step 403, the geometric information of the unit rod can be obtained, thereby completing the segmentation of the unit rod.

[0046] Figure 4B An example of a stored member saved in JSON format is shown. Figure 4B As shown in the figure, the data "L 20x3" indicates that the cross section of the bar is L-shaped steel and the web thickness is 20 mm for bar 1; the data "R 3.5" indicates that the cross section of the bar is round steel and the radius is 3.5 mm for bar 2. According to the data, it can be known that the 2D profile of bar 1 is L-shaped, while the 2D profile of bar 2 is round steel. Through the 3D stretching modeling interface, the geometric information of the unit bar can be obtained by inputting the profile information, stretching length (1000 mm), and stretching direction (Z axis), thereby completing the segmentation of the unit bar.

[0047] Figure 5A block diagram of a data lightweight apparatus 500 used in the field of Building Information Model (BIM) according to certain embodiments of the present disclosure is shown.

[0048] The device includes a first determination module 501, which is configured to use the power grid information model file and determine the pole information of the pole of the power transmission and transformation tower based on the parameterized data of the power transmission and transformation tower model. As an example, the pole information may include: starting point information, end point information and cross-sectional information of the pole. Additionally or alternatively, the pole information may include angle information of the pole, material information of the pole, etc., which is not limited in the present disclosure.

[0049] The device also includes a second determination module 502, which is configured to determine a group of rods belonging to the first cross-sectional information among the plurality of rods based on the rod information. The group of rods and the first cross-sectional information can be saved in a first container for saving data in the GIM model. Additionally or alternatively, the group of rods and the first cross-sectional information can also be saved in any data variable with storage properties, a computer-readable file, etc., which is not limited by the present disclosure.

[0050] The device also includes a third determination module 503, which is configured to determine the geometric information of the unit bar for the first section information. In order to determine the geometric information of the unit bar for the first section information, the geometric information of the unit bar can be obtained by traversing the first container and splitting a bar with a length of 1 meter for the first type of bar section. The bar position of the unit bar can be at (0, 0, 0) point, and its orientation is in the Z-axis direction. The first section information and the geometric information of the unit bar are saved in the second container for storing data in the GIM model. Additionally or alternatively, the present disclosure can split any length of bar sections to obtain the geometric information of the unit bar, and the present disclosure is not limited to this. Additionally or alternatively, the first section information and the geometric information of the unit bar can also be saved in any data variable, computer-readable file, etc. with storage properties, and the present disclosure is not limited to this.

[0051] The device also includes a fourth determination module 504, which is configured to determine the transformation matrix of the group of rods relative to the geometric information of the unit rod. In order to obtain the transformation matrix, the rod information of the group of rods is first obtained, the length L of the group of rods is calculated by obtaining the starting point information and the end point information of the rod information of the group of rods, and the first transformation matrix is ​​calculated for the normal direction of the rod to the Z-axis direction; the second transformation matrix is ​​calculated by taking the length of the group of rods as the Z-axis scaling value; and the final transformation matrix is ​​generated by multiplying the first transformation matrix with the second transformation matrix. The geometric information of the unit rod in the second container and the final transformation matrix are saved in the third container for saving data in the GIM model. Additionally or alternatively, the geometric information of the unit rod and the final transformation matrix can also be saved in any data variable, computer-readable file, etc. with storage properties, and the present disclosure does not limit this. The third container for saving data is the data file saved in JSON format, so as to facilitate storage, transmission, instantiation parsing or rendering. Additionally or alternatively, the third container for saving data can be saved in any format according to actual needs.

[0052] The device also includes a generating module 505 configured to generate a data file for describing the transmission and transformation tower model based on the geometric information of the unit pole and the transformation matrix.

[0053] The device 500 disclosed in the present invention can save only one copy of the segmented data of the same pole information during the lightweighting process of the transmission and transformation tower, while other poles retain the reference and transformation matrix information of the component, thereby providing at least one advantage like the above-mentioned method 200.

[0054] Figure 6 A schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure is shown. Figure 2 The illustrated method 200 may be implemented by a computing system 600 . Figure 6 The computing system 600 shown is only an example, which should not constitute a limitation on the function and scope of the use of the implementation described herein. As shown, the device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the computer program instructions stored in a read-only memory (ROM) 602 or the computer program instructions loaded from a storage unit 608 into a random access memory (RAM) 603. In RAM 603, various programs and data required for the operation of the device 600 can also be stored. CPU 601, ROM 602 and RAM 603 are connected to each other by bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0055] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0056] Processing unit 601 performs the methods and processes described above, such as process 200. For example, in some embodiments, process 200 can be implemented as a computer software program or computer program product, which is tangibly contained in a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program can be loaded and / or installed on device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by CPU 601, one or more steps in any process of process 200 described above can be performed. Alternatively, in other embodiments, CPU 601 can be configured to perform process 200 in any other suitable manner (e.g., by means of firmware).

[0057] The present disclosure may be a method, an apparatus, a device and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.

[0058] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, any non-temporary storage device, or any suitable combination of the above. More specific examples (non-exhaustive list) of computer readable storage medium include: portable computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanical encoding device, such as a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination of the above. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (e.g., a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0059] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0060] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via an Internet service provider). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized and customized by the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0061] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0062] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0063] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0064] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0065] Some example implementations of the present disclosure are listed below.

[0066] In a first aspect of the present disclosure, a method for data lightweighting used in the field of building information modeling (BIM) is provided, the method comprising: using a power grid information model file, based on the parametric data of the power transmission and transformation tower model, determining the member information of the members of the power transmission and transformation tower pole; based on the member information, determining a group of members belonging to first section information among a plurality of members; determining the geometric information of the unit member for the first section information; determining a transformation matrix of a group of members relative to the geometric information of the unit member; and generating a data file for describing the power transmission and transformation tower model based on the geometric information of the unit member and the transformation matrix.

[0067] In some embodiments, the method further includes: rod information including start point information, end point information and cross-section information of the rod.

[0068] In some embodiments, the method further includes: wherein the geometric information of the unit bar is obtained by segmenting the bar.

[0069] In some embodiments, the method also includes, wherein determining the transformation matrix includes: calculating a first transformation matrix from the normal of a set of rods to the Z-axis direction; calculating a second transformation matrix using the length of the set of rods as a Z-axis scaling value; and multiplying the first transformation matrix by the second transformation matrix to generate a transformation matrix.

[0070] In some embodiments, the method further includes: the section information and the member information are saved in a first container, the first section information and the geometric information of the unit member are saved in a second container, and the geometric information of the unit member and multiple transformation matrices are saved in a third container.

[0071] In some embodiments, the method further includes the third container being a data file saved in JSON format to facilitate storage, transmission, instantiation parsing or rendering.

[0072] In some embodiments, the method further includes: determining, based on the rod information, a group of rods among the plurality of rods that belong to the second type of cross-section.

[0073] In certain embodiments of the second aspect, a data lightweight device used in the field of building information modeling (BIM) is provided, the device comprising: a first determination module, configured to determine, by using a power grid information model file, member information of members of a power transmission and transformation tower pole based on parameterized data of a power transmission and transformation tower model; a second determination module, configured to determine, based on the member information, a group of members among a plurality of members belonging to first section information; a third determination module, configured to determine geometric information of a unit member for the first section information; a fourth confirmation module, configured to determine a transformation matrix of a group of members relative to geometric information of the unit member; and a generation module, configured to generate a data file for describing the power transmission and transformation tower model based on the geometric information of the unit member and the transformation matrix.

[0074] In some embodiments, the device further includes: rod information including starting point information, end point information and cross-section information of the rod.

[0075] In some embodiments, the apparatus further includes: wherein the geometric information of the unit bar is obtained by splitting the bar.

[0076] In some embodiments, the device also includes: wherein determining the transformation matrix includes: calculating a first transformation matrix for a set of rods from the normal to the Z-axis direction; calculating a second transformation matrix using the length of a set of rods as a Z-axis scaling value; and multiplying the first transformation matrix by the second transformation matrix to generate a transformation matrix.

[0077] In some embodiments, the device also includes: wherein the section information and the member information are saved in a first container, the first section information and the geometric information of the unit member are saved in a second container, and the geometric information of the unit member and multiple transformation matrices are saved in a third container.

[0078] In some embodiments, the device further includes: a third container is a data file saved in JSON format to facilitate storage, transmission, instantiation parsing or rendering.

[0079] In some embodiments, the apparatus further comprises: determining, based on the rod information, a group of rods among the plurality of rods that belong to the second type of cross-section.

[0080] In an embodiment of the third aspect, an electronic device is provided, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.

[0081] In an embodiment of the fourth aspect, a computer-readable storage medium is provided, on which one or more computer instructions are stored, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.

[0082] In an embodiment of the fifth aspect, a computer program product is provided, comprising one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.

[0083] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A data lightweight method used in the field of building information model (BIM), the method comprising: Determine the pole member information of the pole member of the power transmission and transformation tower model based on the parameterized data of the power transmission and transformation tower model by using the power grid information model file; Based on the rod information, determining a group of rods from the plurality of rods that belong to the first cross-section information; Determine geometric information of a unit bar for the first cross-section information; Determine a transformation matrix of the geometric information of the group of rods relative to the unit rod; as well as Based on the geometric information of the unit pole and the transformation matrix, a data file for describing the transmission and transformation tower model is generated; Wherein determining the transformation matrix comprises: Calculate a first transformation matrix from the normal direction of the group of rods to the Z-axis direction; Calculate a second transformation matrix by taking the length of the group of rods as a Z-axis scaling value; and The first transformation matrix is ​​multiplied by the second transformation matrix to generate the transformation matrix.

2. The method according to claim 1, wherein the rod information comprises: The starting point information, end point information and cross-section information of the rod. 3 . The method according to claim 1 , wherein the geometric information of the unit bar is obtained by segmenting the bar.

4. The method according to claim 1, wherein the section information and the member information are saved in a first container, the first section information and the geometric information of the unit member are saved in a second container, and the geometric information of the unit member and the plurality of transformation matrices are saved in a third container.

5. The method according to claim 4 further includes the third container being the data file saved in JSON format to facilitate storage, transmission, instantiation parsing or rendering. 6 . The method according to claim 1 , further comprising determining a group of members belonging to a second type of cross-section among a plurality of members based on the member information.

7. A data lightweight device used in the field of building information model (BIM), the device comprising: A first determination module is configured to determine the pole member information of the pole member of the power transmission and transformation tower model based on the parameterized data of the power transmission and transformation tower model by using the power grid information model file; A second determination module is configured to determine a group of rods belonging to the first cross-section information among the plurality of rods based on the rod information; A third determination module is configured to determine geometric information of a unit bar for the first cross-sectional information; A fourth confirmation module is configured to determine a transformation matrix of the geometric information of the group of rods relative to the unit rod; as well as A generating module, configured to generate a data file for describing the transmission and transformation tower model based on the geometric information of the unit pole and the transformation matrix; Wherein determining the transformation matrix comprises: Calculate a first transformation matrix from the normal direction of the group of rods to the Z-axis direction; Calculate a second transformation matrix by taking the length of the group of rods as a Z-axis scaling value; and The first transformation matrix is ​​multiplied by the second transformation matrix to generate the transformation matrix.

8. The device according to claim 7, wherein the rod information comprises: The starting point information, end point information and cross-section information of the rod.

9. The device according to claim 7, wherein the geometric information of the unit bar is obtained by splitting the bar.

10. The device according to claim 9, wherein the section information and the member information are saved in a first container, the first section information and the geometric information of the unit member are saved in a second container, and the geometric information of the unit member and the plurality of transformation matrices are saved in a third container.

11. The apparatus according to claim 10, further comprising the third container being the data file saved in JSON format for easy storage, transmission, instantiation parsing or rendering. 12 . The apparatus according to claim 7 , further comprising determining a group of rods belonging to the second type of cross-section among the plurality of rods based on the rod information.

13. An electronic device comprising: Memory and processor; The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 6.

14. A computer-readable storage medium having one or more computer instructions stored thereon, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 6.

15. A computer program product comprising one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 6.