Disassembling animation generation method based on three-dimensional model generated by GIM file

By analyzing GIM files and generating dynamic animations of the device model, the problem that three-dimensional models can only be displayed statically in the existing technology is solved, and the dynamic display of the power grid information model and the spatial relationship between equipment parts is realized, which improves the effectiveness of teaching and training.

CN119648870APending Publication Date: 2025-03-18ECONOMIC TECH RES INST OF STATE GRID HENAN ELECTRIC POWER +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411561487.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

The three-dimensional model generated by existing GIM files can only be displayed statically, and cannot dynamically display the spatial relationship between the components of the equipment and the assembly, making it difficult to play an effective role in teaching and training scenarios.

Method used

By parsing the dev files, mod files and phm files in the GIM file, generate dynamic animation of the explosion diagram of the device model, and view the basic information of the mounted device by clicking on the device components.

Benefits of technology

The dynamic display of the power grid information model is realized, and users can understand the spatial relationship between the components of the equipment and the assembly, improving the effectiveness of teaching and training.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119648870A_ABST
    Figure CN119648870A_ABST
Patent Text Reader

Abstract

The invention relates to a disassembly animation generation method based on a three-dimensional model generated by a GIM file, and relates to the technical field of electric power digitization. Comprising the following steps: analyzing each dev file in the GIM file; generating and creating a 3d model of each basic primitive; forming a structure that a plurality of'mod parent levels' point to one'phm parent level '; forming a structure that a plurality of'phm parent levels' point to a'dev parent level '; counting the position information of each basic primitive, and calculating to obtain the position of a'phm parent '; for each'phm parent ', known coordinate information is (xi, yi, zi), and a ray from the original point to the'phm parent' exists; generating an explosion view of the equipment model; the basic information of the mounted equipment is checked by clicking each component of each piece of equipment. The disassembly animation generation method can dynamically display the power grid information model. And meanwhile, the basic information of the mounted equipment is checked by clicking each component of each piece of equipment. In this way, when a user checks the model, the user can know the space relation between component composition and assembly of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric power digitization, and in particular to a disassembly animation generation method based on a three-dimensional model generated by a GIM file. Background Art

[0002] With the continuous deepening of digitalization, informatization, and intelligence in the power industry and the continuous expansion of power application fields, GIM (Grid Information Model) files, as necessary files for digital handover by power design institutes, play a very important role in the entire life cycle of power transmission and transformation projects. GIM files contain information on equipment and facilities of various power grids, including spatial information and electrical information of electrical components. Currently, the three-dimensional models generated by GIM files are all statically displayed, but this display method can only present the overall fixed state of a device or facility. When viewing the model, users cannot understand the composition of the equipment components and the spatial relationship during assembly. For example, in the scenario of employee training and teaching, a single device has many components and complex combination relationships. Static models cannot achieve good teaching effects, but models with disassembly animations can play a good teaching role. Summary of the invention

[0003] The present invention provides a disassembly animation generation method based on a three-dimensional model generated by a GIM file, which is used to solve the problem that the three-dimensional model generated by the GIM file can only be displayed statically.

[0004] The present invention provides a disassembly animation generation method based on a three-dimensional model generated by a GIM file, comprising the following steps:

[0005] Step S10, parsing each dev file in the GIM file;

[0006] Step S20, generating and creating 3D models of various basic graphics elements through the mod file of the GIM file;

[0007] Step S30, forming a structure in which multiple "mod parents" point to one "phm parent" according to the component structure extracted from the phm of the GIM file;

[0008] Step S40, according to the structure extracted from the dev file, a structure in which multiple "phm parents" point to one "dev parent" is formed;

[0009] Step S50, counting the position information of each basic graphic element, and calculating the position of "phm parent" by a position calculation formula;

[0010] Step S60, for each of the "phm parent", the known coordinate information is (xi, yi, zi), and there is a ray from the origin to the "phm parent";

[0011] Step S70, generating an exploded view of the device model;

[0012] Step S80, clicking on each component of each device to view basic information of the mounted device.

[0013] In one embodiment, the step S10 specifically includes the following steps:

[0014] Step S101, extracting attribute parameters from the fam files corresponding to the "physical model", "combined model" and "geometric model" files of dev itself and its children;

[0015] Step S102, the information of all files is aggregated into a JSON file;

[0016] The JSON file contains detailed information about each subcomponent of the device, including the level, name, URL and information list of each subcomponent.

[0017] In one embodiment, in the step S20, for a mod file, an empty object named after the mod file name is created, and all primitive 3D models point to the empty object, with the empty object as the parent, which is called the "mod parent".

[0018] In one embodiment, in step S30, the "phm parent" is named after the child device name extracted from the fam.

[0019] In one embodiment, in step S40, the "dev parent" is named after the equipment facility name extracted from the fam.

[0020] In one embodiment, the position calculation formula is:

[0021]

[0022] Among them, Position phm Represents the spatial coordinates of each phm level model, position i Represents the spatial coordinates of each basic primitive, and n represents the number of basic primitives that make up the phm-level model.

[0023] In one embodiment, in step S60, the ray is expressed by a matrix formula as follows:

[0024]

[0025] The value range of t is t≥1.

[0026] In one embodiment, the step S70 specifically includes the following steps:

[0027] Step S701, using the ThreeJS framework to load the 3D model and JSON information file of the device;

[0028] Step S702, forming a one-to-one correspondence relationship through the name of the device component of the model and the "name" attribute in the JSON file;

[0029] Step S703, using the control bar to control t by dragging, and modifying the position information of each component in real time.

[0030] Compared with the prior art, the advantage of the present invention is that the disassembly animation generation method can generate a dynamic animation of the exploded view of the equipment model based on the three-dimensional model generated by the GIM file. In this way, the power grid information model can be dynamically displayed. At the same time, by clicking on each component of each device, the basic information of the mounted device can be viewed. In this way, when viewing the model, the user can understand the component composition of the equipment and the spatial relationship during assembly. This avoids the problem of the prior art that only the overall fixed state of a device facility can be presented. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Hereinafter, the present invention will be described in more detail based on embodiments and with reference to the accompanying drawings.

[0032] Figure 1 It is a schematic diagram of the organizational structure of the three-dimensional design model file of the power transmission and transformation project in an embodiment of the present invention;

[0033] Figure 2 is a standard format file reference relationship in an embodiment of the present invention;

[0034] Figure 3 is a physical model file reference relationship diagram in an embodiment of the present invention;

[0035] Figure 4 is a schematic diagram of a data structure of a parsing structure in an embodiment of the present invention;

[0036] Figure 5 It is a model diagram of a 500KV transformer in an embodiment of the present invention (not disassembled);

[0037] Figure 6 It is a model diagram of a 500KV transformer in an embodiment of the present invention (disassembled);

[0038] Figure 7is a schematic diagram of the properties of electrical components in a 500KV transformer in an embodiment of the present invention;

[0039] Figure 8 is a transformer-component attribute JSON file in an embodiment of the present invention;

[0040] Fig. 9 It is a hierarchical diagram of the mod-level model structure in an embodiment of the present invention;

[0041] Fig.10 It is a hierarchical diagram of the phm-level model structure in an embodiment of the present invention;

[0042] Fig.11 It is a dev-level model structure hierarchy diagram in an embodiment of the present invention;

[0043] Fig.12 It is a diagram of the combined structure information of sub-devices in an embodiment of the present invention;

[0044] Fig.13 is an exploded disassembly diagram of the device in the embodiment of the present invention;

[0045] Fig.14 It is a diagram of a sub-device information viewing interface in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described below in conjunction with the accompanying drawings.

[0047] The present invention provides a disassembly animation generation method based on a three-dimensional model generated by a GIM file, comprising the following steps:

[0048] Step S10, parsing each dev file in the GIM file;

[0049] Step S20, generating and creating 3D models of various basic graphics elements through the mod file of the GIM file;

[0050] Step S30, forming a structure in which multiple "mod parents" point to one "phm parent" according to the component structure extracted from the phm of the GIM file;

[0051] Step S40, according to the structure extracted from the dev file, a structure in which multiple "phm parents" point to one "dev parent" is formed;

[0052] Step S50, counting the position information of each basic graphic element, and calculating the position of "phm parent" by a position calculation formula;

[0053] Step S60, for each "phm parent", the known coordinate information is (xi, yi, zi), and there is a ray from the origin to the "phm parent";

[0054] Step S70, generating a dynamic animation of an exploded view of the device model;

[0055] Step S80, clicking on each component of each device to view basic information of the mounted device.

[0056] According to the above steps, a dynamic animation of an exploded view of the device model can be generated based on the three-dimensional model generated by the GIM file. In this way, the power grid information model can be dynamically displayed. At the same time, by clicking on each component of each device, the basic information of the mounted device can be viewed. In this way, when viewing the model, the user can understand the component composition of the device and the spatial relationship during assembly. This avoids the problem that only the overall fixed state of a device facility can be presented in the prior art. Furthermore, in the teaching scenario, users can better understand the trajectory, state and position of the components of each device in space, so as to achieve better teaching effects.

[0057] Specifically, in one implementation, step S10 specifically includes the following steps:

[0058] Step S101, extracting attribute parameters from the fam files corresponding to the "physical model", "combined model" and "geometric model" files of dev itself and its children;

[0059] Step S102, the information of all files is aggregated into a JSON file;

[0060] The JSON file contains detailed information about each subcomponent of the device, including the level, name, URL, and information list of each subcomponent.

[0061] Specifically, in one implementation, in step S20, for a mod file, an empty object named after the mod file name is created, and all primitive 3D models point to the empty object, with the empty object as the parent, which is called the "mod parent".

[0062] Specifically, in one implementation, in step S30, the "phm parent" is named after the child device name extracted from fam.

[0063] Specifically, in one implementation, in step S40, the "dev parent" is named after the device facility name extracted from fam.

[0064] Specifically, in one implementation, the position calculation formula is:

[0065]

[0066] Among them, Position phm Represents the spatial coordinates of each phm level model. positioni Represents the spatial coordinates of each basic primitive, and n represents the number of basic primitives that make up the phm-level model.

[0067] Specifically, Figure 1 As shown, in one implementation, in step S60, the ray is expressed by a matrix formula as follows:

[0068]

[0069] The value range of t is t≥1.

[0070] Specifically, Figure 1 As shown, in one implementation, step S70 specifically includes the following steps:

[0071] Step S701, using the ThreeJS framework to load the 3D model and JSON information file of the device;

[0072] Step S702, forming a one-to-one correspondence relationship through the name of the device component of the model and the "name" attribute in the JSON file;

[0073] Step S703, using the control bar to control t by dragging, and modifying the position information of each component in real time.

[0074] Combine the following Figures 1 to 14 , describe a complete implementation of this application:

[0075] The present invention develops a disassembly animation generation method based on a three-dimensional model generated by a GIM file. It is mainly divided into the following two parts:

[0076] (1) According to the description of "Substation (Converter Station) Engineering 3D Design Model File Format" in "Power Transmission and Transformation Engineering 3D Design Model Interaction Specification" (see Figure 1 ), in the GIM file of the substation (converter station) class, *.dev (abbreviated as dev) is a file used to describe the "physical model" of electrical equipment. One *.dev represents a single device facility, such as a 500kV transformer; *.phm (abbreviated as phm) is a "combination model" file, which is used to describe the assembly relationship of equipment. One *.phm represents the assembly method of a part of a single device facility; *.mod (abbreviated as mod) and *.stl (abbreviated as stl) are "geometric model" files, which are used to create basic geometric units, which are composed of multiple basic graphics elements or parameterized definitions (see Figure 2 , standard format file reference relationship, see Figure 3 , physical model file reference relationship).

[0077] When parsing the spatial relationship of electrical components inside the equipment and the electrical information of electrical components, such as name, model, ObjectTypeGuid, basic primitive composition, family name, etc., because the information of the "engineering model" file of the CBM layer is used to describe the placement of the equipment and facility model, rather than the assembly method and spatial relationship of the components of the equipment and facilities, the purpose of streamlining the amount of information and speeding up file parsing is achieved by removing the file information of the CBM layer. Finally, the parsed relationship information, spatial information and combination information are stored in the following Figure 4 The information stored in the data structure will be used for subsequent model disassembly.

[0078] (2) Currently, there is no disassembly animation generation method for the 3D models generated by GIM files, which results in that these 3D models can only be roughly viewed and cannot play a further training role in production and maintenance. Based on the analysis results in (1), the present invention automatically adds equipment disassembly explosion diagrams to the electrical components of the 3D models of various equipment and facilities.

[0079] like Figure 5 As shown in the figure, an undisassembled 500kV transformer can be processed by the algorithm, and each disassembled component undergoes a uniform displacement animation effect to become as follows Figure 6 The disassembled 500 kV transformer. Based on the analytical results in (1), the algorithm adds electrical information to each component, such as Figure 7 As shown, the basic parameters of each disassembled electrical component can be viewed separately.

[0080] The disassembly animation generation method specifically comprises the following steps:

[0081] For the GIM file, parse each *.dev file (that is, the *.dev file of each device facility, referred to as dev file), extract attribute parameters from the *.dev itself and the corresponding *.fam files of each "physical model", "combined model" and "geometric model" file of the child level (the name of the *.fam file is the same as the name of the above three models, only the suffix is ​​different, so it can be found directly), and summarize the information of all files to form the following Figure 8 A JSON file containing detailed information about each subcomponent of the device, such as the component's hierarchy, name, URL, and information list.

[0082] Generate and create each basic primitive 3D model through the *.mod file (mod file for short) of the GIM file. For a *.mod file, create an empty object named with the *.mod file name. All primitive 3D models point to this empty object and take it as the parent, which is called "mod parent". Fig. 9As shown. The advantage of this is that when generating a dynamic animation of model disassembly, moving the parent will move the entire model, and if the child model is moved, only the child model will move. This design can more flexibly display the composition structure of equipment and facilities.

[0083] Similar to the steps and logic in 2, according to the component structure extracted from *.phm (phm for short), a structure in which multiple "mod parents" point to a "phm parent" is formed. Here, the "phm parent" is named after the sub-device name extracted from *.fam, such as "high-voltage bushing 001", "high-voltage bushing 002", "boost", "oil pillow", etc. The overall movement and partial movement effects of the parent and child models in 2 can also be achieved (see Fig.10 ).

[0084] Then, according to the structure extracted from the *.dev file, multiple "phm parents" point to a "dev parent" structure. Here, the "dev parent" is named after the equipment and facility name extracted from the *.fam file, such as "transformer", "low-voltage shunt reactor", "voltage transformer", etc. The file with this "dev parent" as the root node is the composition structure of a device model (see Fig.11 ).

[0085] So far, it is just a static model, and there is no disassembly animation. By traversing, the position information of each basic primitive is counted separately. i , the position of "phm parent" is calculated by the following formula:

[0086]

[0087] Among them, Position phm Represents the spatial coordinates of each phm level model, position i Represents the spatial coordinates of each basic primitive, and n represents the number of basic primitives that make up this phm model.

[0088] Add the "position" attribute to the JSON file generated previously, such as Fig.12 As shown, add the location information of each phm to the JSON file.

[0089] For each "phm parent", the known coordinate information is (xi,yi,zi), and there is a ray from the origin to the "phm parent", which is expressed by the matrix formula as follows:

[0090]

[0091] Because the model disassembly animation is in the form of an exploded view, all components expand outward, so the value range of t is t≥1.

[0092] Use the ThreeJS framework (an open source 3D engine technology based on JavaScript, a technology in the computer field) to load the 3D model of the device and the JSON information file. Through the names of the device components of the model and the "name" attributes in the JSON file, a one-to-one correspondence is formed. Then use a control bar to control the t parameter in step 6 by dragging, modify the position information of each component in real time, and realize the generation of the exploded view of the device model.

[0093] At the same time, by clicking on each component, you can view the basic information of the mounted device, and further connect to the device's operating data in real time to achieve functions such as training and equipment operating status monitoring (see Fig.14 ). Fig.13 The exploded disassembly diagram of the device in this embodiment is displayed.

[0094] Although the present invention has been described with reference to preferred embodiments, various modifications may be made thereto and parts thereof may be replaced by equivalents without departing from the scope of the present invention. In particular, the various technical features mentioned in the various embodiments may be combined in any manner as long as there are no structural conflicts. The present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A method for generating a disassembly animation based on a three-dimensional model generated by a GIM file, characterized in that: The following steps are involved: Step S10, parsing each dev file in the GIM file; Step S20, generating and creating 3D models of various basic graphics elements through the mod file of the GIM file; Step S30, according to the component structure extracted from the phm of the GIM file, a structure is formed in which multiple "mod parents" point to one "phm parent"; Step S40, according to the structure extracted from the dev file, a structure in which multiple "phm parents" point to one "dev parent" is formed; Step S50, counting the position information of each basic primitive, and calculating the position of "phm parent" by a position calculation formula; Step S60, for each of the "phm parent", the known coordinate information is (x i ,y i ,z i ), there is a ray from the origin to "phm parent"; Step S70, generating an exploded view of the device model; Step S80, clicking on each component of each device to view basic information of the mounted device.

2. The method for generating a disassembly animation of a three-dimensional model according to claim 1, characterized in that: The step S10 specifically includes the following steps: Step S101, extracting attribute parameters from the fam files corresponding to the "physical model", "combined model" and "geometric model" files of dev itself and its children; Step S102, the information of all files is aggregated into a JSON file; The JSON file contains detailed information about each subcomponent of the device, including the level, name, URL and information list of each subcomponent.

3. The method for generating a disassembly animation of a three-dimensional model according to claim 1, characterized in that: In the step S20, for a mod file, an empty object named after the mod file name is created, and all primitive 3D models point to the empty object, with the empty object as the parent, which is called the "mod parent".

4. The method for generating a disassembly animation of a three-dimensional model according to claim 1, characterized in that: In the step S30, the "phm parent" is named after the child device name extracted from the fam.

5. The method for generating a disassembly animation of a three-dimensional model according to claim 1, characterized in that: In the step S40, the "dev parent" is named after the equipment facility name extracted from the fam.

6. The method for generating a disassembly animation of a three-dimensional model according to claim 1, characterized in that: The position calculation formula is: Among them, Position phm Represents the spatial coordinates of each phm level model, position i represents the spatial coordinates of each basic primitive, and n represents the number of basic primitives that constitute the phm-level model.

7. The method for generating a disassembly animation of a three-dimensional model according to claim 2, characterized in that: In step S60, the ray is expressed by a matrix formula as follows: The value range of t is t≥1.

8. The method for generating a disassembly animation of a three-dimensional model according to claim 7, characterized in that: The step S70 specifically includes the following steps: Step S701, using the ThreeJS framework to load the 3D model and JSON information file of the device; Step S702, forming a one-to-one correspondence relationship through the name of the device component of the model and the "name" attribute in the JSON file; Step S703, using the control bar to control t by dragging, and modifying the position information of each component in real time.