Three-dimensional visualization system suitable for intelligent power community
Technical Field
The invention relates to the technical field of electric power three-dimensional visualization, in particular to a three-dimensional visualization system suitable for an electric power intelligent community.
Background
With the rapid development of computer technology, geographic Information systems (GIS for short) are increasingly widely used in the entire power industry. The CIS is introduced into a Distribution Management System (DMS) and is combined with subsystems such as a power utilization MIS, load management and SCADA (supervisory control and data acquisition), so that a set of simple, rapid and convenient distribution network operation management system is provided for managers at all levels, and an effective means for improving the management level and the working efficiency is provided. However, the CIS system widely applied to the power system at present is mainly based on a two-dimensional coordinate, the spatial representation and analysis capability of the CIS system are very limited, the power configuration and the operation live in the smart community cannot be dynamically and intuitively reflected, especially, the positions of the power transmission line and the tower thereof are closely related to the geographic spatial position of the smart community, and particularly, hierarchical information in the vertical direction is very important, so that the two-dimensional geographic information system cannot meet the management requirement.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a three-dimensional visualization system suitable for an intelligent power community, so as to solve the technical problem that the power configuration and the operation condition in the intelligent community cannot be dynamically and intuitively reflected by the conventional two-dimensional geographic information system.
(II) technical scheme
In order to achieve the purpose, the invention provides the following technical scheme:
a three-dimensional visualization system suitable for an electric smart community, comprising: the intelligent power community model display system comprises a data processing module, an intelligent power community model building module, an intelligent power community model drawing module, a model transformation module, a model rendering module and a model operation module, wherein the data processing module is used for processing intelligent power community data, the intelligent power community model building module is used for building a three-dimensional model of an intelligent power community, the intelligent power community model drawing module is responsible for drawing a model and visually displaying the model, the model transformation module is responsible for displaying the model in different angles, sizes, directions and modes, the model rendering module is used for adding different effects to model display, and the model operation module is used for mining internal information of the model and visually displaying the internal information of the model;
the intelligent power community model drawing module is in communication connection with the model transformation module, the model rendering module and the model operation module respectively;
the three-dimensional modeling method of the electric intelligent community model building module comprises the following steps:
the method comprises the following steps: based on a triangulation network growth method, the positions of power equipment and a smart community space are used as discrete points to carry out triangulation network TIN subdivision;
step two: based on the discrete point of power equipment and wisdom community spatial position, establish the three-dimensional model of electric power wisdom community, specifically include:
(1) Inputting initial parameter data of the power equipment and the intelligent community space, and generating an initial power equipment and an intelligent community space model;
(2) Determining extension points of the power equipment and the intelligent community space, starting recursive calling, and generating an extended power equipment and an intelligent community space model;
(3) Judging whether the recursive depth of the power equipment and the smart community space is reached, if so, ending the program, and completing the modeling of the three-dimensional space model of the smart community, otherwise, continuing;
(4) And creating a Microsoft Access database to manage the power attribute data and the intelligent community attribute data, establishing real-time matching association between the spatial data and the attribute data of the power intelligent community through the public data item Object ID, realizing the integrated connection of the figures, and generating a three-dimensional model of the power intelligent community.
Further, in the first step, the positions of the power equipment and the smart community space are used as discrete points to perform triangulation network TIN based on a triangulation network growth method, and the method specifically comprises the following steps:
s1, extracting position point coordinates of power equipment and a smart community space, establishing a Pointarray for storing position points, setting a Trianglearray for storing a triangle set, and storing a Linearray for expanding an edge set;
s2, establishing an initial edge of the power equipment and the intelligent community space at the edge of the area, and adding the initial edge into an extended line set LineArray;
s3, traversing all available position points of the power equipment and the smart community space, forming an initial triangle with the initial edge, and taking the new edge as an expansion edge;
s4, judging whether the extended edge set is empty, if not, indicating that the construction of the irregular triangular network TIN is finished to obtain a triangular network set, otherwise, entering the step S5;
s5, extracting an extension edge and judging the effectiveness of the extension edge, wherein the judgment condition is as follows: each side can generate at most two triangles, if the triangle is invalid, the step S4 is returned, otherwise, the step S6 is returned;
and S6, growing and forming other triangles based on the expansion edges, traversing the point set Pointarray, judging by using the usability condition of the points, deleting unusable points from the point set Pointarray, selecting the point with the smallest included angle with the expansion edges, forming a triangle with two end points of the expansion edges, judging the effectiveness of the triangle, establishing a triangle object, and adding the triangle object into the triangle set Trianglearray.
Further, the usability determining conditions of the point in step S6 are as follows:
(1) The standby point and the two end points of the extended edge are not heavy and collinear on the same projection plane;
(2) At least one edge in the edge set adjacent to the standby point is expandable;
(3) On the same projection plane, the standby point and the third vertex of the triangle where the extended edge is located are located at two sides of the extended edge.
Furthermore, the data processing module comprises an electric power space data processing submodule, an intelligent community space data processing submodule, an electric power attribute data processing submodule and an intelligent community attribute data processing submodule.
(III) advantageous technical effects
Compared with the prior art, the invention has the following beneficial technical effects:
the electric intelligent community model building module utilizes a triangulation network growth method to carry out triangulation network TIN subdivision on positions of electric equipment and an intelligent community space as discrete points, and builds a space three-dimensional model of an electric intelligent community by taking the discrete points of the positions of the electric equipment and the intelligent community space as a basis;
managing the power attribute data and the intelligent community attribute data by creating a Microsoft Access database, establishing real-time matching association between the space data and the attribute data of the power intelligent community through a public data item Object ID, realizing the integrated connection of the figures, and generating a three-dimensional model of the power intelligent community;
the established three-dimensional model is drawn and visually displayed through the electric intelligent community model drawing module, so that the technical problem that the electric power configuration and the operation condition in an intelligent community cannot be dynamically and visually reflected in the existing two-dimensional geographic information system is solved.
Drawings
Fig. 1 is a logic block diagram of a three-dimensional visualization system suitable for an intelligent power community according to the present invention.
Detailed Description
A three-dimensional visualization system suitable for smart community of electric power, as shown in fig. 1, comprising: the data processing module is used for processing electric intelligent community data and comprises an electric power space data processing submodule, an intelligent community space data processing submodule and a data processing module, and the data processing module also comprises an electric power attribute data processing submodule and an intelligent community attribute data processing submodule;
further comprising: the electric intelligent community model building module has the function of building a three-dimensional model of the electric intelligent community by using the data of the data processing module;
the three-dimensional modeling algorithm of the electric intelligent community model building module comprises the following steps:
step S1, extracting the coordinates of the position points of the power equipment and the intelligent community space, specifically comprising the following steps:
selecting position points of power equipment and an intelligent community space obtained through actual measurement, establishing a Pointarray for storing the position points, setting a Trianglearray for storing a triangular set, and storing a Linearray for expanding an edge set;
s2, establishing an initial edge of the power equipment and the intelligent community space at the edge of the area, specifically:
firstly, traversing a position point set Pointarray, searching a space point which is at one side of an area and has the minimum X value, and recording the space point as a first point; traversing the point set PointArray to find a point closest to the first point, and recording the point as a second point; establishing a side object Line based on a first point and a second point, recording the side object Line as an initial side, and adding the initial side into an extended Line set LineArray;
s3, traversing all available position points of the power equipment and the smart community space, forming an initial triangle with the initial edge, and taking the new edge as an expansion edge; traversing the point set PointArray to find a point, wherein an included angle formed by the point and two end points of the initial edge Line is minimum, establishing a first Triangle, adding the first Triangle into the Triangle set TriangleArray, and adding two newly generated new edges serving as expansion edges into the edge set LineArray;
s4, judging whether the extended edge set is empty, if not, indicating that the construction of the irregular triangular network TIN is finished, obtaining a triangular network set, and entering the step S7, otherwise, entering the step S5;
s5, extracting an extension edge and judging the effectiveness of the extension edge, wherein the judgment condition is as follows: each side can generate at most two triangles, if the triangle is invalid, the step S4 is returned, otherwise, the step S6 is returned;
s6, forming other triangles based on the growth of the expansion edge, traversing the point set Pointarray, judging by using the availability condition of the points, deleting unavailable points from the point set Pointarray, selecting the point with the minimum included angle with the expansion edge, forming a triangle with two end points of the expansion edge, judging the validity of the triangle, establishing a triangle object, and adding the triangle object into a triangle set Trianglearray;
the usability determination conditions of the center points are as follows:
(1) The standby point and the two end points of the extended edge are not heavy and collinear on the same projection plane;
(2) At least one edge in the edge set adjacent to the standby point is expandable;
(3) On the same projection plane, the standby point and the third vertex of the triangle where the extended edge is located are located at two sides of the extended edge;
step S7, based on the position points of the power equipment and the smart community space, establishing a three-dimensional model of the smart community, and the method specifically comprises the following steps:
(1) Inputting initial parameter data of the power equipment and the intelligent community space, and generating an initial power equipment and an intelligent community space model;
(2) Determining extension points of the power equipment and the intelligent community space, starting recursive calling, and generating an extended power equipment and an intelligent community space model;
(3) Judging whether the recursion depth of the power equipment and the intelligent community space is reached, if so, ending the program, otherwise, continuing;
(4) Creating a Microsoft Access database to manage the power attribute data and the intelligent community attribute data, establishing real-time matching association between the space data and the attribute data of the power intelligent community through a public data item Object ID, realizing the integrated connection of the figures, and generating a three-dimensional model of the power intelligent community;
further comprising: the electric intelligent community model drawing module is responsible for drawing and visually displaying the model;
further comprising: the model transformation module is responsible for displaying the model in different angles, sizes, directions and modes so as to display the model information in more detail and more clearly;
further comprising: the model rendering module comprises functions of a display mode, transparency, light, blanking, atomization, fusion, texture mapping, a boundary mode and the like, and can add different effects to the display of the model;
further comprising: the model operation module mainly performs some operations on the model to achieve the purpose of mining various information in the model and displaying the information in a visual form, and has the functions of cutting, slicing, attribute query and the like;
the intelligent power community model drawing system is characterized in that the data processing module is in communication connection with the intelligent power community model building module, the intelligent power community model building module is in communication connection with the intelligent power community model drawing module, and the intelligent power community model drawing module is in communication connection with the model transformation module, the model rendering module and the model operation module respectively.