Visualization method and device of power transmission and transformation project GIM model, equipment and medium

Through dynamic tailoring and simplifying processing of GIM models, combining instantiated rendering and multi-level caching, the problem of low rendering efficiency of GIM models for complex power transmission and transformation projects is solved, and the rendering performance and user experience are improved.

CN119273842AInactive Publication Date: 2025-01-07BEIJING NORTH STAR DIGITAL REMOTE SENSING TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411350909.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-26
Publication Date
2025-01-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the existing three-dimensional scene rendering technology deals with complex GIM models of power transmission and transformation engineering, it will cause a large amount of computing resources to be wasted on invisible or obscured model blocks, reducing rendering efficiency and frame rate, and affecting user experience.

Method used

By obtaining the user's current spatial perspective and screen size, dynamically tailor the GIM model based on preset cropping rules, generate the target GIM model, and determine the simplified model to be rendered based on the screen size and model simplification rules, using instantiated rendering technology and multiple Level caching mechanism, optimize the rendering process.

Benefits of technology

It significantly reduces the amount of data and system resource consumption of rendering, improves rendering efficiency and user experience, ensures the best visual effect at different resolutions and visual ranges, and improves the real-time rendering performance of the overall three-dimensional scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273842A_ABST
    Figure CN119273842A_ABST
Patent Text Reader

Abstract

The invention relates to a visualization method, device and equipment of a power transmission and transformation project GIM model and a medium, and belongs to the technical field of power transmission and transformation projects, and the method comprises the steps that the GIM model of the power transmission and transformation project and the current space view angle and the screen size captured through input equipment of a user are obtained, the GIM model comprises a plurality of model blocks, and the model blocks are used for generating a visual angle; each model block represents different entities in the GIM model; dynamically cutting the GIM model based on the current space view angle and a preset cutting rule to obtain a target GIM model; based on the current space view angle, the screen size and a preset model simplification rule, determining a to-be-rendered simplified model corresponding to the target GIM model; and rendering each model block of the simplified model to be rendered based on a preset rendering rule so as to display the GIM model of the transmission and transformation station project. The method has the effect of improving the rendering efficiency of the GIM model of the power transmission and transformation project.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power transmission and transformation engineering, and in particular to a visualization method, device, equipment and medium for a GIM model of a power transmission and transformation engineering. Background Art

[0002] In the process of information construction in the power industry, the GIM (Grid Information Model) of power transmission and transformation projects, as a key data carrier, carries detailed three-dimensional digital information of the entire life cycle of the power system from design, construction to operation and maintenance. With the rapid development of smart grids and the continuous expansion of project scale, the complexity and data volume of the GIM model of power transmission and transformation projects have increased dramatically, which has put forward higher requirements for the visualization technology of three-dimensional scenes.

[0003] Existing 3D scene rendering technology usually relies on the traditional rendering process, that is, traversing all model blocks in the scene and rendering them regardless of whether they are within the user's line of sight or whether they are blocked by other objects. When rendering complex 3D scenes, this method will cause a lot of computing resources to be wasted on invisible or blocked model blocks, which will significantly reduce rendering efficiency and frame rate, affecting user experience. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a method, device, equipment and medium for visualizing the GIM model of a power transmission and transformation project, aiming to solve at least one of the above technical problems.

[0005] The technical solution of the present invention to solve the above technical problems is as follows:

[0006] In the first aspect, the present application provides a method for visualizing a GIM model of a power transmission and transformation project, using the following technical solutions:

[0007] A visualization method for a GIM model of a power transmission and transformation project, comprising:

[0008] Acquire a GIM model of the power transmission and transformation project, and a current spatial perspective and screen size captured by a user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents a different entity in the GIM model, and the current spatial perspective represents a viewpoint position and a line of sight direction of the user in the current three-dimensional scene;

[0009] Dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model;

[0010] Determine a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule;

[0011] The various model blocks of the simplified model to be rendered are rendered based on preset rendering rules to display the GIM model of the transmission and transformation station project.

[0012] The beneficial effects of the present invention are: by dynamically clipping the GIM model based on the current spatial perspective and preset clipping rules, only the model part visible from the user's current perspective is retained, thereby reducing the amount of data required for rendering and improving rendering efficiency. Especially when processing large-scale and complex GIM models of power transmission and transformation projects, it can significantly reduce system resource consumption and improve user experience.

[0013] By combining the current spatial perspective, screen size and preset model simplification rules, the clipped target GIM model is further simplified to generate a simplified model to be rendered that is suitable for the current display conditions, ensuring the real-time rendering and maintaining the best visual effect of the model at different resolutions and viewing distances. By instantiating the rendering of each model block of the simplified model, efficient display of similar models is achieved, greatly improving the real-time rendering performance of the overall three-dimensional scene.

[0014] Based on the above technical solution, the present invention can also be improved as follows.

[0015] Further, for each of the model blocks, the model block is any one of a control model block, a data model block, a material block, a texture block and a line segment block, and each of the model blocks is provided with a unique identifier. The control model block is used to define the management, scheduling and display logic of the GIM model, the data model block is used to define the shape and structure of the GIM model, the material block is used to define the material characteristics of the surface of the GIM model, the texture block is used to define the texture characteristics of the surface of the GIM model, and the line segment block is used to define the contour, structure line and auxiliary line of the GIM model.

[0016] The beneficial effect of adopting the above further scheme is: the model block is divided into a control model block, a data model block, a material block, a texture block and a line segment block, and a unique identifier is set for each model block, so that the refined management and efficient scheduling of the model can be realized, and the reuse rate and rendering efficiency of the model are improved. Among them, the control model block defines the management, scheduling and display logic of the GIM model, the data model block defines the shape and structure of the GIM model, the material block defines the surface material characteristics of the GIM model, the texture block defines the surface texture characteristics of the GIM model, and the line segment block defines the contour, structural line and auxiliary line of the GIM model. Through this division method, flexible organization and efficient rendering of the model are achieved.

[0017] Furthermore, before obtaining the GIM model of the power transmission and transformation project, the method further includes:

[0018] Responding to a user's request to load a GIM model for the power transmission and transformation project;

[0019] Determine whether there is a GIM model corresponding to the GIM model loading request in the memory cache;

[0020] If the GIM model exists in the memory cache, loading the GIM model from the memory cache;

[0021] If the GIM model does not exist in the memory cache, the GIM model of the power transmission and transformation project is read from a preset data source;

[0022] For each model block in the GIM model, determining whether there is a target model block identical to the model block in the memory cache;

[0023] For each model block in the GIM model data, if there is a target model block identical to the model block, the model block is associated with the target model block in the memory cache.

[0024] The beneficial effect of adopting the above further scheme is: the visualization method adopts a double-layer reuse strategy, that is, the same GIM model visualization end will only be loaded once, and the same model block resources within the same GIM model will only be loaded once. When the user requests to load the GIM model, the visualization method can avoid repeated loading of the same GIM model by checking the memory cache, thereby reducing repeated loading of the model and improving loading efficiency; for each model block in the model, by judging whether the same target model block exists in the memory cache, and associating the same target model block with the target model block in the memory cache, the reuse of the model block is realized, and the occupancy of memory resources is effectively reduced.

[0025] Furthermore, dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model includes:

[0026] Determining a viewing cone of the current three-dimensional scene based on the current spatial viewing angle;

[0027] For each of the model blocks of the GIM model, determine whether a bounding box of the model block is not located outside the viewing cone, and if the bounding box of the model block is not located outside the viewing cone, use the model block as the first model block;

[0028] For each of the first model blocks, determining whether the surface of the first model block is facing away from the current spatial perspective relative to the current spatial perspective, and if the surface of the first model block is facing away from the current spatial perspective, using the first model block as the second model block;

[0029] Based on the current spatial perspective, performing occlusion detection on each of the second model blocks to obtain an occlusion coefficient of each of the second model blocks relative to the current spatial perspective;

[0030] Based on the occlusion coefficients of the respective second model blocks, a third model block having an occlusion coefficient less than a preset occlusion threshold is determined, and based on the respective third model blocks, a target GIM model is generated.

[0031] The beneficial effect of adopting the above further scheme is: by dynamically clipping the GIM model, the model blocks outside the viewing cone, facing away from the current spatial perspective, and with too high occlusion coefficients are effectively eliminated, thereby generating a target GIM model, reducing the amount of rendering data, improving rendering efficiency and reducing the difficulty of drawing.

[0032] Further, the determining, based on the current spatial viewing angle, the screen size and a preset model simplification rule, a simplified model to be rendered corresponding to the target GIM model includes:

[0033] Determining a visualization coefficient of the three-dimensional scene based on a current spatial viewing angle and the screen size;

[0034] Based on a preset quadratic error measure edge collapse algorithm, the target GIM model is simplified to obtain a plurality of simplified models with different simplification levels;

[0035] Determine the LOD level of each simplified model based on the set LOD level and the simplification level of each simplified model;

[0036] Based on the visualization coefficient, a simplified model corresponding to the LOD level that meets the rendering requirement of the target GIM model is determined as the simplified model to be rendered.

[0037] The beneficial effect of adopting the above further scheme is: the visualization coefficient of the three-dimensional scene is determined based on the current spatial perspective and screen size, and the target GIM model is simplified using the edge collapse algorithm of the quadratic error measure to obtain simplified models of multiple different simplification levels. The LOD level of each simplified model is determined by matching the set LOD level with the simplification level of the simplified model, and the LOD level that meets the rendering requirements of the target GIM model is selected according to the visualization coefficient. Finally, the simplified model to be rendered is selected from the simplified model, which realizes the dynamic adjustment of the model complexity according to different perspective requirements, effectively reduces the rendering processing load, and improves the rendering efficiency.

[0038] Further, the rendering of each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project includes:

[0039] Traversing each model block in the simplified model to be rendered, and determining at least one group of fourth model blocks having the same geometric shape and different spatial positions;

[0040] For each group of fourth model blocks, selecting one of the fourth model blocks as a basic model to be instantiated;

[0041] For each group of fourth model blocks, based on the spatial position and posture information of each of the fourth model blocks in the simplified model to be rendered, determining the reference matrix information of the basic model in the group of fourth model blocks;

[0042] Based on the instantiation rendering technology, all the reference matrix information and each of the basic models, each model block in the simplified model to be rendered is instantiated and rendered to display the GIM model of the transmission and transformation station project.

[0043] The beneficial effect of adopting the above further solution is that the instantiation technology can achieve the effect of using one model data to draw multiple model instances. This technology increases the number of similar objects without increasing the actual number of polygons, thereby greatly improving the rendering efficiency of the power grid model, saving memory resources and disk storage space, and improving the processing performance of the real-time system.

[0044] Furthermore, the method further comprises:

[0045] When the user roams in the three-dimensional scene, the request frequency of each model block in the GIM model is obtained in real time, wherein the roaming represents the state mode of the user viewing the GIM model at different angles in the three-dimensional environment;

[0046] Determining a storage level of each of the model blocks based on a request frequency of each of the model blocks;

[0047] The model blocks whose storage level is greater than a preset level threshold are stored in a fast access memory, where the fast access memory represents a memory whose access speed is greater than a set value.

[0048] The beneficial effect of adopting the above further solution is: by adopting a multi-level cache mechanism, the model block data with higher request frequency is stored in different levels of memory according to the interaction frequency. Users can see the rendering effects of these model blocks almost instantly when roaming the three-dimensional scene without waiting for data loading.

[0049] In the second aspect, the present application provides a visualization device for a GIM model of a power transmission and transformation project, which adopts the following technical solution:

[0050] A visualization device for a GIM model of a power transmission and transformation project, comprising:

[0051] An acquisition module, used to acquire a GIM model of a power transmission and transformation project, and a current spatial perspective and screen size captured by a user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents a different entity in the GIM model, and the current spatial perspective represents a viewpoint position and a line of sight direction of the user in a current three-dimensional scene;

[0052] A dynamic clipping module, used for dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model;

[0053] A simplification processing module, used to determine a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule;

[0054] The rendering module is used to render each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project.

[0055] In a third aspect, the present application provides an electronic device, which adopts the following technical solution:

[0056] An electronic device comprises a memory and a processor, wherein the memory stores a computer program that can be loaded by the processor and executes the method for visualizing a GIM model of a power transmission and transformation project as described in any one of the first aspects.

[0057] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution:

[0058] A computer-readable storage medium stores a computer program capable of being loaded by a processor and executing the visualization of the GIM model of a power transmission and transformation project as described in any one of the first aspects.

[0059] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A schematic diagram of a flow chart of a method for visualizing a GIM model of a power transmission and transformation project provided by an embodiment of the present invention;

[0061] Figure 2 A schematic diagram of multiple model blocks provided for one embodiment of the present invention;

[0062] Figure 3 A schematic diagram of the structure of a visualization device for a GIM model of a power transmission and transformation project provided by an embodiment of the present invention;

[0063] Figure 4A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0064] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0066] An embodiment of the present application provides a method for visualizing a GIM model of a power transmission and transformation project. The method can be executed by an electronic device, which can be a server or a mobile terminal device. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The mobile terminal device can be a laptop computer, a desktop computer, etc., but is not limited to this.

[0067] like Figure 1 As shown, a visualization method of a GIM model of a power transmission and transformation project includes steps S1 to S4:

[0068] Step S1, obtaining a GIM model of a power transmission and transformation project, a current spatial perspective and a screen size captured by a user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents an entity in a different part of the GIM model, and the current spatial perspective represents a viewpoint position and a line of sight direction of the user in a current three-dimensional scene;

[0069] In the embodiments of the present application, Figure 2 As shown, for each model block, the model block is any one of a control model block, a data model block, a material block, a texture block and a line segment block, and each model block is provided with a unique identifier. The control model block is used to define the management, scheduling and display logic of the GIM model, the data model block is used to define the shape and structure of the GIM model, the material block is used to define the material characteristics of the surface of the GIM model, the texture block is used to define the texture characteristics of the surface of the GIM model, and the line segment block is used to define the contour, structure line and auxiliary line of the GIM model.

[0070] The structure of the model block includes index files and data files. The index file is the architecture of the model. All organizational relationships of the model block exist in the index file. After reading the index file, the skeleton of the entire model can be built to control the scheduling of the model and the loading of data. The data file stores the entity data of the model. When scheduling the model, the model block data can be accurately read according to the data position and length recorded in the index file. The data file is in the form of a binary stream, and its storage relationship is recorded in the index table.

[0071] In order to save memory resources and improve model loading efficiency, the GIM model adopts a double-layer reuse strategy, that is, the same GIM model file will only be loaded once on the visualization end, and the same model block resources within the same GIM model will only be loaded once, and multiple reuse of resources is achieved through spatial position association (matrix).

[0072] Specifically, before obtaining the GIM model of the power transmission and transformation project, the method further includes:

[0073] Step S11, in response to a triggering action of a user for a GIM model loading request for the power transmission and transformation project, obtaining a GIM model loading request for the power transmission and transformation project;

[0074] Step S12, determining whether there is a GIM model corresponding to the GIM model loading request in the memory cache; in the embodiment of the present application, checking whether there is already a GIM model corresponding to the request in the memory cache (such as the cache area in the RAM), which is achieved by comparing the identifier of the request (such as the model ID, project name, etc.) with the identifier of the model stored in the cache.

[0075] Step S13: if the GIM model exists in the memory cache, load the GIM model from the memory cache;

[0076] Step S14: if the GIM model does not exist in the memory cache, reading the GIM model of the power transmission and transformation project from a preset data source;

[0077] Step S15, for each model block in the GIM model, determining whether there is a target model block identical to the model block in the memory cache;

[0078] Step S16: for each model block in the GIM model data, if there is a target model block identical to the model block, the model block is associated with the target model block in the memory cache.

[0079] In the embodiments of the present application, the reuse of each model block in the GIM model is specifically described below.

[0080] For example, a GIM model is composed of a series of equipment such as main transformers, distribution transformers, circuit breakers, reactors, etc., and there may be multiple identical equipment in the GIM model. During 3D visualization, the model blocks of the same equipment are uniformly constructed, and then the reference relationship between the model blocks corresponding to the equipment in the GIM model is established according to the location and attributes of the equipment.

[0081] When constructing a GIM model, for a GIM model consisting of main transformers, distribution transformers, circuit breakers, reactors, etc., a 3D model template is uniformly constructed for each type of equipment in the GIM model. The template contains all the basic geometric features and appearance details of the equipment, and can adapt to changes in attributes such as different sizes and colors through parametric design.

[0082] In the 3D visualization process, when multiple identical devices need to be displayed (for example, multiple transformers of the same model), first check whether the model block of the device already exists in the memory cache. If it does, directly reference the model block, and establish a corresponding reference relationship in the GIM model based on the specific location and attributes of each device (such as coordinates, rotation angle, color, etc.). This enables efficient reuse of model blocks, reduces the amount of calculation, and improves rendering efficiency.

[0083] Step S2, dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model;

[0084] In the embodiment of the present application, step S2 includes the following specific steps:

[0085] Step S21, determining a viewing cone of the current three-dimensional scene based on the current spatial viewing angle;

[0086] Step S22, for each model block of the GIM model, determining whether the bounding box of the model block is not located outside the viewing cone, and if the bounding box of the model block is not located outside the viewing cone, taking the model block as the first model block;

[0087] Step S23, for each of the first model blocks, determining whether the surface of the first model block is facing away from the current spatial perspective relative to the current spatial perspective; if the surface of the first model block is facing away from the current spatial perspective, using the first model block as the second model block;

[0088] Step S24, performing occlusion detection on each of the second model blocks based on the current spatial perspective, to obtain an occlusion coefficient of each of the second model blocks relative to the current spatial perspective;

[0089] Step S25, based on the occlusion coefficients of the respective second model blocks, determining the third model blocks whose occlusion coefficients are less than a preset occlusion threshold, and generating the target GIM model based on the respective third model blocks.

[0090] In an embodiment of the present application, in a three-dimensional scene, the viewing cone contained in the terminal screen is the scene range that can be obtained by the user. Eliminating objects outside the visible range of the current scene, that is, objects outside the viewing cone range, will not affect the construction of the scene. At the same time, by reducing the amount of drawing data in the scene, the rendering efficiency is improved and time is saved.

[0091] First, we traverse and determine whether the bounding box of each model block is completely outside the view frustum. If the result is yes, we confirm that it can be eliminated and does not need to be rendered. Otherwise, if the result is yes, we add it to the resource clearing list and use it as the first model block to enter the next step of scheduling. By properly applying the view frustum culling, we can improve rendering efficiency and reduce drawing difficulty.

[0092] Afterwards, the back-face culling process is performed on all the first model blocks to obtain the second model block of the GIM model. A large number of devices blocked behind are invisible to the user, which reduces the amount of rendering data.

[0093] Finally, by performing occlusion detection on all second model blocks, the second model blocks with occlusion coefficients not less than the preset occlusion threshold are eliminated to generate the target GIM model. The purpose of occlusion detection is to further eliminate those model blocks that face the observer but may be occluded by other objects, thereby improving rendering efficiency, reducing rendering time, and enhancing user experience.

[0094] Step S3, determining a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule;

[0095] In an embodiment of the present application, the basic principle of model simplification can be described as reducing the number of triangle faces by deleting or modifying some grid face information (including vertices, edges, and triangle faces, etc.) in the model that has little impact on the visual effect, so as to reduce the overhead of interactive display or real-time transmission of the model.

[0096] The simplification algorithm in this example is derived from the open source model tool Meshlab, which is an edge collapse algorithm based on quadratic error measure.

[0097] In the embodiment of the present application, step S3 mainly includes the following sub-steps:

[0098] Step S31, determining a visualization coefficient of the three-dimensional scene based on the current spatial viewing angle and the screen size;

[0099] In the embodiment of the present application, the visualization coefficient represents the degree of visualization of each model block in the three-dimensional scene under the current spatial viewing angle and screen size.

[0100] Step S32, based on a preset quadratic error measure edge collapse algorithm, simplifying the target GIM model to obtain a plurality of simplified models of different simplification levels;

[0101] In the embodiment of the present application, a preset edge collapse algorithm based on quadratic error measure is used to gradually merge adjacent vertices of the target GIM model to reduce the number of polygons of the target GIM model. This process is repeated to generate simplified models of multiple different simplification levels. The simplified model of the current simplification level has fewer vertices and faces than the model of the previous simplification level.

[0102] Step S33, determining the LOD level of each simplified model based on the set LOD level and the simplification level of each simplified model;

[0103] In the embodiment of the present application, LOD is a multi-level detail model technology, that is, multiple approximate models are established for each object, and different models have different degrees of detail description of the object. The finer the detail description, the more complex the model.

[0104] According to the number of polygons, texture resolution and other attributes of the simplified model, a series of LOD level standards are preset, and then each simplified model is compared with the preset LOD level standard to determine its LOD level.

[0105] Step S34: Based on the visualization coefficient, determine the simplified model corresponding to the LOD level that meets the rendering requirement of the target GIM model as the simplified model to be rendered.

[0106] In an embodiment of the present application, based on the evaluation results and the LOD level of each simplified model, the most suitable model is selected from multiple simplified models for rendering, thereby dynamically adjusting the model complexity according to different viewing angle requirements, effectively reducing the rendering processing load, and improving rendering efficiency.

[0107] Step S4, rendering each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project.

[0108] In the embodiment of the present application, step S4 includes the following sub-steps:

[0109] Step S41, traversing each model block in the simplified model to be rendered, and determining at least one group of fourth model blocks having the same geometric shape but different spatial positions;

[0110] In an embodiment of the present application, model blocks with the same geometric shape but different spatial positions are grouped into the same group to form multiple groups of fourth model blocks. The multiple fourth model blocks in each group represent the same type of equipment in the transmission and transformation station project, but with different attributes such as position, direction or color.

[0111] Step S42, for each group of fourth model blocks, selecting one of the fourth model blocks as a basic model to be instantiated;

[0112] In the embodiment of the present application, the basic model is selected randomly.

[0113] Step S43, for each group of fourth model blocks, based on the spatial position and posture information of each of the fourth model blocks in the simplified model to be rendered, determining the reference matrix information of the basic model in the group of fourth model blocks;

[0114] In the embodiment of the present application, for each fourth model block in each group, excluding the base model, the reference matrix information of the base model is calculated and determined according to its spatial position in the simplified model to be rendered, such as coordinates, and posture information, such as rotation angle, scaling, etc. The reference matrix is ​​used to transform the base model to the target position and direction.

[0115] Step S44, based on the instantiation rendering technology, all the reference matrix information and each of the basic models, instantiation rendering is performed on each model block in the simplified model to be rendered to display the GIM model of the transmission and transformation station project.

[0116] In an embodiment of the present application, an instanced rendering technique is used to render each model block in the simplified model to be rendered, in combination with all reference matrix information and each base model. The instanced rendering technique allows the use of the geometric data and material information of a single base model to render multiple instances with different positions and directions, thereby significantly improving the rendering efficiency. During the rendering process, the base model is transformed to the corresponding position and direction according to the reference matrix of each model block, and the corresponding material and lighting effects are applied to generate the final rendering result.

[0117] The following is an example of step S4. Assume that the substation project contains multiple identical transformers, which appear in different positions and directions in the GIM model. The system traverses all model blocks in the GIM model, finds multiple transformer model blocks with the same geometry, and groups them into the same group. Then, a transformer model block is selected from the group as the base model. After that, for each other transformer model block in the group, the corresponding reference matrix is ​​calculated based on its spatial position and posture information. Using instantiation rendering technology, combined with all reference matrices and base models, each transformer model block is rendered to display the GIM model of the substation project.

[0118] As an optional implementation of the embodiment of the present application, the method further includes:

[0119] First, the entire power transmission and transformation area is divided into several square cells of uniform size. The size of these cells is determined based on the median size of the main equipment in the power transmission and transformation area to ensure that the cells can effectively divide the space but not be too fragmented to cause complex management.

[0120] After that, all devices in the GIM model are traversed to check which cells the outer box of its model intersects with; if the outer box of a device intersects with a cell, the device is added to the device list of the cell.

[0121] Among them, for those devices that intersect with multiple cells, the so-called "cross-cell devices", it is necessary to determine their subordinate relationship based on the proportion of the projected area of ​​the device bounding box in each intersecting cell. Specifically, calculate the projected area of ​​the device bounding box in each intersecting cell, and divide the device into the cell grid with the largest projected area.

[0122] When rendering a scene, the model blocks of the devices in the cells within the current viewing angle are rendered according to the current viewing angle. As the user's viewing angle changes, the device list of the cells within the current viewing angle is dynamically updated, and the model blocks of the devices are loaded or unloaded accordingly.

[0123] This model scheduling strategy based on spatial segmentation can greatly reduce the loading frequency of models in the scene, reduce memory and CPU usage, and thus improve the scheduling efficiency and rendering performance of the model.

[0124] As an optional implementation of the embodiment of the present application, the method further includes:

[0125] When the user roams in the three-dimensional scene, the request frequency of each model block in the GIM model is obtained in real time, and the roaming represents the GIM model viewed from different angles by the user in the three-dimensional environment;

[0126] Determining a storage level of each of the model blocks based on a request frequency of each of the model blocks;

[0127] The model blocks whose storage level is greater than a preset level threshold are stored in a fast access memory, where the fast access memory represents a memory whose access speed is greater than a set value.

[0128] In the embodiment of the present application, as the user operates the three-dimensional scene to roam, the viewpoint changes continuously, triggering changes in the visual space, so the data in the GIM three-dimensional scene also needs to be updated frequently. Therefore, by designing a memory cache mechanism, the rendering performance is improved.

[0129] When the user roams in the three-dimensional scene, the frequency of the user's access request to each model block in the GIM model is recorded in real time, and the storage level can be divided according to the request frequency, for example, using a bucketing algorithm or allocating levels based on the percentage of request frequency.

[0130] For model blocks whose storage rank is greater than the preset rank threshold, move them from conventional memory (such as main memory) to fast access memory (such as GPU memory, cache, or dedicated high-speed memory). For those model blocks whose request frequency decreases, they can be moved out of fast access memory to free up memory resources for model blocks that need them more.

[0131] This method dynamically crops the GIM model based on the current spatial perspective and preset cropping rules, retaining only the model part visible from the user's current perspective, reducing the amount of data required for rendering and improving rendering efficiency. Especially when processing large-scale and complex GIM models of power transmission and transformation projects, it can significantly reduce system resource consumption and improve user experience.

[0132] By combining the current spatial perspective, screen size and preset model simplification rules, the clipped target GIM model is further simplified to generate a simplified model to be rendered that is suitable for the current display conditions, ensuring the real-time rendering and maintaining the best visual effect of the model at different resolutions and viewing distances. By instantiating the rendering of each model block of the simplified model, efficient display of similar models is achieved, greatly improving the real-time rendering performance of the overall three-dimensional scene.

[0133] Figure 3 A schematic diagram of the structure of a visualization device 200 for a GIM model of a power transmission and transformation project provided by an embodiment of the present invention;

[0134] like Figure 3 As shown, a visualization device 200 for a GIM model of a power transmission and transformation project mainly includes:

[0135] The acquisition module 201 is used to acquire the GIM model of the power transmission and transformation project, and the current spatial perspective and screen size captured by the user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents a different entity in the GIM model, and the current spatial perspective represents the user's viewpoint position and line of sight direction in the current three-dimensional scene;

[0136] A dynamic clipping module 202, configured to dynamically clip the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model;

[0137] A simplification processing module 203, configured to determine a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule;

[0138] The rendering module 204 is used to render each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project.

[0139] In one example, the module in any of the above apparatuses may be one or more integrated circuits configured to implement the above methods.

[0140] For another example, when the modules in the device can be implemented in the form of a processing element scheduling program, the processing element can be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call a program. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0141] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0142] Figure 4 This is a structural block diagram of an electronic device 300 according to an embodiment of the present application.

[0143] like Figure 4 As shown, the electronic device 300 includes a processor 301 and a memory 302 , and may further include one or more of an information input / information output (I / O) interface 303 and a communication component 304 .

[0144] The processor 301 is used to control the overall operation of the electronic device 300 to complete all or part of the steps in the visualization method of the GIM model of the power transmission and transformation project; the memory 302 is used to store various types of data to support the operation of the electronic device 300, and these data may include, for example, instructions for any application or method used to operate on the electronic device 300, and data related to the application. The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk.

[0145] The I / O interface 303 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 304 is used to test the wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 304 can include: Wi-Fi components, Bluetooth components, NFC components.

[0146] The communication bus 305 may include a path to transmit information between the above components. The communication bus 305 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 305 may be divided into an address bus, a data bus, a control bus, etc.

[0147] The computer-readable storage medium provided in the embodiment of the present application is introduced below. The computer-readable storage medium described below and the visualization method of the GIM model of the power transmission and transformation project described above can be referenced to each other.

[0148] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned method for visualizing the GIM model of a power transmission and transformation project are implemented.

[0149] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0150] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.

[0151] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A visualization method for a GIM model of a power transmission and transformation project, characterized in that: include: Acquire a GIM model of the power transmission and transformation project, and a current spatial perspective and screen size captured by a user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents a different entity in the GIM model, and the current spatial perspective represents a viewpoint position and a line of sight direction of the user in the current three-dimensional scene; Dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model; Determine a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule; The various model blocks of the simplified model to be rendered are rendered based on preset rendering rules to display the GIM model of the transmission and transformation station project.

2. The visualization method of a GIM model of a power transmission and transformation project according to claim 1 is characterized in that: For each of the model blocks, the model block is any one of a control model block, a data model block, a material block, a texture block and a line segment block, and each of the model blocks is provided with a unique identifier. The control model block is used to define the management, scheduling and display logic of the GIM model, the data model block is used to define the shape and structure of the GIM model, the material block is used to define the material characteristics of the surface of the GIM model, the texture block is used to define the texture characteristics of the surface of the GIM model, and the line segment block is used to define the contour, structural line and auxiliary line of the GIM model.

3. The visualization method of a GIM model of a power transmission and transformation project according to claim 1 is characterized in that: Before obtaining the GIM model of the power transmission and transformation project, the method further includes: Responding to a user's request to load a GIM model for the power transmission and transformation project; Determine whether there is a GIM model corresponding to the GIM model loading request in the memory cache; If the GIM model exists in the memory cache, loading the GIM model from the memory cache; If the GIM model does not exist in the memory cache, the GIM model of the power transmission and transformation project is read from a preset data source; For each model block in the GIM model, determining whether there is a target model block identical to the model block in the memory cache; For each model block in the GIM model data, if there is a target model block identical to the model block, the model block is associated with the target model block in the memory cache.

4. The visualization method of a GIM model of a power transmission and transformation project according to claim 1 is characterized in that: The dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model includes: Determining a viewing cone of the current three-dimensional scene based on the current spatial viewing angle; For each of the model blocks of the GIM model, determine whether a bounding box of the model block is not located outside the viewing cone, and if the bounding box of the model block is not located outside the viewing cone, use the model block as the first model block; For each of the first model blocks, determining whether the surface of the first model block is facing away from the current spatial perspective relative to the current spatial perspective, and if the surface of the first model block is facing away from the current spatial perspective, using the first model block as the second model block; Based on the current spatial perspective, performing occlusion detection on each of the second model blocks to obtain an occlusion coefficient of each of the second model blocks relative to the current spatial perspective; Based on the occlusion coefficients of the respective second model blocks, a third model block having an occlusion coefficient less than a preset occlusion threshold is determined, and based on the respective third model blocks, a target GIM model is generated.

5. The method for visualizing a GIM model of a power transmission and transformation project according to claim 4, characterized in that: The determining, based on the current spatial viewing angle, the screen size and a preset model simplification rule, a simplified model to be rendered corresponding to the target GIM model includes: Determining a visualization coefficient of the three-dimensional scene based on a current spatial viewing angle and the screen size; Based on a preset quadratic error measure edge collapse algorithm, the target GIM model is simplified to obtain a plurality of simplified models with different simplification levels; Determine the LOD level of each simplified model based on the set LOD level and the simplification level of each simplified model; Based on the visualization coefficient, a simplified model corresponding to the LOD level that meets the rendering requirement of the target GIM model is determined as the simplified model to be rendered.

6. The method for visualizing a GIM model of a power transmission and transformation project according to claim 5, characterized in that: The rendering of each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project includes: Traversing each model block in the simplified model to be rendered, and determining at least one group of fourth model blocks having the same geometric shape and different spatial positions; For each group of fourth model blocks, selecting one of the fourth model blocks as a basic model to be instantiated; For each group of fourth model blocks, based on the spatial position and posture information of each of the fourth model blocks in the simplified model to be rendered, determining the reference matrix information of the basic model in the group of fourth model blocks; Based on the instantiation rendering technology, all the reference matrix information and each of the basic models, each model block in the simplified model to be rendered is instantiated and rendered to display the GIM model of the transmission and transformation station project.

7. The visualization method of a GIM model of a power transmission and transformation project according to claim 1 is characterized in that: The method further comprises: When the user roams in the three-dimensional scene, the request frequency of each model block in the GIM model is obtained in real time, wherein the roaming represents the state mode of the user viewing the GIM model at different angles in the three-dimensional environment; Determining a storage level of each of the model blocks based on a request frequency of each of the model blocks; The model blocks whose storage level is greater than a preset level threshold are stored in a fast access memory, where the fast access memory represents a memory whose access speed is greater than a set value.

8. A visualization device for a GIM model of a power transmission and transformation project, characterized in that: include: An acquisition module, used to acquire a GIM model of a power transmission and transformation project, and a current spatial perspective and screen size captured by a user's input device, wherein the GIM model includes a plurality of model blocks, each of which represents a different entity in the GIM model, and the current spatial perspective represents a viewpoint position and a line of sight direction of the user in a current three-dimensional scene; A dynamic clipping module, used for dynamically clipping the GIM model based on the current spatial perspective and a preset clipping rule to obtain a target GIM model; A simplification processing module, used to determine a simplified model to be rendered corresponding to the target GIM model based on the current spatial viewing angle, the screen size and a preset model simplification rule; The rendering module is used to render each model block of the simplified model to be rendered based on a preset rendering rule to display the GIM model of the transmission and transformation station project.

9. An electronic device, characterized in that: comprising a processor coupled to a memory; The processor is configured to execute a computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, and when the computer program or the instruction is executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • High-performance rendering method and device for urban information model and storage medium

    CN110706341A

  • Data processing method and device for three-dimensional model and electronic equipment

    CN111127637A

  • Three-dimensional rendering method and device, equipment and medium

    CN117237502A

  • 3D model rendering system and method based on digital scene

    CN117333598A

  • Generating a visualization of data points returned in response to a query based on attributes of a display device and display screen to render the visualization

    US20230033541A1