A discrete multiplexing method, device, equipment and medium for power grid components with openings

By obtaining the hole information of the grid components and generating hole packets, determining the minimum bounding box and performing discrete processing, the problem of low efficiency of complex shape Boolean computing is solved, and the efficiency and rendering performance of the hole opening operation of the grid components are improved.

CN117807648BActive Publication Date: 2025-04-25STATE GRID ECONOMIC TECH RES INST CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410029405.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-09
Publication Date
2025-04-25
Estimated Expiration
2044-01-09

AI Technical Summary

Technical Problem

In power grid engineering, complex modeling Boolean operations lead to high computational and memory consumption, reducing discrete and rendering efficiency, especially in hole opening operations.

Method used

By obtaining the hole information of the power grid components, a hole grouping is generated, including the hole matrix; determining the minimum bounding box corresponding to the hole information is determined to generate the initial rendering result; then discrete processing of the initial rendering result is performed according to the hole grouping to generate the final rendering result.

Benefits of technology

It improves the efficiency of opening holes of power grid components, improves the rendering performance of the software, and provides more efficient and stable design support.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117807648B_ABST
    Figure CN117807648B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and medium for discrete multiplexing of power grid components with holes. The method includes: obtaining hole information of power grid components, generating hole groups according to the hole information; determining the minimum bounding box corresponding to each hole information, generating the initial rendering result of the power grid components according to each minimum bounding box; and performing discrete processing on the initial rendering result according to the hole grouping to generate the final rendering result of the power grid components. By obtaining the hole information of the power grid components, the hole information is classified according to the hole type to generate the hole grouping, and the hole grouping includes a hole matrix storing the hole position and the hole size. The initial rendering result of the power grid components is generated by determining the minimum bounding box of each hole, and then a single discrete operation and multiple reuse are performed for different types of holes, thereby reducing the invalid operation time when opening holes in complex equipment, and generating the final rendering result by conventional instantiation rendering technology, thereby improving the graphics rendering efficiency of complex hole entities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design, and in particular to a discrete multiplexing method, device, equipment and medium for power grid components with openings. Background Art

[0002] In power grid engineering, Boolean operations of complex shapes will bring about a large amount of calculation and memory consumption, resulting in reduced efficiency of discretization and rendering. Some common shapes such as polygon subtraction, cylinder subtraction, rotational body subtraction, etc., all require Boolean operations to generate the final complex shape. Boolean operations require multiple calculations, and each calculation consumes a lot of memory and computing resources. In addition, complex shapes are usually composed of a large number of faces and points, requiring a large number of discretization operations, which will further increase calculation and memory consumption. When the complexity of the model increases, the efficiency of discretization and rendering will drop more significantly, and may even fail to operate normally.

[0003] In general power grid projects, it is often necessary to perform hole drilling operations on power grid components, such as drilling holes in terminal boards, circular hole-mounted panels, footboards, etc. Since these power grid components usually have complex shapes and structures, the hole drilling operations involve a large amount of calculation and memory consumption, resulting in reduced discretization and rendering efficiency. Such complex modeling primitives are often the bottleneck of the rendering performance of power grid design software. Summary of the invention

[0004] The present invention provides a method, device, equipment and medium for discrete multiplexing of power grid components with openings, so as to improve the efficiency of opening operations of power grid components, improve the rendering performance of the entire software, and provide more efficient and stable support for the design of power grid projects.

[0005] According to one aspect of the present invention, a method for discrete multiplexing of power grid components with holes is provided, the method comprising:

[0006] Obtaining hole information of power grid components, and generating hole groups according to the hole information, wherein the hole groups include a hole matrix;

[0007] Determine the minimum bounding box corresponding to each hole information, and generate the initial rendering result of the power grid component according to each minimum bounding box;

[0008] The initial rendering results are discretized according to the opening groups to generate the final rendering results of the power grid components.

[0009] Optionally, the hole information of the power grid component is obtained, including: determining each target hole included in the power grid component, and obtaining the hole type and hole size corresponding to each target hole; establishing a coordinate system based on the power grid component, and obtaining the hole position corresponding to each target hole in the coordinate system; and using each hole type, hole size and hole position as hole information.

[0010] Optionally, hole groups are generated based on hole information, including: generating hole matrices corresponding to each target hole based on hole size and hole position; generating hole groups based on the hole matrix and hole type, wherein the hole groups include hole matrices of the same hole type.

[0011] Optionally, determining the minimum bounding box corresponding to each hole information includes: determining a minimum rectangular area covering the target hole according to the hole size; and using the minimum rectangular area as the minimum bounding box.

[0012] Optionally, generating an initial rendering result of the power grid component according to each minimum bounding box includes: taking the minimum bounding box as the first area, and taking the area of ​​the power grid component other than the minimum bounding box as the second area; generating a first rendering result according to the first area, and generating a second rendering result according to the second area; and taking the first rendering result and the second rendering result as the initial rendering result.

[0013] Optionally, the initial rendering result is discretely processed according to the hole grouping to generate the final rendering result of the power grid component, including: grouping each hole in turn as a target hole grouping; discretely processing the first rendering result according to the target hole matrix in the target hole grouping to generate discrete data; combining the discrete data with the second rendering result to generate the final rendering result of the power grid component.

[0014] Optionally, the first rendering result is discretized according to the target hole matrix in the target hole group to generate discrete data, including: performing a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; and classifying and storing each triangular surface data according to the hole type to generate discrete data.

[0015] According to another aspect of the present invention, a discrete multiplexing device for power grid components with holes is provided, the device comprising:

[0016] A hole information acquisition module is used to acquire hole information of power grid components and generate hole groups according to the hole information, wherein the hole groups include hole matrices;

[0017] An initial rendering result generation module is used to determine the minimum bounding box corresponding to each hole information, and generate the initial rendering result of the power grid component according to each minimum bounding box;

[0018] The final rendering result generating module is used to process the initial rendering result according to the hole grouping to generate the final rendering result of the power grid component.

[0019] Optionally, the hole information acquisition module specifically includes: a hole information acquisition unit, used to: determine each target hole included in the power grid component, and obtain the hole type and hole size corresponding to each target hole; establish a coordinate system based on the power grid component, and obtain the hole position corresponding to each target hole in the coordinate system; use each hole type, hole size and hole position as hole information.

[0020] Optionally, the hole information acquisition module specifically includes: a hole grouping generation unit, used to: generate a hole matrix corresponding to each target hole according to the hole size and hole position; generate a hole group according to the hole matrix and the hole type, wherein the hole group includes hole matrices of the same hole type.

[0021] Optionally, the initial rendering result generating module specifically includes: a minimum bounding box determining unit, used to: determine the minimum rectangular area covering the target hole according to the hole size; and use the minimum rectangular area as the minimum bounding box.

[0022] Optionally, the initial rendering result generation module specifically includes: an initial rendering result generation unit, used to: take the minimum bounding box as the first area, and the area in the power grid component except the minimum bounding box as the second area; generate a first rendering result according to the first area, and generate a second rendering result according to the second area; and take the first rendering result and the second rendering result as the initial rendering result.

[0023] Optionally, the final rendering result generation module specifically includes: a target hole grouping determination unit, used to: group each hole in turn as a target hole group; a discrete data generation unit, used to: discretize the first rendering result according to the target hole matrix in the target hole group to generate discrete data; and a final rendering result generation unit, used to: combine the discrete data with the second rendering result to generate a final rendering result of the power grid component.

[0024] Optionally, the discrete data generating unit is specifically used to: perform a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; classify and store each triangular surface data according to the hole type to generate discrete data.

[0025] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0026] at least one processor; and

[0027] a memory communicatively connected to the at least one processor; wherein,

[0028] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a discrete multiplexing method for power grid components with holes as described in any embodiment of the present invention.

[0029] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a discrete multiplexing method for power grid components with holes as described in any embodiment of the present invention when executed.

[0030] The technical solution of the embodiment of the present invention obtains the hole information of the power grid component, and then classifies the hole information according to the hole type to generate a hole group, wherein the hole group includes a hole matrix that stores the hole position and the hole size, and generates the initial rendering result of the power grid component by determining the minimum bounding box of each hole, and then performs a single discrete operation and multiple reuses for different types of holes, thereby reducing the time of invalid calculations when opening holes in complex equipment, and generates a final rendering result with conventional instantiation rendering technology, thereby improving the graphics rendering efficiency of complex hole entities.

[0031] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 This is a flow chart of a discrete multiplexing method for power grid components with holes provided according to the first embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of a second rendering result provided according to the first embodiment of the present invention;

[0035] Figure 3 is a flow chart of another discrete multiplexing method for power grid components with holes provided according to the second embodiment of the present invention;

[0036] Figure 4 is a schematic diagram of a single hole discrete grid provided according to the second embodiment of the present invention;

[0037] Figure 5This is a schematic diagram of discrete multiplexing of a hole instantiation provided according to the second embodiment of the present invention;

[0038] Figure 6 is a schematic diagram of a final rendering result provided according to the second embodiment of the present invention;

[0039] Figure 7 This is a schematic diagram of the structure of a discrete multiplexing device for power grid components with holes provided according to Embodiment 3 of the present invention;

[0040] Figure 8 The present invention is a schematic structural diagram of an electronic device for implementing a discrete multiplexing method of a power grid component with a hole according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] Embodiment 1

[0044] Figure 1 A flowchart of a method for discrete multiplexing of grid components with holes is provided for the first embodiment of the present invention. This embodiment is applicable to the case of performing hole-opening operations on grid components. The method can be performed by a discrete multiplexing device for grid components with holes. The discrete multiplexing device for grid components with holes can be implemented in the form of hardware and / or software, and the device can be configured in a computer controller. Figure 1 As shown, the method includes:

[0045] S110, acquiring hole information of power grid components, and generating hole groups according to the hole information, wherein the hole groups include a hole matrix.

[0046] Among them, the grid components refer to the components of the power equipment, which include power generation equipment and power supply equipment. In the power plant, it is by relying on the power equipment that the normal transmission of electricity is realized, thereby meeting the normal needs of people. The hole matrix refers to the storage of hole information in the form of a four-dimensional matrix, and the hole matrix includes the storage of hole size and hole position. Among them, the grid components include terminal boards, circular hole installation plates and footboards, etc. These components usually contain many complex holes, and each hole includes information of different shapes, sizes and positions. The technical solution of the embodiment of the present invention first pre-processes the hole information of all power graphics elements that need to be opened in the engineering scene. The hole information includes hole type, hole size and hole position, and the holes are classified and stored according to their shape type, and the four-dimensional matrix is ​​used to store the unique information of each type of hole, that is, the hole size and hole position.

[0047] Optionally, the hole information of the power grid component is obtained, including: determining each target hole included in the power grid component, and obtaining the hole type and hole size corresponding to each target hole; establishing a coordinate system based on the power grid component, and obtaining the hole position corresponding to each target hole in the coordinate system; and using each hole type, hole size and hole position as hole information.

[0048] Specifically, the controller needs to obtain the hole information of the power grid components first. First, the power grid components that need to be opened in the engineering scene are collected, such as terminal boards, circular hole installation boards, and footboards. For each power grid component, the hole information contained in it is collected, that is, the hole type and hole size corresponding to each target hole are obtained, and then a coordinate system is established based on the power grid component. The hole position corresponding to each target hole is obtained in the coordinate system, and the specific position of each target hole in the power grid component can be determined. Finally, the hole type, hole size and hole position of each hole are used as hole information.

[0049] Optionally, hole groups are generated based on hole information, including: generating hole matrices corresponding to each target hole based on hole size and hole position; generating hole groups based on the hole matrix and hole type, wherein the hole groups include hole matrices of the same hole type.

[0050] Specifically, the controller will generate a four-dimensional hole matrix corresponding to each target hole according to the hole size and hole position, and then classify and store the hole matrix according to the hole type to generate hole grouping. For example, after collecting the hole information, the controller will classify and store the holes, and classify the holes of the same shape type into one category, such as round, square, etc. This can facilitate subsequent classification call processing operations. For each hole shape type, a four-dimensional matrix is ​​used to store its unique information, such as hole size and hole position, so that it can be directly obtained in subsequent instantiation drawing calls. In addition, based on the pre-processed hole information, we can also cache some common hole information for reuse in subsequent operations. This can further reduce the process of repeated calculations and improve the performance and efficiency of the entire software. By preprocessing and classifying the hole information, while ensuring the accuracy of the hole position, the computing power resource consumption for direct discretization of irregular holes is reduced. At the same time, it can be classified and reused according to different hole types, solving the problem of poor stability of traditional Boolean operations.

[0051] S120, determining the minimum bounding box corresponding to each hole information, and generating an initial rendering result of the power grid component according to each minimum bounding box.

[0052] The bounding box algorithm is a method for finding the optimal bounding space of a discrete point set. The basic idea is to use a slightly larger geometric body with simpler characteristics (called a bounding box) to approximately replace a complex geometric object. In this embodiment, the minimum bounding box refers to the minimum rectangle that can cover the hole.

[0053] Optionally, determining the minimum bounding box corresponding to each hole information includes: determining a minimum rectangular area covering the target hole according to the hole size; and using the minimum rectangular area as the minimum bounding box.

[0054] Specifically, for each hole entity, the main body Boolean operation process is simplified by calculating its bounding box, that is, covering the area of ​​the main body where the hole is located with the smallest rectangular box. This step aims to ensure the accuracy of the hole area with lower precision and computational cost.

[0055] Optionally, generating an initial rendering result of the power grid component according to each minimum bounding box includes: taking the minimum bounding box as the first area, and taking the area of ​​the power grid component other than the minimum bounding box as the second area; generating a first rendering result according to the first area, and generating a second rendering result according to the second area; and taking the first rendering result and the second rendering result as the initial rendering result.

[0056] Specifically, the minimum bounding box is used as the first area, and the area of ​​the power grid component other than the minimum bounding box is used as the second area. A first rendering result is generated according to the first area, and a second rendering result is generated according to the second area. Figure 2A second rendering result schematic diagram is provided for the first embodiment of the present invention. Figure 2 The schematic diagram of the Boolean simplified mesh of the main opening is given in , where the rectangle is the main body of the grid component, and the hollowed-out rectangular part in the middle is the removed minimum bounding box. Finally, the controller will use the first rendering result and the second rendering result as the initial rendering result.

[0057] Exemplarily, a discrete entity containing a hole is generated by performing a Boolean operation on the hole entity and the main body. In this process, the main body is roughly discretized, that is, the main body area is divided into multiple regular areas according to the hole bounding box to ensure the correctness of the shape of the inlay slot at the hole. By using the method of roughly discretizing regular areas to ensure the correctness of the shape of the inlay slot at the hole, while greatly reducing the discrete granularity of complex holes, it also avoids the large amount of computing power resources consumed by directly discretizing irregular holes.

[0058] S130, performing discretization processing on the initial rendering results according to the hole groups to generate final rendering results of the power grid components.

[0059] Specifically, the controller will discretize the initial rendering results according to the hole grouping, and store a copy of the discretized triangular patch data of each type of hole under its type data, and associate multiple copies of matrix data and their relationship with the main components, so as to facilitate the association of instantiated graphics data when subsequently rendering the main components.

[0060] Furthermore, since the embodiment of the present invention has discretized each type of opening and stored the discretized triangular facet data under its corresponding type data, when rendering the overall component, in addition to rendering the main equipment primitives of the opening, this algorithm directly uses instantiation batch rendering to display the opening entity by obtaining the main body-associated opening position matrix data saved in the preprocessing, thereby greatly improving the graphics rendering efficiency of complex opening entities.

[0061] The technical solution of the embodiment of the present invention obtains the hole information of the power grid component, and then classifies the hole information according to the hole type to generate a hole group, wherein the hole group includes a hole matrix that stores the hole position and the hole size, and generates the initial rendering result of the power grid component by determining the minimum bounding box of each hole, and then performs a single discrete operation and multiple reuses for different types of holes, thereby reducing the time of invalid calculations when opening holes in complex equipment, and generates a final rendering result with conventional instantiation rendering technology, thereby improving the graphics rendering efficiency of complex hole entities.

[0062] Embodiment 2

[0063] Figure 3This is a flowchart of a method for discrete multiplexing of power grid components with holes provided in the second embodiment of the present invention. This embodiment adds a specific description of discretely processing the initial rendering results according to the hole grouping to generate the final rendering results of the power grid components on the basis of the above-mentioned first embodiment. Among them, the specific contents of steps S210-S220 are roughly the same as steps S110-S120 in the first embodiment, so they will not be repeated in this embodiment. Figure 3 As shown, the method includes:

[0064] S210, acquiring hole information of power grid components, and generating hole groups according to the hole information, wherein the hole groups include a hole matrix.

[0065] Optionally, the hole information of the power grid component is obtained, including: determining each target hole included in the power grid component, and obtaining the hole type and hole size corresponding to each target hole; establishing a coordinate system based on the power grid component, and obtaining the hole position corresponding to each target hole in the coordinate system; and using each hole type, hole size and hole position as hole information.

[0066] Optionally, hole groups are generated based on hole information, including: generating hole matrices corresponding to each target hole based on hole size and hole position; generating hole groups based on the hole matrix and hole type, wherein the hole groups include hole matrices of the same hole type.

[0067] S220, determining the minimum bounding box corresponding to each hole information, and generating an initial rendering result of the power grid component according to each minimum bounding box.

[0068] Optionally, determining the minimum bounding box corresponding to each hole information includes: determining a minimum rectangular area covering the target hole according to the hole size; and using the minimum rectangular area as the minimum bounding box.

[0069] Optionally, generating an initial rendering result of the power grid component according to each minimum bounding box includes: taking the minimum bounding box as the first area, and taking the area of ​​the power grid component other than the minimum bounding box as the second area; generating a first rendering result according to the first area, and generating a second rendering result according to the second area; and taking the first rendering result and the second rendering result as the initial rendering result.

[0070] S230, grouping the hole openings in sequence as target hole opening groups.

[0071] S240 , performing discretization processing on the first rendering result according to the target hole matrix in the target hole group to generate discrete data.

[0072] Optionally, the first rendering result is discretized according to the target hole matrix in the target hole group to generate discrete data, including: performing a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; and classifying and storing each triangular surface data according to the hole type to generate discrete data.

[0073] Specifically, Figure 4 A schematic diagram of a single hole discrete grid is provided for an embodiment of the present invention. Figure 4 In the middle are the triangular surface data corresponding to each target hole information. The controller can perform a discrete Boolean operation on the first rendering result according to the target hole matrix to generate the triangular surface data corresponding to each target hole information, and then classify and store each triangular surface data according to the hole type. Figure 5 A schematic diagram of discrete multiplexing of a hole instantiation is provided for an embodiment of the present invention. Figure 5 It is a grid diagram based on the three-fold reuse of a single opening discretization.

[0074] S250 : Combining the discrete data with the second rendering result to generate a final rendering result of the power grid component.

[0075] Specifically, Figure 6 A schematic diagram of a final rendering result is provided for an embodiment of the present invention. Figure 6 In the embodiment, the controller splices the discrete data with the second rendering result to generate an instantiated rendering display based on the main body and the opening.

[0076] In a specific embodiment, the controller performs a single Boolean discrete operation for different types of holes in the preprocessing. It mainly includes discrete area acquisition, hole discretization and instantiation storage. Discrete area acquisition is to calculate the exact size of the hole in the three-dimensional space according to the parameters of each type of hole in the preprocessing when acquiring the size information of the hole. This is to ensure that when the hole is discretized, the size of the discrete area is consistent with the size of the discrete area of ​​the entire body, so as to ensure the fit and accuracy between the discretized hole and the entire body. Hole discretization is to obtain the hole size information that needs to be discretized for various types of holes, and perform a discrete Boolean operation based on this information and the size of the discrete area of ​​the main body with the center of the discrete area as the base point. The triangular face data corresponding to each hole can be obtained and stored in the corresponding type of data. After processing once, the discretized data can be reused later, which greatly reduces the time and resource consumption of repeated calculations. Instantiation storage is to store a copy of the triangular face data of each type of hole after discretization under its type data, and associate multiple copies of matrix data and their relationship with the main component, so as to facilitate the subsequent association of instantiation graphics data when rendering the main component.

[0077] The technical solution of the embodiment of the present invention obtains the hole information of the power grid component, and then classifies the hole information according to the hole type to generate a hole group, wherein the hole group includes a hole matrix that stores the hole position and the hole size, and generates the initial rendering result of the power grid component by determining the minimum bounding box of each hole, and then performs a single discrete operation and multiple reuses for different types of holes, thereby reducing the time of invalid calculations when opening holes in complex equipment, and generates a final rendering result with conventional instantiation rendering technology, thereby improving the graphics rendering efficiency of complex hole entities.

[0078] Embodiment 3

[0079] Figure 7 This is a schematic diagram of the structure of a discrete multiplexing device for power grid components with holes provided in the third embodiment of the present invention. Figure 7 As shown, the device includes: a hole information acquisition module 310, which is used to obtain hole information of power grid components and generate hole groups according to the hole information, wherein the hole groups include hole matrices;

[0080] The initial rendering result generating module 320 is used to determine the minimum bounding box corresponding to each hole information, and generate the initial rendering result of the power grid component according to each minimum bounding box;

[0081] The final rendering result generating module 330 is used to process the initial rendering result according to the hole grouping to generate the final rendering result of the power grid component.

[0082] Optionally, the hole information acquisition module 310 specifically includes: a hole information acquisition unit, used to: determine each target hole included in the power grid component, and obtain the hole type and hole size corresponding to each target hole; establish a coordinate system based on the power grid component, and obtain the hole position corresponding to each target hole in the coordinate system; use each hole type, hole size and hole position as hole information.

[0083] Optionally, the hole information acquisition module 310 specifically includes: a hole grouping generation unit, used to: generate a hole matrix corresponding to each target hole according to the hole size and hole position; generate a hole group according to the hole matrix and the hole type, wherein the hole group includes hole matrices of the same hole type.

[0084] Optionally, the initial rendering result generating module 320 specifically includes: a minimum bounding box determining unit, used to: determine the minimum rectangular area covering the target hole according to the hole size; and use the minimum rectangular area as the minimum bounding box.

[0085] Optionally, the initial rendering result generation module 320 specifically includes: an initial rendering result generation unit, used to: take the minimum bounding box as the first area, and take the area in the power grid component other than the minimum bounding box as the second area; generate a first rendering result based on the first area, and generate a second rendering result based on the second area; and take the first rendering result and the second rendering result as the initial rendering result.

[0086] Optionally, the final rendering result generation module 330 specifically includes: a target hole grouping determination unit, used to: group each hole in turn as a target hole group; a discrete data generation unit, used to: discretize the first rendering result according to the target hole matrix in the target hole group to generate discrete data; and a final rendering result generation unit, used to: combine the discrete data with the second rendering result to generate a final rendering result of the power grid component.

[0087] Optionally, the discrete data generating unit is specifically used to: perform a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; classify and store each triangular surface data according to the hole type to generate discrete data.

[0088] The technical solution of the embodiment of the present invention obtains the hole information of the power grid component, and then classifies the hole information according to the hole type to generate a hole group, wherein the hole group includes a hole matrix that stores the hole position and the hole size, and generates the initial rendering result of the power grid component by determining the minimum bounding box of each hole, and then performs a single discrete operation and multiple reuses for different types of holes, thereby reducing the time of invalid calculations when opening holes in complex equipment, and generates a final rendering result with conventional instantiation rendering technology, thereby improving the graphics rendering efficiency of complex hole entities.

[0089] A discrete multiplexing device for power grid components with holes provided in an embodiment of the present invention can execute a discrete multiplexing method for power grid components with holes provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0090] Embodiment 4

[0091] Figure 8A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0092] like Figure 8 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0093] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0094] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a discrete multiplexing method for power grid components with holes. That is: obtaining the hole information of the power grid component, generating a hole grouping according to the hole information, wherein the hole grouping includes a hole matrix; determining the minimum bounding box corresponding to each hole information, generating the initial rendering result of the power grid component according to each minimum bounding box; and performing discrete processing on the initial rendering result according to the hole grouping to generate the final rendering result of the power grid component.

[0095] In some embodiments, a method for discrete multiplexing of grid components with holes can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for discrete multiplexing of grid components with holes described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute a method for discrete multiplexing of grid components with holes in any other appropriate manner (for example, by means of firmware).

[0096] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0097] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0098] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0099] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0100] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0101] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0102] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0103] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for discrete multiplexing of power grid components with openings, characterized in that: include: Acquire hole information of power grid components, and generate hole groups according to the hole information, wherein the hole groups include a hole matrix; Determine the minimum bounding box corresponding to each of the hole information, and generate the initial rendering result of the power grid component according to each of the minimum bounding boxes; Discretely processing the initial rendering results according to the hole groups to generate final rendering results of the power grid components; The step of obtaining the hole information of the power grid component includes: Determine each target hole included in the power grid component, and obtain the hole type and hole size corresponding to each target hole; Establishing a coordinate system based on the power grid components, and obtaining the hole position corresponding to each of the target holes in the coordinate system; The hole type, hole size and hole position are used as the hole information; The step of generating hole groups according to the hole information includes: Generate a hole matrix corresponding to each target hole according to the hole size and the hole position; The hole group is generated according to the hole matrix and the hole type, wherein the hole group includes a hole matrix of the same hole type, and the hole matrix uses a four-dimensional matrix to store the hole size and hole position of each type of hole.

2. The method according to claim 1, characterized in that The determining of the minimum bounding box corresponding to each hole information includes: Determine the minimum rectangular area covering the target hole according to the hole size; The minimum rectangular area is used as the minimum bounding box.

3. The method according to claim 1, characterized in that Generating the initial rendering result of the power grid component according to each of the minimum bounding boxes includes: Taking the minimum bounding box as the first area, and taking the area of ​​the power grid component except the minimum bounding box as the second area; generating a first rendering result according to the first area, and generating a second rendering result according to the second area; The first rendering result and the second rendering result are used as the initial rendering result.

4. The method according to claim 3, characterized in that The discrete processing of the initial rendering results according to the hole groups to generate the final rendering results of the power grid components includes: Grouping the hole openings in turn as target hole opening groups; Performing discrete processing on the first rendering result according to the target hole matrix in the target hole group to generate discrete data; The discrete data is combined with the second rendering result to generate a final rendering result of the power grid component.

5. The method according to claim 4, characterized in that The step of performing discrete processing on the first rendering result according to the target hole matrix in the target hole group to generate discrete data includes: Performing a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; The triangular surface data are classified and stored according to the hole type to generate the discrete data.

6. A discrete multiplexing device for power grid components with openings, characterized in that: include: A hole information acquisition module, used to acquire hole information of power grid components, and generate hole groups according to the hole information, wherein the hole groups include a hole matrix; An initial rendering result generating module, used for determining the minimum bounding box corresponding to each of the hole information, and generating the initial rendering result of the power grid component according to each of the minimum bounding boxes; A final rendering result generating module, used for processing the initial rendering result according to the hole grouping to generate a final rendering result of the power grid component; The hole information acquisition module specifically includes: The hole information acquisition unit is used to: determine each target hole included in the power grid component, and obtain the hole type and hole size corresponding to each target hole; Establishing a coordinate system based on the power grid components, and obtaining the hole position corresponding to each of the target holes in the coordinate system; The hole type, hole size and hole position are used as the hole information; The hole information acquisition module specifically includes: A hole grouping generating unit, used for: generating a hole matrix corresponding to each target hole according to the hole size and the hole position; The hole group is generated according to the hole matrix and the hole type, wherein the hole group includes a hole matrix of the same hole type, and the hole matrix uses a four-dimensional matrix to store the hole size and hole position of each type of hole.

7. The device according to claim 6, characterized in that The initial rendering result generation module specifically includes: A minimum bounding box determination unit, used to: determine the minimum rectangular area covering the target hole according to the hole size; The minimum rectangular area is used as the minimum bounding box.

8. The device according to claim 6, characterized in that The initial rendering result generation module specifically includes: An initial rendering result generating unit, used to: take the minimum bounding box as a first area, and take an area of ​​the power grid component other than the minimum bounding box as a second area; generating a first rendering result according to the first area, and generating a second rendering result according to the second area; The first rendering result and the second rendering result are used as the initial rendering result.

9. The device according to claim 8, characterized in that The final rendering result generation module specifically includes: A target hole group determination unit is used to: sequentially group each hole as a target hole group; A discrete data generating unit, configured to: perform discrete processing on the first rendering result according to the target hole matrix in the target hole group to generate discrete data; The final rendering result generating unit is used to combine the discrete data with the second rendering result to generate a final rendering result of the power grid component.

10. The device according to claim 9, characterized in that The discrete data generating unit is specifically used for: Performing a discrete Boolean operation on the first rendering result according to the target hole matrix to generate triangular surface data corresponding to each target hole information; The triangular surface data are classified and stored according to the hole type to generate the discrete data.

11. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the method according to any one of claims 1 to 5.

12. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Three-dimensional model scene rendering method

    CN114373048A

  • Parameterized geometric multi-thread discretization method and system

    CN116385652A