Two-dimensional plane layout conversion method and device for three-dimensional power screen cabinet model
Through spatial transformation and projection mapping technology, the three-dimensional power cabinet model is converted into a two-dimensional planar layout, and the layout optimization algorithm is used to improve the space utilization, solving the error and inefficiency problems when converting three-dimensional models into two-dimensional layout in the existing technology, achieving efficient and accurate design and construction support.
Patent Information
- Application Number
- CN202411820005.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-11
- Publication Date
- 2025-05-16
AI Technical Summary
The prior art is difficult to directly convert the three-dimensional power screen cabinet model into two-dimensional planar layout data, resulting in error and inefficiency problems in construction and maintenance.
Through reasonable spatial transformation and projection mapping technology, the three-dimensional model of the power screen cabinet and its internal distribution equipment is converted into two-dimensional planar layout data, and layout optimization algorithms are used to improve space utilization and avoid conflicts between equipment.
The accurate conversion of the three-dimensional model to a two-dimensional plan layout is realized, the error in manual design is reduced, the space utilization and design efficiency is improved, and standardized engineering drawings are provided for subsequent construction and maintenance.
Smart Images

Figure CN120012189A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method and a device for converting a two-dimensional plane layout of a three-dimensional electric power panel cabinet model, and belongs to the technical field of electric power system equipment. Background Art
[0002] With the continuous development of intelligent power systems, the design, manufacturing and maintenance of power cabinets are increasingly dependent on digital modeling and simulation technology. In the design process of power cabinets, 3D modeling tools are usually used to design the layout of equipment. However, in practical applications, 2D plane data is more intuitive and easy to operate, so it is necessary to extract the equipment information in the 3D model and convert it into a 2D plane layout. Traditional power cabinet design mostly relies on 2D drawings. However, with the introduction of computer-aided design (CAD) technology, 3D models have gradually become the mainstream design method. 3D models can not only intuitively display the relative position and connection relationship of power equipment, but also perform collision detection, structural optimization and other tasks. However, the data volume of 3D models is large and complex, and cannot be directly used for construction and maintenance. Therefore, a method is needed to convert the equipment information in 3D space into 2D data that can be expressed on a plane to achieve effective conversion and utilization of information. Summary of the invention
[0003] The purpose of the present invention is to provide a method and device for converting a three-dimensional power panel cabinet model into a two-dimensional plane layout. Through reasonable spatial transformation and projection mapping technology, the three-dimensional model of the power panel cabinet and its internal power distribution equipment is accurately converted into two-dimensional plane layout data, so as to achieve the goal of intuitive display of the distribution equipment layout and convenient research.
[0004] In order to achieve the above objectives / solve the above technical problems, the present invention is implemented by adopting the following technical solutions.
[0005] In a first aspect, the present invention provides a method for converting a two-dimensional plane layout of a three-dimensional power cabinet model, comprising: Obtain 3D model data of power panel cabinets and their internal power distribution equipment; Optimize the 3D model data; Extract key geometric characteristics of power distribution equipment from preprocessed 3D model data; Based on the extraction of key geometric characteristics of the power distribution equipment, the three-dimensional spatial coordinates of the power distribution equipment are mapped to a two-dimensional plane through the orthographic projection method to generate the projection position and outline of the power distribution equipment in the two-dimensional plane; According to the projection position and outline of the power distribution equipment in the two-dimensional plane, calculate the position information of the power distribution equipment in the two-dimensional plane, including the two-dimensional outline, relative position and boundary range of the power distribution equipment; Based on the two-dimensional occupancy information and key geometric characteristics of the power distribution equipment, the layout optimization algorithm is used to optimize the arrangement of the equipment, including: using the three-dimensional packing algorithm to improve the space utilization of the plane layout; using the automatic collision detection algorithm to check whether there is overlap or conflict between the equipment, and make adjustments; Save the optimized 2D layout data as a standard engineering drawing format for subsequent design and construction Furthermore, the three-dimensional model data includes: the overall three-dimensional geometric shape of the power panel cabinet and the geometric shape, position coordinates and installation orientation of the internal power distribution equipment.
[0006] Furthermore, the preprocessing of the three-dimensional model data includes: geometric simplification and geometric fitting; Geometry simplification: Use polygon simplification algorithm to reduce the complexity of 3D model data; Geometric fitting: Fit the complex shape of the distribution equipment, use simplified geometric representation, and limit the size of the fitted model according to the set error threshold to accurately cover the key geometric characteristics of the distribution equipment.
[0007] Furthermore, the key geometric characteristics include: geometric dimensions of the power distribution equipment, a center point and a boundary box of the power distribution equipment, and an installation orientation of the power distribution equipment.
[0008] Further, the calculating the position information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane specifically includes: Calculate the outline of the power distribution equipment in the plane by means of geometric projection or extract the outline of the power distribution equipment by slicing; The method of calculating the outline of the power distribution equipment in the plane by geometric projection is specifically as follows: according to the projection direction, the three-dimensional model data of the power distribution equipment is acquired at a set viewing angle, and the two-dimensional outline of the power distribution equipment is calculated; The extracting the outline of the power distribution equipment by slicing processing specifically includes: According to the height range of the bounding box of the power distribution equipment, a number of parallel slice planes are generated at fixed intervals from the bottom to the top of the power distribution equipment; Through Boolean operations, the intersection of the slice plane and the surface grid of the power distribution equipment model is obtained to generate the two-dimensional cross-sectional contour line of each layer; The two-dimensional wheel section profiles generated by all slicing planes are merged in height order, and redundant line segments are removed to form a complete outline of the distribution equipment on the two-dimensional plane.
[0009] Furthermore, the arrangement optimization of the equipment is realized by using a layout optimization algorithm based on the two-dimensional occupancy information and key geometric characteristics of the power distribution equipment, specifically including: Based on the two-dimensional occupancy information and key geometric characteristics of the distribution equipment, a three-dimensional packing algorithm is used to improve the space utilization of the plane layout, and an automatic collision detection algorithm is used to check whether there is overlap or conflict between the distribution equipment to make layout adjustments.
[0010] In a second aspect, the present invention provides a two-dimensional plane layout conversion device of a three-dimensional power panel model, comprising: An acquisition module is used to acquire the three-dimensional model data of the power panel cabinet and its internal power distribution equipment; A preprocessing module, used for preprocessing the three-dimensional model data and extracting key geometric characteristics of the power distribution equipment from the preprocessed three-dimensional model data; A projection module is used to extract key geometric characteristics of the power distribution equipment, map the three-dimensional space coordinates of the power distribution equipment to a two-dimensional plane through a positive projection method, and generate a projection position and contour of the power distribution equipment in the two-dimensional plane; A placeholder module, used to calculate the placeholder information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane; An optimization module is used to optimize the arrangement of equipment using a layout optimization algorithm based on the two-dimensional occupancy information and key geometric characteristics of the distribution equipment; The saving module is used to save the optimized 2D plane layout data into a standard engineering drawing format.
[0011] In a third aspect, the present invention provides a two-dimensional plane layout conversion system of a three-dimensional power panel cabinet model, comprising: Memory, for storing computer programs / instructions; A processor is used to execute the computer program / instructions to implement the steps of the above-mentioned method for converting the two-dimensional plane layout of a three-dimensional power cabinet model.
[0012] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon, which, when executed by a processor, implements the steps of the above-mentioned method for converting a two-dimensional plane layout of a three-dimensional power cabinet model.
[0013] In a fifth aspect, the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for converting a two-dimensional plane layout of a three-dimensional power cabinet model.
[0014] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention combines orthographic projection and slicing technology to accurately extract the two-dimensional placeholder information of the equipment according to the geometric characteristics of the three-dimensional model, and ensure the integrity of complex surfaces and boundaries. It uses space transformation and orthographic projection mapping and other technologies to accurately convert the three-dimensional geometric shape information of the power panel cabinet and its internal distribution equipment into a two-dimensional plane layout, avoiding errors and inefficiencies that may occur in manual design.
[0015] The present invention is based on the two-dimensional occupancy information of the equipment, utilizes the 3D packing algorithm and the automatic collision detection technology, combines the key characteristics with the layout optimization, realizes the efficient optimization of the two-dimensional plane layout, ensures the optimal space utilization and the absence of conflicts between the equipment, not only improves the space utilization, but also avoids the space waste that may occur in the traditional method, and is particularly suitable for scenes with a wide variety of equipment and complex layouts; through the automatic collision detection algorithm, it can check in real time whether there is overlap between the equipment to ensure that a safe distance is maintained between the equipment, and even in a complex layout, the boundaries and distances between the equipment are accurately controlled, thereby avoiding collisions or mutual interference, and ensuring the safe operation of the equipment.
[0016] The present invention can directly convert the optimized two-dimensional plane layout data into a standard drawing format (such as DWG or DXF) that meets the requirements of engineering applications, which is convenient for subsequent construction and design. The layout plan can be seamlessly integrated with the existing CAD system, reducing the time and cost of conversion and redrawing. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Shown is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0018] It should be noted that: The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict.
[0019] The term "and / or" is only a description of the association relationship between related objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " generally indicates that the related objects are in an "or" relationship. Example
[0020] like Figure 1 In one embodiment, this embodiment provides a method for converting a two-dimensional plane layout of a three-dimensional power cabinet model, comprising: Step 1: Obtain the three-dimensional model data of the power panel cabinet and its internal power distribution equipment, wherein the three-dimensional model data includes: the overall three-dimensional geometric shape of the power panel cabinet and the geometric shape, position coordinates and installation orientation of the internal power distribution equipment.
[0021] Step 2: Optimize the 3D model data and extract key geometric characteristics of the power distribution equipment from the pre-processed 3D model data; The preprocessing of the three-dimensional model data includes: geometric simplification and geometric fitting; Geometry simplification: Use polygon simplification algorithm to reduce the complexity of 3D model data; Geometric fitting: Fit the complex shape of the power distribution equipment, use simplified geometric representation, and limit the size of the fitted model according to the set error threshold to accurately cover the key geometric characteristics of the power distribution equipment; The key geometric characteristics include: geometric dimensions of the power distribution equipment, a center point and a boundary frame of the power distribution equipment, and an installation orientation of the power distribution equipment.
[0022] Step 3: Based on the extraction of key geometric characteristics of the power distribution equipment, the three-dimensional spatial coordinates of the power distribution equipment are mapped to a two-dimensional plane through a forward projection method to generate the projection position and outline of the power distribution equipment in the two-dimensional plane; Step 4: Calculate the location information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane, including: Calculate the outline of the electrical equipment in the plane by means of geometric projection: according to the projection direction, obtain the three-dimensional model data of the power distribution equipment at a set viewing angle, and calculate the two-dimensional outline of the power distribution equipment; The outline of the distribution equipment is extracted through slicing processing: according to the height range of the boundary box of the distribution equipment, several parallel slicing planes are generated at fixed intervals from the bottom to the top of the distribution equipment; through Boolean operations, the intersection of the slicing plane and the surface grid of the distribution equipment model is calculated to generate the two-dimensional cross-sectional contour line of each layer; the two-dimensional cross-sectional contour lines generated by all slicing planes are merged in height order, and redundant line segments are removed to form the complete outline of the distribution equipment on the two-dimensional plane.
[0023] Step 5: Based on the two-dimensional occupancy information and key geometric characteristics of the power distribution equipment, the layout optimization algorithm is used to optimize the arrangement of the equipment, including: using a three-dimensional packing algorithm to improve the space utilization of the plane layout; using an automatic collision detection algorithm to check whether there is overlap or conflict between the equipment, and make adjustments; Enter placeholder information and optimization constraints: Optimization constraints include: specific equipment must maintain a specified direction (such as the front facing the operating surface of the cabinet), equipment must maintain a minimum safety distance (such as 100mm), and two-dimensional plane restrictions, including: the available layout area inside the cabinet; special areas (such as cable outlets) must be reserved.
[0024] Use the 3D packing algorithm for initial layout, efficiently arrange equipment in a two-dimensional plane, maximize space utilization, and meet layout constraints, including: Problem modeling: Consider the two-dimensional occupancy information of each device as a rectangular or polygonal "cargo" and the available area in the cabinet as a "container".
[0025] Priority rule: Set layout priorities based on the importance and functional requirements of the equipment (for example, the distribution bus needs to be close to the power inlet).
[0026] Packing strategy: Length and width priority rule: give priority to placing larger devices to reduce wasted space; Dynamic adjustment strategy: When some devices cannot be placed in the preset direction, they can be rotated 90° to try a new direction.
[0027] Generate preliminary layout: The preliminary layout is completed through recursion or heuristic algorithms.
[0028] Then use the automatic collision detection algorithm to verify the legality of the layout to ensure that the layout of all devices meets the constraints and there is no overlap or conflict, including: Proximity device detection: Traverse the bounding boxes of all devices to check if there is any overlapping area; If overlap is found, note the conflicting device and return to adjust.
[0029] Safety distance check: Expand the bounding box between devices according to the set minimum safety distance; Check whether the expanded bounding boxes intersect and whether the spacing requirements are met.
[0030] Automatic Adjustment: Adjust the position or orientation of conflicting devices through heuristic algorithms or constrained optimization; The optimization goal is to simultaneously eliminate overlap and maximize space utilization.
[0031] Iterative optimization and output layout: Iterative optimization: Repeat the "packing-testing-adjustment" process until all devices meet the space constraints and the layout efficiency reaches the local optimum.
[0032] Output: Generate a 2D plan view of the optimized layout, including the final position, orientation, and bounding box coordinates of each device to meet engineering application requirements.
[0033] Step 6: Save the optimized 2D plan layout data as a standard engineering drawing format for subsequent design and construction. Example
[0034] This embodiment provides a two-dimensional plane layout conversion device for a three-dimensional power cabinet model, comprising: An acquisition module is used to acquire the three-dimensional model data of the power panel cabinet and its internal power distribution equipment; A preprocessing module, used for preprocessing the three-dimensional model data and extracting key geometric characteristics of the power distribution equipment from the preprocessed three-dimensional model data; A projection module is used to extract key geometric characteristics of the power distribution equipment, map the three-dimensional space coordinates of the power distribution equipment to a two-dimensional plane through a positive projection method, and generate a projection position and contour of the power distribution equipment in the two-dimensional plane; A placeholder module, used to calculate the placeholder information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane; An optimization module is used to optimize the arrangement of equipment using a layout optimization algorithm based on the two-dimensional occupancy information and key geometric characteristics of the distribution equipment; The saving module is used to save the optimized 2D plane layout data into a standard engineering drawing format. Example
[0035] This embodiment provides a two-dimensional plane layout conversion system of a three-dimensional power cabinet model, including: Memory, for storing computer programs / instructions; A processor is used to execute the computer program / instructions to implement the steps of the above-mentioned method for converting the two-dimensional plane layout of a three-dimensional power cabinet model. Example
[0036] This embodiment provides a computer-readable storage medium having a computer program / instruction stored thereon. When the computer program / instruction is executed by a processor, the steps of the above-mentioned method for converting a two-dimensional plane layout of a three-dimensional power cabinet model are implemented. Example
[0037] This embodiment provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the above-mentioned method for converting a two-dimensional plane layout of a three-dimensional power cabinet model.
[0038] The present invention solves the problems of inefficient space utilization, high layout complexity, and high manual operation error rate in traditional two-dimensional design through innovative space transformation, projection mapping technology, and layout optimization methods. It effectively improves design efficiency, optimizes space utilization, ensures equipment safety, and provides standardized engineering drawing output for subsequent construction and maintenance.
[0039] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0040] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0041] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0042] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0043] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.
Claims
1. A method for converting a two-dimensional plane layout of a three-dimensional power cabinet model, characterized in that: include: Obtain 3D model data of power panel cabinets and their internal power distribution equipment; Preprocessing the three-dimensional model data, and extracting key geometric characteristics of the power distribution equipment from the preprocessed three-dimensional model data; Based on the extraction of key geometric characteristics of the power distribution equipment, the three-dimensional spatial coordinates of the power distribution equipment are mapped to a two-dimensional plane through the forward projection method to generate the projection position and outline of the power distribution equipment in the two-dimensional plane; Calculate the location information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane; Based on the two-dimensional occupancy information and key geometric characteristics of the power distribution equipment, the layout optimization algorithm is used to optimize the arrangement of the equipment; Save optimized 2D floor plan data to standard engineering drawing formats.
2. The method for converting a two-dimensional plane layout of a three-dimensional power cabinet model according to claim 1 is characterized in that: The three-dimensional model data includes: the overall three-dimensional geometric shape of the power panel cabinet and the geometric shape, position coordinates and installation orientation of the internal power distribution equipment.
3. The method for converting a two-dimensional plane layout of a three-dimensional power cabinet model according to claim 1 is characterized in that: The preprocessing of the three-dimensional model data includes: geometric simplification and geometric fitting; Geometry simplification: Use polygon simplification algorithm to reduce the complexity of 3D model data; Geometric fitting: Fit the complex shape of the distribution equipment, use simplified geometric representation, and limit the size of the fitted three-dimensional model according to the set error threshold to accurately cover the key geometric characteristics of the distribution equipment.
4. The method for converting a two-dimensional plane layout of a three-dimensional power cabinet model according to claim 1 is characterized in that: The key geometric characteristics include: geometric dimensions of the power distribution equipment, a center point and a boundary frame of the power distribution equipment, and an installation orientation of the power distribution equipment.
5. The method for converting a two-dimensional plane layout of a three-dimensional power cabinet model according to claim 1 is characterized in that: The calculating the position information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane specifically includes: Calculate the outline of the power distribution equipment in the plane by means of geometric projection or extract the outline of the power distribution equipment by slicing; The method of calculating the outline of the power distribution equipment in the plane by means of geometric projection specifically includes: According to the projection direction, the three-dimensional model data of the power distribution equipment is obtained at a set viewing angle, and the two-dimensional contour of the power distribution equipment is calculated; The extracting the outline of the power distribution equipment by slicing processing specifically includes: According to the height range of the bounding box of the distribution equipment, several parallel slicing planes are generated at fixed intervals from the bottom to the top of the distribution equipment. Through Boolean operations, the intersection of the slicing plane and the surface grid of the distribution equipment model is calculated to generate the two-dimensional cross-sectional contour line of each layer. The two-dimensional cross-sectional contour lines generated by all slicing planes are merged in height order, and redundant line segments are removed to form the complete contour of the distribution equipment on the two-dimensional plane.
6. The method for converting a two-dimensional plane layout of a three-dimensional power cabinet model according to claim 1 is characterized in that: The arrangement optimization of the equipment is realized by using a layout optimization algorithm based on the two-dimensional occupancy information and key geometric characteristics of the power distribution equipment, specifically including: Based on the two-dimensional occupancy information and key geometric characteristics of the distribution equipment, a three-dimensional packing algorithm is used to improve the space utilization of the plane layout, and an automatic collision detection algorithm is used to check whether there is overlap or conflict between the distribution equipment to make layout adjustments.
7. A two-dimensional plane layout conversion device for a three-dimensional power panel model, characterized in that: include: An acquisition module is used to acquire the three-dimensional model data of the power panel cabinet and its internal power distribution equipment; A preprocessing module, used for preprocessing the three-dimensional model data and extracting key geometric characteristics of the power distribution equipment from the preprocessed three-dimensional model data; A projection module is used to extract key geometric characteristics of the power distribution equipment, map the three-dimensional space coordinates of the power distribution equipment to a two-dimensional plane through a positive projection method, and generate a projection position and contour of the power distribution equipment in the two-dimensional plane; A placeholder module, used to calculate the placeholder information of the power distribution equipment in the two-dimensional plane according to the projection position and outline of the power distribution equipment in the two-dimensional plane; An optimization module is used to optimize the arrangement of equipment using a layout optimization algorithm based on the two-dimensional occupancy information and key geometric characteristics of the distribution equipment; The saving module is used to save the optimized 2D plane layout data into a standard engineering drawing format.
8. A two-dimensional plane layout conversion system of a three-dimensional power panel model, characterized in that: include: Memory, for storing computer programs / instructions; A processor is used to execute the computer program / instructions to implement the steps of a method for converting a two-dimensional plane layout of a three-dimensional power cabinet model as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instruction is executed by a processor, the steps of a method for converting a two-dimensional plane layout of a three-dimensional power cabinet model as described in any one of claims 1-6 are implemented.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of a method for converting a two-dimensional plane layout of a three-dimensional power cabinet model described in any one of claims 1-6 are implemented.