Three-dimensional precise modeling method for electric power communication equipment

By constructing the color mapping method of basic element and vertex mapping images, the problems of high threshold for manual modeling and weak sense of reality in the three-dimensional modeling of power communication equipment are solved, and efficient and accurate three-dimensional modeling and real visual effects are achieved. .

CN119478241APending Publication Date: 2025-02-18STATE GRID HEBEI ELECTRIC POWER COMPANY TRAINING CENT +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411650732.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

The prior art has problems with high threshold for manual modeling and long modeling period in the three-dimensional modeling of power communication equipment, and the vertex color of the parameterized model is usually single and has a weak sense of reality.

Method used

A three-dimensional precise modeling method of power communication equipment is adopted to realize the real visual effect of parameterized primitives by constructing basic primitives and converting them into grid primitives, and combining vertex mapping images for color mapping.

Benefits of technology

Reduce modeling costs and achieve accurate modeling, improving the real visual effect of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119478241A_ABST
    Figure CN119478241A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional precise modeling method for electric power communication equipment, which comprises the following steps of: constructing a basic primitive, converting the basic primitive into a gridding primitive based on basic primitive parameters, and obtaining a triangular patch of the gridding primitive and a corresponding triangular vertex index; the method comprises the following steps: acquiring a vertex mapping image of the electric power communication equipment, processing the vertex mapping image, constructing a color mapping set, acquiring an unshielded triangular patch, mapping the color mapping set with a triangular vertex corresponding to the unshielded triangular patch, and dyeing the triangular patch. Parametric modeling is realized according to the parameters of the equipment drawing of the electric power communication equipment, so that the modeling cost is reduced, and accurate modeling is realized; and vertex color assignment of the parameterized model is realized by adopting a photo mapping mode, so that the sense of reality of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system simulation training, and more specifically to a three-dimensional precise modeling method for power communication equipment. Background Art

[0002] Power communication equipment plays a vital role in the power system. Through efficient signal transmission and processing, they ensure the normal operation and reliable power supply of the power system. With the continuous development of technology, power communication equipment is also constantly upgraded and improved to adapt to the growing power demand and complex power network environment.

[0003] Laser scanning point cloud data modeling is a precise modeling method for three-dimensional surface models. First, the point cloud data of the modeling object can be obtained by performing multi-angle laser scanning on the modeling object. Then, the point cloud data is preprocessed by denoising, filtering, and alignment. Finally, a precise three-dimensional model of the modeling object can be generated by spatial alignment of the three-dimensional geometric facets and the point cloud data.

[0004] Parametric modeling is the process of representing the three-dimensional geometric model of power equipment with multiple standard graphics elements through a series of graphics element parameter configuration, graphics element space transformation, and geometric Boolean operations. The parametric model is stored as a parameter file. When applied, the geometric model of the three-dimensional equipment is generated into a three-dimensional model through GIM analysis and three-dimensional geometric model parameterization.

[0005] In order to achieve accurate modeling of power communication equipment, the method commonly used at present is that manual 3D modeling is based on the equipment's design drawings, on-site photos and other information, using the geometric facet construction and surface texture mapping matching modeling process in the 3D modeling software to manually create a 3D model of the equipment.

[0006] The publication number is CN118364607A, and the name is a method and system for constructing an electric power optical communication equipment model based on digital twin, characterized in that the method includes the following steps: collecting the view of the electric power optical communication equipment to be modeled, and extracting the image features of the electric power equipment from the view of the electric power optical communication equipment; obtaining the component features of each port element of the electric power optical communication equipment based on the three-dimensional model and interactive segmentation image of the port element in the pre-constructed electric power optical communication equipment port element information library; matching the image features with the component features to obtain the deployment mode of the port element in the electric power optical communication equipment to be modeled; based on the deployment mode of the port element, pasting the interactive segmentation image onto the view of the electric power equipment to be modeled, thereby realizing the model construction of the electric power optical communication equipment.

[0007] The publication number is CN111179408A, and the name is a three-dimensional modeling method and device. The method includes: obtaining an image containing a target object acquired in real time by an image acquisition device, wherein the image includes depth information; performing three-dimensional modeling on the target object according to the image of the first N frames to obtain a three-dimensional model of the initial known part of the target object; matching the three-dimensional model of the initial known part with multiple models in a model library, and determining the three-dimensional model of the initial unknown part of the target object according to the matching result; tracking the target object using images after the first N frames of images, and updating the three-dimensional model of the initial known part and / or the three-dimensional model of the initial unknown part of the target object according to the tracking result.

[0008] However, although the above method can realize modeling of power communication equipment, in actual application, there are high thresholds for manual modeling and long modeling cycles. The high threshold for manual modeling is mainly reflected in the skill requirements for modelers. Modelers need to have a deep understanding of the structure of power communication equipment, and they also need to master relevant modeling tools and techniques. This skill requirement makes the training cost of modelers high, and it takes a certain amount of time and experience accumulation. For some units with smaller scale or weaker technical strength, it is difficult to have a sufficient number of qualified modelers, which limits the development of modeling work; the vertex color of the parametric model usually uses a single color for one primitive, which is not very realistic.

[0009] Therefore, how to provide a three-dimensional modeling method for power communication equipment, dynamically generate and represent the power communication equipment with multiple customized three-dimensional graphics by targeting the characteristics of the equipment appearance structure of the power communication equipment and combining the equipment size parameters of the equipment design drawings; and also propose a method for mapping on-site equipment photo images to the surface of parameterized graphics elements to achieve a realistic visual effect of power communication equipment is a problem that technical personnel in this field urgently need to solve. Summary of the invention

[0010] In view of this, the present invention provides a three-dimensional modeling method for power communication equipment, aiming to solve the technical problem that artificial three-dimensional modeling is based on the equipment's design drawings, on-site photos and other materials, using the geometric facet construction and surface texture mapping matching modeling process in the three-dimensional modeling software to manually produce the equipment's three-dimensional model.

[0011] In order to achieve the above object, the present invention adopts the following technical solution:

[0012] A three-dimensional accurate modeling method for power communication equipment comprises the following steps:

[0013] Constructing a basic primitive, converting the basic primitive into a mesh primitive based on the basic primitive parameters, and obtaining a triangular facet of the mesh primitive and a corresponding triangular vertex index;

[0014] Obtaining a vertex mapping image of the power communication device, processing the vertex mapping image, constructing a color mapping set, obtaining unobstructed triangular facets, mapping the color mapping set to triangular vertices corresponding to the unobstructed triangular facets, and coloring the triangular facets;

[0015] The three-dimensional point cloud data of the power communication device is collected, and the three-dimensional point cloud data is associated with the triangle vertex index to sequentially obtain the spatial position of the parameterized primitive.

[0016] Furthermore, the basic graphic elements include a frustum graphic element, an offset rectangular graphic element, and a single circular hole circular plate graphic element;

[0017] The parameters of the frustum-shaped primitive include top radius, bottom radius and height;

[0018] The parameters of the offset rectangular table element include top surface length, top surface width, bottom surface length, bottom surface width, height, offset of the top surface center relative to the bottom surface center in the X direction, and offset of the top surface center relative to the bottom surface center in the Y direction;

[0019] The parameters of the single-hole circular plate primitive include a top outer radius, a bottom outer radius, an inner radius, a height, and a turning angle represented by radians.

[0020] Furthermore, the meshing of the frustum-shaped primitive is specifically as follows:

[0021] Calculate the vertex coordinate sequence of the frustum based on the parameters of the frustum primitive:

[0022] Take a vertex every 10 degrees to divide the arc, there are 36 vertices in total, let the radius be R and the height be H;

[0023] The vertex sequence of the bottom circle is as follows:

[0024] The coordinates of the 0th vertex are (BR, 0, 0), and the coordinates of the i-th vertex are (BR*cos(10*i), BR*sin(10*i), 0), where B is the vertex number of the bottom circle, and the starting vertex number B of the bottom circle is 0.

[0025] The vertex sequence of the top circle is as follows:

[0026] The coordinates of the first vertex are (TR, 0, H), and the coordinates of the i-th vertex are (TR*cos(10*i), TR*sin(10*i), H), where T is the vertex number of the top circle, and the starting vertex number of the top circle is 36;

[0027] Set the triangle vertex index sequence based on the vertex coordinate sequence:

[0028] Construct the triangle vertex index of the side of the truncated cone, and cycle through the sequence numbers i=0 to 36 in turn to form triangles A1 and B1;

[0029] The first vertex number of triangle A1 = the starting vertex number of the top circle + i, the second vertex number of triangle A1 = the starting vertex number of the top circle + i + 1, and the third vertex number of triangle A1 = the starting vertex number of the bottom circle + i;

[0030] The first vertex number of triangle B1 = the starting vertex number of the top circle + i + 1, the second vertex number of triangle B = the starting vertex number of the bottom circle + i + 1, and the third vertex number of triangle B = the starting vertex number of the bottom circle + i;

[0031] Construct the triangle vertex index of the bottom surface of the frustum, take the first vertex of the bottom surface of the frustum as the starting connection point, and connect the other middle points of the bottom surface of the frustum to form a triangular face;

[0032] Construct the triangle vertex index of the top surface of the frustum, take the first vertex of the top surface of the frustum as the starting connection point, and connect the other middle points of the top surface of the frustum to form a triangular face.

[0033] Furthermore, the meshing of the offset rectangular table element is specifically as follows:

[0034] The vertex sequence of the rectangular pyramid primitive is 8 vertices. Suppose the top length is TL, the top width is TW, the bottom length is BL, the bottom width is BW, the height is H, the X-direction offset of the top center relative to the bottom center is XOFF, and the Y-direction offset of the top center relative to the bottom center is YOFF. Construct a vertex sequence and set the triangle vertex index sequence according to the vertex sequence.

[0035] Furthermore, the meshing of the single-circular-hole circular plate element is specifically as follows:

[0036] The vertex coordinate sequence of the single-hole circular plate primitive includes the top surface inner circle vertex sequence, the top surface outer circle vertex sequence, the bottom surface inner circle vertex sequence, and the bottom surface outer circle vertex sequence. A vertex is taken every 10 degrees for arc segmentation. Each circle has 36 vertices. Let the inner circle radius be IR, the outer circle radius be OR, and the height be H. Construct the vertex coordinate sequence and set the triangle vertex index sequence according to the vertex sequence.

[0037] Furthermore, taking the center position of the power communication device as the base point, the vertex mapping image of the power communication device is obtained, the pixel reference point of the vertex mapping image is set to the lower left, and the number of pixels in the horizontal direction of the vertex mapping image is recorded as w, and the number of pixels in the vertical direction is recorded as h.

[0038] Furthermore, it also includes:

[0039] According to the image content in the vertex mapping image, four image reference points of the power communication cabinet are set, specifically:

[0040] The lower left reference point - records the pixel two-dimensional coordinates of the point as (lx, by), the upper left reference point - records the pixel two-dimensional coordinates of the point as (lx, ty), the upper right reference point - records the pixel two-dimensional coordinates of the point as (rx, ty), and the lower right reference point - records the pixel two-dimensional coordinates of the point as (rx, by).

[0041] Furthermore, the three-dimensional model of the power communication equipment is rotated on the entire z-axis so that the front of the power communication equipment is perpendicular to the y-axis and in the same direction as the positive direction of the y-axis. The geometric vertices of all basic graphics elements in the three-dimensional model of the power communication cabinet equipment are traversed to obtain the upper left vertex of the three-dimensional model of the power communication equipment.

[0042] Furthermore, the method further includes: selecting triangular facets of all basic graphic elements in the three-dimensional model of the power communication equipment, and calculating and recording triangular facets for realistic color mapping of the front face of the power communication equipment.

[0043] Furthermore, a projection plane P is created, and the vertices of the triangular faces of all parameterized primitives in the three-dimensional model of the power communication equipment are projected onto the plane P. Each vertex V of all triangular faces is judged for vertex occlusion with all triangular faces except the triangular facet in which it is located in turn. If there is a triangular facet that has an occlusion relationship with the vertex V, the vertex V does not need to be mapped to a realistic color. If there is no occlusion of the vertex V, the vertex V is recorded in the vertex array M, and the vertex V in the vertex array M is mapped to a realistic color in turn.

[0044] The above technical solution includes at least the following technical effects:

[0045] It can be seen from the above technical solutions that the present invention discloses a three-dimensional precise modeling method for power communication equipment. Compared with the prior art, the present invention can realize parametric modeling according to the parameters of the equipment drawings of the power communication equipment, thereby reducing the modeling cost and realizing precise modeling; the vertex color assignment of the parametric model is realized by photo mapping, thereby improving the realism of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0047] Figure 1It is a schematic flow chart of a method for three-dimensional precise modeling of power communication equipment according to the present invention.

[0048] Figure 2 The figure is a schematic structural diagram of a truncated cone according to the present invention.

[0049] Figure 3 The figure is a schematic structural diagram of an offset rectangular table according to the present invention.

[0050] Figure 4 The present invention is a structural schematic diagram of a single circular hole frustum plate.

[0051] Figure 5 The present invention is a schematic diagram of a three-dimensional model structure of a power communication cabinet device. DETAILED DESCRIPTION

[0052] The technical solutions in the embodiments of the present invention are described clearly and completely below. 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 are within the scope of protection of the present invention.

[0053] See attached Figure 1-5 The embodiment of the present invention discloses a three-dimensional accurate modeling method for power communication equipment, comprising the following steps:

[0054] Construct basic primitives, convert basic primitives into mesh primitives based on basic primitive parameters, and obtain the triangle facets of the mesh primitives and the corresponding triangle vertex indexes;

[0055] Obtaining a vertex mapping image of the power communication device, processing the vertex mapping image, constructing a color mapping set, obtaining unobstructed triangular facets, mapping the color mapping set to triangular vertices corresponding to the unobstructed triangular facets, and coloring the triangular facets;

[0056] The three-dimensional point cloud data of the power communication equipment is collected, and the three-dimensional point cloud data is associated with the triangle vertex index to obtain the spatial position of the parameterized primitives in sequence.

[0057] To further optimize the above technical solution, the basic graphics elements include a frustum graphics element, an offset rectangular graphics element, and a single circular hole circular plate graphics element;

[0058] The parameters of the frustum primitive include top radius, bottom radius and height;

[0059] The parameters of the offset rectangular table element include top length, top width, bottom length, bottom width, height, the offset of the top center relative to the bottom center in the X direction, and the offset of the top center relative to the bottom center in the Y direction;

[0060] The parameters of the single-hole circular plate element include the top outer radius, bottom outer radius, inner radius, height, and the turning angle expressed in radians.

[0061] In order to further optimize the above technical solution, the meshing of the frustum is specifically as follows:

[0062] Calculate the vertex coordinate sequence of the frustum based on the parameters of the frustum primitive:

[0063] Take a vertex every 10 degrees to divide the arc, there are 36 vertices in total, let the radius be R and the height be H;

[0064] The vertex sequence of the bottom circle is as follows:

[0065] The coordinates of the 0th vertex are (BR, 0, 0), and the coordinates of the i-th vertex are (BR*cos(10*i), BR*sin(10*i), 0), where B is the vertex number of the bottom circle, and the starting vertex number B of the bottom circle is 0.

[0066] The vertex sequence of the top circle is as follows:

[0067] The coordinates of the first vertex are (TR, 0, H), and the coordinates of the i-th vertex are (TR*cos(10*i), TR*sin(10*i), H), where T is the vertex number of the top circle, and the starting vertex number of the top circle is 36;

[0068] Set the triangle vertex index sequence based on the vertex coordinate sequence:

[0069] Construct the triangle vertex index of the side of the truncated cone, and cycle through the sequence numbers i=0 to 36 in turn to form triangles A1 and B1;

[0070] The first vertex number of triangle A1 = the starting vertex number of the top circle + i, the second vertex number of triangle A1 = the starting vertex number of the top circle + i + 1, and the third vertex number of triangle A1 = the starting vertex number of the bottom circle + i;

[0071] The first vertex number of triangle B1 = the starting vertex number of the top circle + i + 1, the second vertex number of triangle B = the starting vertex number of the bottom circle + i + 1, and the third vertex number of triangle B = the starting vertex number of the bottom circle + i;

[0072] Construct the triangle vertex index of the bottom surface of the frustum, take the first vertex of the bottom surface of the frustum as the starting connection point, and connect the other middle points of the bottom surface of the frustum to form a triangular face;

[0073] Construct the triangle vertex index of the top surface of the frustum, take the first vertex of the top surface of the frustum as the starting connection point, and connect the other middle points of the top surface of the frustum to form a triangular face.

[0074] In order to further optimize the above technical solution, the meshing of the offset rectangular table element is specifically as follows:

[0075] The vertex sequence of the rectangular pyramid primitive is 8 vertices. Suppose the top length is TL, the top width is TW, the bottom length is BL, the bottom width is BW, the height is H, the X-direction offset of the top center relative to the bottom center is XOFF, and the Y-direction offset of the top center relative to the bottom center is YOFF. Construct a vertex sequence and set the triangle vertex index sequence according to the vertex sequence.

[0076] In order to further optimize the above technical solution, the meshing of the single circular hole circular plate element is as follows:

[0077] The vertex coordinate sequence of the single-hole circular plate primitive includes the top surface inner circle vertex sequence, the top surface outer circle vertex sequence, the bottom surface inner circle vertex sequence, and the bottom surface outer circle vertex sequence. A vertex is taken every 10 degrees for arc segmentation. Each circle has 36 vertices. Let the inner circle radius be IR, the outer circle radius be OR, and the height be H. Construct the vertex coordinate sequence and set the triangle vertex index sequence according to the vertex sequence.

[0078] To further optimize the above technical solution, the center position of the power communication device is taken as the base point to obtain the vertex mapping image of the power communication device, the pixel reference point of the vertex mapping image is set to the lower left, and the number of pixels in the horizontal direction of the vertex mapping image is recorded as w, and the number of pixels in the vertical direction is recorded as h.

[0079] To further optimize the above technical solution, it also includes:

[0080] According to the image content in the vertex mapping image, four image reference points of the power communication cabinet are set, specifically:

[0081] The lower left reference point - records the pixel two-dimensional coordinates of the point as (lx, by), the upper left reference point - records the pixel two-dimensional coordinates of the point as (lx, ty), the upper right reference point - records the pixel two-dimensional coordinates of the point as (rx, ty), and the lower right reference point - records the pixel two-dimensional coordinates of the point as (rx, by).

[0082] In order to further optimize the above technical solution, the three-dimensional model of the power communication equipment is rotated on the entire z-axis so that the front of the power communication equipment is perpendicular to the y-axis and in the same direction as the positive direction of the y-axis. The geometric vertices of all basic graphics elements in the three-dimensional model of the power communication cabinet equipment are traversed to obtain the upper left vertex coordinates, upper right vertex coordinates, lower left vertex coordinates and lower right vertex coordinates of the three-dimensional model of the power communication equipment.

[0083] To further optimize the above technical solution, it also includes: selecting triangular facets of all basic graphic elements in the three-dimensional model of the power communication equipment, and calculating and recording triangular facets for realistic color mapping on the front side of the power communication equipment.

[0084] In order to further optimize the above technical solution, a projection plane P is created, and the vertices of the triangular facets of all parameterized primitives in the three-dimensional model of the power communication equipment are projected onto the plane P. Each vertex V of all triangular facets is judged for vertex occlusion with all triangular facets except the triangular facet in which it is located in turn. If there is a triangular facet that has an occlusion relationship with the vertex V, the vertex V does not need to be mapped to a realistic color; if there is no occlusion on the vertex V, the vertex V is recorded in the vertex array M, and the vertex V in the vertex array M is mapped to a realistic color in turn.

[0085] In order to accurately reproduce the three-dimensional model of the power communication equipment, the present invention uses basic parameter primitives such as a truncated cone, an offset rectangular cone, and a circular plate with a single circular hole to form the equipment components of the power communication equipment through operations such as splicing and space transformation:

[0086] (1) A truncated cone Figure 2 Shown

[0087] The parameters are shown in the following table

[0088]

[0089] (2) Offset rectangular platform Figure 3 Shown

[0090] The parameters are shown in the following table

[0091]

[0092] (3) Single round hole round table

[0093] The parameters are shown in the following table

[0094]

[0095] 5.2 Step 2: Methods for converting parametric primitives into meshed geometric primitives

[0096] In order to display the parametric primitives, it is necessary to generate the corresponding meshed geometric primitives according to the parameters of the parametric primitives. The method is as follows:

[0097] 5.2.1 Meshing Method of Frustum Cone Element

[0098] (1) Calculate the vertex coordinate sequence of the truncated cone based on the primitive parameters

[0099] The vertex sequence of the truncated cone is divided into arcs by taking a vertex every 10 degrees. There are 36 vertices in total. Let the radius be R and the height be H.

[0100] The vertex sequence of the bottom circle is as follows:

[0101] The coordinates of the 0th vertex are (BR, 0, 0);

[0102] The coordinates of the i-th vertex are (BR*cos(10*i),BR*sin(10*i),0);

[0103] Record the starting vertex number B of the bottom circle as 0;

[0104] The vertex sequence of the top circle is as follows:

[0105] The coordinates of the first vertex are (TR, 0, H);

[0106] The coordinates of the i-th vertex are (TR*cos(10*i),TR*sin(10*i),H);

[0107] Record the starting vertex number T of the top circle as 36.

[0108] (2) Set the triangle vertex index sequence according to the vertex sequence

[0109] a. First set the triangle vertex index on the side of the frustum

[0110] Cycle sequence number i=0 to 36 in sequence;

[0111] Forming triangle A:

[0112] The first vertex number of triangle A = the starting vertex number of the top circle + i;

[0113] The second vertex number of triangle A = the starting vertex number of the top circle + i + 1;

[0114] The third vertex number of triangle A = the starting vertex number of the base circle + i;

[0115] To form triangle B:

[0116] The first vertex number of triangle B = the starting vertex number of the top circle + i + 1;

[0117] The second vertex number of triangle B = the starting vertex number of the base circle + i + 1;

[0118] The third vertex number of triangle B = the starting vertex number of the base circle + i;

[0119] End the loop.

[0120] b. Then set the triangle vertex index of the bottom surface of the frustum

[0121] Take the first vertex of the bottom surface of the truncated cone as the starting connection point, and connect the other middle points of the bottom surface of the truncated cone to form a triangular face, as follows:

[0122] Cycle sequence number i=1 to 36 in sequence;

[0123] Forming triangle A:

[0124] The first vertex number of triangle A = 0;

[0125] The second vertex number of triangle A = the starting vertex number of the base circle + i + 1;

[0126] The third vertex number of triangle A = the starting vertex number of the base circle + i + 2;

[0127] End the loop.

[0128] c. Then set the triangle vertex index of the top surface of the frustum

[0129] Take the first vertex of the top surface of the frustum as the starting connection point, and connect the other middle points of the top surface of the frustum to form a triangular face, as follows:

[0130] Cycle sequence number i=1 to 35 in sequence;

[0131] Forming triangle A:

[0132] The first vertex number of triangle A = 36;

[0133] The second vertex number of triangle A = the starting vertex number of the top circle + i + 1;

[0134] The third vertex number of triangle A = the starting vertex number of the top circle + i + 2;

[0135] End the loop.

[0136] 5.2.2 Meshing Method for Offset Rectangular Table Element

[0137] (1) Calculate the vertex coordinate sequence of the offset cuboid based on the primitive parameters

[0138] The vertex sequence of the cuboid has a total of 8 vertices. Suppose the length of the top surface is TL, the width of the top surface is TW, the length of the bottom surface is BL, the width of the bottom surface is BW, the height is H, the X-direction offset of the center of the top surface relative to the center of the bottom surface is XOFF, and the Y-direction offset of the center of the top surface relative to the center of the bottom surface is.

[0139] The vertex sequence is as follows:

[0140] The coordinates of the first vertex are (BL / 2, BW / 2, 0);

[0141] The coordinates of the second vertex are (-BL / 2, BW / 2, 0);

[0142] The coordinates of the third vertex are (-BL / 2, -BW / 2, 0);

[0143] The coordinates of the fourth vertex are (BL / 2, -BW / 2, 0);

[0144] The coordinates of the fifth vertex are (TL / 2+XOFF, TW / 2+YOFF, H);

[0145] The coordinates of the sixth vertex are (-TL / 2+XOFF, TW / 2+YOFF, H);

[0146] The coordinates of the 7th vertex are (-TL / 2+XOFF, -TW / 2+YOFF, H);

[0147] The coordinates of the 8th vertex are (TL / 2+XOFF, -TW / 2+YOFF, H);

[0148] (3) Set the triangle vertex index sequence according to the vertex sequence

[0149] The vertex numbers of triangle 1 on the top surface are (0, 1, 2);

[0150] The vertex numbers of triangle 2 on the top surface are (0, 2, 3);

[0151] The vertex numbers of triangle 1 on the lower top surface are (4, 5, 6);

[0152] The vertex numbers of the upper top triangle 2 are (4, 6, 7);

[0153] The vertex numbers of triangle 1 on the left side are (1, 2, 6);

[0154] The vertex numbers of triangle 2 on the left side are (1, 6, 5);

[0155] The vertex numbers of triangle 1 on the right side are (0, 3, 7);

[0156] The vertex numbers of triangle 2 on the right side are (0, 7, 9);

[0157] The vertex numbers of front side triangle 1 are (3, 2, 6);

[0158] The vertex numbers of the front side triangle 2 are (3, 6, 7);

[0159] The vertex numbers of the rear side triangle 1 are (0, 1, 5);

[0160] The vertex numbers of the rear side triangle 2 are (0, 5, 4);

[0161] 5.2.3 Meshing method of single circular hole frustum plate

[0162] Let the top outer radius be TR, the bottom outer radius be OR, and the inner radius be IR.

[0163] (1) Calculate the vertex coordinate sequence of the single-hole frustum plate according to the primitive parameters

[0164] The vertex coordinate sequence of the single-circular-hole frustum plate includes a top surface inner circle vertex sequence, a top surface outer circle vertex sequence, a bottom surface inner circle vertex sequence, and a bottom surface outer circle vertex sequence.

[0165] Take a vertex every 10 degrees to divide the arc. Each circle has 36 vertices. Let the inner circle radius be IR, the outer circle radius be OR, and the height be H.

[0166] The vertex sequence of the inner circle of the base is as follows:

[0167] The coordinates of the 0th vertex are (IR, 0, 0);

[0168] The coordinates of the i-th vertex are (IR*cos(10*i),IR*sin(10*i),0);

[0169] Record the starting vertex number B of the inner circle of the bottom surface as 0;

[0170] The vertex sequence of the outer circle of the bottom surface is as follows:

[0171] The coordinates of the 0th vertex are (OR, 0, 0);

[0172] The coordinates of the i-th vertex are (OR*cos(10*i),OR*sin(10*i),0);

[0173] Record the starting vertex number B of the outer circle of the bottom surface as 36;

[0174] The vertex sequence of the inner circle of the top surface is as follows:

[0175] The coordinates of the 0th vertex are (OR, 0, H);

[0176] The coordinates of the i-th vertex are (IR*cos(10*i),IR*sin(10*i),H);

[0177] Record the starting vertex number B of the inner circle of the top surface as 72;

[0178] The vertex sequence of the outer circle of the top surface is as follows:

[0179] The coordinates of the 0th vertex are (OR, 0, H);

[0180] The coordinates of the i-th vertex are (OR*cos(10*i),OR*sin(10*i),H);

[0181] Record the starting vertex number B of the top surface outer circle as 108.

[0182] (2) Steps to set the triangle vertex index sequence according to the vertex sequence

[0183] a. The triangle vertex index of the inner circle side

[0184] Cycle sequence number i=0 to 36 in sequence;

[0185] Forming triangle A:

[0186] The first vertex number of triangle A = the starting vertex number of the inner circle of the top surface + i; the second vertex number of triangle A = the starting vertex number of the inner circle of the top surface + i + 1; the third vertex number of triangle A = the starting vertex number of the inner circle of the bottom surface + i; forming triangle B:

[0187] The first vertex number of triangle B = the starting vertex number of the inner circle of the top surface + i + 1; the second vertex number of triangle B = the starting vertex number of the inner circle of the bottom surface + i + 1; the third vertex number of triangle B = the starting vertex number of the inner circle of the bottom surface + i; end the loop.

[0188] b. Triangle vertex index of the outer circle side

[0189] Cycle sequence number i=0 to 36 in sequence;

[0190] Forming triangle A:

[0191] The first vertex number of triangle A = the starting vertex number of the outer circle of the top surface + i; the second vertex number of triangle A = the starting vertex number of the outer circle of the top surface + i + 1; the third vertex number of triangle A = the starting vertex number of the outer circle of the bottom surface + i; forming triangle B:

[0192] The first vertex number of triangle B = the starting vertex number of the outer circle of the top surface + i + 1. The second vertex number of triangle B = the starting vertex number of the outer circle of the bottom surface + i + 1. The third vertex number of triangle B = the starting vertex number of the outer circle of the bottom surface + i; end the loop.

[0193] c. The triangle vertex index of the top ring

[0194] Cycle sequence number i=0 to 36 in sequence;

[0195] Forming triangle A:

[0196] The first vertex number of triangle A = the starting vertex number of the inner circle of the top surface + i; the second vertex number of triangle A = the starting vertex number of the inner circle of the top surface + i + 1;

[0197] The third vertex number of triangle A = the starting vertex number of the outer circle of the top surface + i;

[0198] To form triangle B:

[0199] The first vertex number of triangle B = the starting vertex number of the inner circle of the top surface + i + 1;

[0200] The second vertex number of triangle B = the starting vertex number of the outer circle of the top surface + i + 1;

[0201] The third vertex number of triangle B = the starting vertex number of the outer circle of the top surface + i;

[0202] End the loop.

[0203] d. The triangle vertex index of the bottom ring

[0204] Cycle sequence number i=0 to 36 in sequence;

[0205] Forming triangle A:

[0206] The first vertex number of triangle A = the starting vertex number of the inner circle of the base + i;

[0207] The second vertex number of triangle A = the starting vertex number of the inner circle of the base + i + 1;

[0208] The third vertex number of triangle A = the starting vertex number of the outer circle of the base + i;

[0209] To form triangle B:

[0210] The first vertex number of triangle B = the starting vertex number of the inner circle of the base + i + 1;

[0211] The second vertex number of triangle B = the starting vertex number of the outer circle of the base + i + 1;

[0212] The third vertex number of triangle B = the starting vertex number of the outer circle of the base + i;

[0213] End the loop.

[0214] 5.3 Step 3: Parametric primitive vertex realistic color mapping method

[0215] The rendering of parameterized primitives usually adopts a solid color mode. In order to realize the realistic display of power communication equipment, the present invention adopts the following method to realize the color mapping of the vertex of parameterized primitives of the photo image of power communication equipment taken on site, so as to improve the realism of the display. The specific steps are as follows:

[0216] (1) Move the camera to the center of the front outer surface of the power communication cabinet, retreat a certain distance and take a vertex mapping image of the front of the communication cabinet.

[0217] (2) Export the vertex mapping image from the camera, set the pixel reference point of the vertex mapping image to the lower left, and record the number of pixels in the horizontal direction of the vertex mapping image as w and the number of pixels in the vertical direction as h.

[0218] (3) According to the image content in the vertex mapping image, four image reference points of the power communication cabinet are manually set and recorded as follows:

[0219] The lower left reference point on the front of the cabinet - record the pixel two-dimensional coordinates of this point as (lx, by);

[0220] The upper left reference point on the front of the cabinet - record the pixel two-dimensional coordinates of this point as (lx, ty);

[0221] The upper right reference point on the front of the cabinet - record the pixel two-dimensional coordinates of this point as (rx, ty);

[0222] The reference point on the lower right side of the cabinet front - record the pixel two-dimensional coordinates of this point as (rx, by);

[0223] (4) Rotate the three-dimensional model of the power communication cabinet equipment along the z-axis so that the front of the power communication cabinet equipment is perpendicular to the y-axis and in the same direction as the positive direction of the y-axis, such as Figure 5 Shown

[0224] (5) Traverse all the geometric vertices of the parametric primitives in the three-dimensional model of the power communication cabinet equipment, and obtain the maximum X coordinate value Xmax, the minimum X coordinate value Xmin, the maximum Y coordinate value Ymax, the minimum Y coordinate value Ymin, the maximum Z coordinate value Zmax, and the minimum Z coordinate value Zmin of the three-dimensional model of the power communication cabinet. Then the coordinates of the upper left vertex on the front of the power communication cabinet are (Xmin, Ymin, Zmax), the coordinates of the upper right vertex are (Xmax, Ymin, Zmax), the coordinates of the lower left vertex are (Xmin, Ymin, Zmmin), and the coordinates of the lower right vertex are (Xmax, Ymin, Zmin).

[0225] (6) Select all the triangular faces of the parametric primitives in the three-dimensional model of the power communication cabinet equipment, and calculate and record the triangular faces on the front of the cabinet equipment that need to be realistically colored. The specific steps are as follows:

[0226] 6-1 Create a projection plane P. Plane P is perpendicular to the Y axis. Plane P intersects the Y axis at point Py. The Y coordinate of Py is greater than Ymax.

[0227] 6-2 Project the vertices of the triangular facets of all parametric primitives in the three-dimensional model of the power communication equipment onto plane P. Suppose the three-dimensional vertex coordinates of vertex A before projection are (Ax, Ay, Az), then the coordinates after projection to plane P are (Ax, Py, Az), and record the projection depth (the distance from the projection point to the projection surface) S as Py-Ay.

[0228] 6-3 Each vertex V of all triangles is checked for vertex occlusion with all triangles except the triangle where it is located. If there is a triangle that has an occlusion relationship with vertex V, vertex V does not need to be mapped to a realistic color. If vertex V is not occluded, vertex V is recorded in the vertex array M.

[0229] The steps to determine whether there is an occlusion relationship between vertex V (Vx, Vy, Vz) and triangle ABC (A, B, C are the three vertices of the triangle) in the Y-axis direction are as follows:

[0230] 6-3-1 The coordinates of the projection point Y of vertex V on the P plane are (Vx, Py, Vz), and the projection depth Vd is Py-Vy; the projection points of the three vertices A (Ax, Ay, Az), B (Bx, By, Bz), and C (Cx, Cy, Cz) of the triangle ABC on the P plane are D (Ax, Py, Az), E (Bx, Py, Bz), and F (Cx, Py, Cz), and the projection depth values ​​are Dp, Ep, and Fp respectively.

[0231] 6-3-2 Calculate the distances YD, YE and YF from point Y to point D, point E and point F, and the distances DE, EF and FD from point D to point E, point E to point F and point F to point D respectively, and compare the sizes of YD+YE+YF and DE+EF+FD. If YD+YE+YF is greater than DE+EF+FD, the projected point Y is not in the projected triangle DEF, so there is no occlusion relationship between the vertex V and the triangle ABC in the Y-axis direction; if YD+YE+YF is greater than DE+EF+FD, it is necessary to continue 6-3-3 to further determine whether there is occlusion between the vertex V and the triangle.

[0232] 6-3-3 Connect vertex V and projection point Y to form straight line VY, calculate the intersection point K of plane ABC with straight line VY and three points ABC, and the coordinates of K are (Kx, Ky, Kz); compare the sizes of Py-Ky and Py-Vy. If Py-Ky is greater than Py-Vy, there is occlusion between vertex V and the triangle face, otherwise there is no occlusion between vertex V and the triangle face.

[0233] 6-4 Perform realistic color mapping on the vertex V in the vertex array M in turn. The coordinates of vertex V are (Vx, Vy, Vz). The pixel coordinates of the color mapping corresponding to vertex V are P. The X coordinate of the pixel of P is lx+(rx-lx)*(Vx-Xmin) / (Xmax-Xmin); the Y coordinate of the pixel of P is by+(ty-by)*

[0234] (Vy-Ymin) / (Ymax-Ymin); After calculating the pixel coordinates of the color map, the color value of the corresponding pixel is taken from the color map image and recorded in the color list corresponding to the vertex V.

[0235] The color mapping method on the back, left, and right sides of the 6-5 power communication cabinet is the same as the front mapping method.

[0236] A three-dimensional precise modeling method for power communication equipment designed according to the present invention does not require modeling personnel, and parametric modeling is realized according to the parameters of the equipment drawings of the power communication equipment, thereby reducing the modeling cost and realizing precise modeling; the vertex color assignment of the parametric model is realized by using photo mapping, thereby improving the realism of the equipment.

[0237] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0238] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A three-dimensional accurate modeling method for power communication equipment, characterized in that: The following steps are involved: Constructing a basic primitive, converting the basic primitive into a mesh primitive based on the basic primitive parameters, and obtaining a triangular facet of the mesh primitive and a corresponding triangular vertex index; Obtaining a vertex mapping image of the power communication device, processing the vertex mapping image, constructing a color mapping set, obtaining unobstructed triangular facets, mapping the color mapping set to triangular vertices corresponding to the unobstructed triangular facets, and coloring the triangular facets; The three-dimensional point cloud data of the power communication device is collected, and the three-dimensional point cloud data is associated with the triangle vertex index to sequentially obtain the spatial position of the parameterized primitive.

2. A three-dimensional accurate modeling method for power communication equipment according to claim 1, characterized in that: The basic graphic elements include a frustum graphic element, an offset rectangular graphic element and a single circular hole circular plate graphic element; The parameters of the frustum primitive include top radius, bottom radius and height; The parameters of the offset rectangular table element include top surface length, top surface width, bottom surface length, bottom surface width, height, offset of the top surface center relative to the bottom surface center in the X direction, and offset of the top surface center relative to the bottom surface center in the Y direction; The parameters of the single-hole circular plate primitive include a top outer radius, a bottom outer radius, an inner radius, a height, and a turning angle represented by radians.

3. The three-dimensional accurate modeling method of power communication equipment according to claim 2 is characterized in that: The meshing of the frustum primitive is specifically as follows: Calculate the vertex coordinate sequence of the frustum based on the parameters of the frustum primitive: Take a vertex every 10 degrees to divide the arc, there are 36 vertices in total, let the radius be R and the height be H; The vertex sequence of the bottom circle is as follows: The coordinates of the 0th vertex are (BR, 0, 0), and the coordinates of the i-th vertex are (BR*cos(10*i), BR*sin(10*i), 0), where B is the vertex number of the bottom circle, and the starting vertex number B of the bottom circle is 0. The vertex sequence of the top circle is as follows: The coordinates of the first vertex are (TR, 0, H), and the coordinates of the i-th vertex are (TR*cos(10*i), TR*sin(10*i), H), where T is the vertex number of the top circle, and the starting vertex number of the top circle is 36; Set the triangle vertex index sequence based on the vertex coordinate sequence: Construct the triangle vertex index of the side of the truncated cone, and cycle through the sequence numbers i=0 to 36 to form triangles A1 and B1; The first vertex number of triangle A1 = the starting vertex number of the top circle + i, the second vertex number of triangle A1 = the starting vertex number of the top circle + i + 1, and the third vertex number of triangle A1 = the starting vertex number of the bottom circle + i; The first vertex number of triangle B1 = the starting vertex number of the top circle + i + 1, the second vertex number of triangle B = the starting vertex number of the bottom circle + i + 1, and the third vertex number of triangle B = the starting vertex number of the bottom circle + i; Construct the triangle vertex index of the bottom surface of the frustum, take the first vertex of the bottom surface of the frustum as the starting connection point, and connect the other middle points of the bottom surface of the frustum to form a triangular face; Construct the triangle vertex index of the top surface of the frustum, take the first vertex of the top surface of the frustum as the starting connection point, and connect the other middle points of the top surface of the frustum to form a triangular face.

4. The three-dimensional accurate modeling method of power communication equipment according to claim 2 is characterized in that: The meshing of the offset rectangular table element is specifically as follows: The vertex sequence of the rectangular pyramid primitive is 8 vertices. Suppose the top length is TL, the top width is TW, the bottom length is BL, the bottom width is BW, the height is H, the X-direction offset of the top center relative to the bottom center is XOFF, and the Y-direction offset of the top center relative to the bottom center is YOFF. Construct a vertex sequence and set the triangle vertex index sequence according to the vertex sequence.

5. The three-dimensional accurate modeling method of power communication equipment according to claim 1, characterized in that: The meshing of the single circular hole circular plate element is specifically as follows: The vertex coordinate sequence of the single-hole circular plate primitive includes the top surface inner circle vertex sequence, the top surface outer circle vertex sequence, the bottom surface inner circle vertex sequence, and the bottom surface outer circle vertex sequence. A vertex is taken every 10 degrees for arc segmentation. Each circle has 36 vertices. Let the inner circle radius be IR, the outer circle radius be OR, and the height be H. Construct the vertex coordinate sequence and set the triangle vertex index sequence according to the vertex sequence.

6. The three-dimensional accurate modeling method of power communication equipment according to claim 1, characterized in that: Taking the center position of the power communication device as the base point, obtain the vertex mapping image of the power communication device, set the pixel reference point of the vertex mapping image to the lower left, and record the number of pixels in the horizontal direction of the vertex mapping image as w and the number of pixels in the vertical direction as h.

7. A three-dimensional accurate modeling method for power communication equipment according to claim 6, characterized in that: Also includes: According to the image content in the vertex mapping image, four image reference points of the power communication cabinet are set, specifically: The lower left reference point - records the pixel two-dimensional coordinates of the point as (lx, by), the upper left reference point - records the pixel two-dimensional coordinates of the point as (lx, ty), the upper right reference point - records the pixel two-dimensional coordinates of the point as (rx, ty), and the lower right reference point - records the pixel two-dimensional coordinates of the point as (rx, by).

8. A three-dimensional accurate modeling method for power communication equipment according to claim 7, characterized in that: The three-dimensional model of the power communication equipment is rotated on the entire z-axis so that the front of the power communication equipment is perpendicular to the y-axis and in the same direction as the positive direction of the y-axis. The geometric vertices of all basic graphics elements in the three-dimensional model of the power communication cabinet equipment are traversed to obtain the upper left vertex coordinates, upper right vertex coordinates, lower left vertex coordinates and lower right vertex coordinates of the three-dimensional model of the power communication equipment.

9. A three-dimensional accurate modeling method for power communication equipment according to claim 8, characterized in that: Also includes: Select the triangular patches of all basic graphics elements in the three-dimensional model of the power communication equipment, and calculate and record the triangular patches for realistic color mapping on the front side of the power communication equipment.

10. The three-dimensional accurate modeling method of power communication equipment according to claim 1, characterized in that: A projection plane P is created, and the vertices of the triangular facets of all parameterized primitives in the three-dimensional model of the power communication equipment are projected onto the plane P. Each vertex V of all triangular facets is judged for vertex occlusion with all triangular facets except the triangular facet where it is located. If there is a triangular facet that has an occlusion relationship with the vertex V, the vertex V does not need to be mapped to a realistic color. If there is no occlusion of the vertex V, the vertex V is recorded in the vertex array M, and the vertex V in the vertex array M is mapped to a realistic color in turn.

Citation Information

Patent Citations

  • Three-dimensional modeling method and device

    CN111179408A

  • Method and system for constructing electric power optical communication equipment model based on digital twinning

    CN118364607A