Method, apparatus, electronic device and storage medium for generating a planar unfolded graph

By generating the plane expansion diagram of the cable tray in the nuclear power plant engineering design, the problem of unclear dimension marking in the three-dimensional spatial design drawing is solved, and the clear labeling and construction accuracy of the cable tray on the two-dimensional plane is achieved.

CN119397632BActive Publication Date: 2025-07-25NUCLEAR POWER INSTITUTE OF CHINA +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411314869.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2025-07-25
Estimated Expiration
2044-09-20

AI Technical Summary

Technical Problem

In nuclear power plant engineering design, the dimension marking of the cable tray in the three-dimensional spatial design drawing is not clear enough and difficult to display intuitively, which increases the possibility of construction difficulty and error.

Method used

By obtaining the data of the cable tray and curved wall in the three-dimensional design drawing, determining the projected wall, and using the planar projection method to calculate the segmented arc length and total arc length of the cable tray on the projected wall, generating a plane expansion pattern of the cable tray.

Benefits of technology

It realizes clear labeling of cable trays on two-dimensional planes, reduces construction errors, and improves construction accuracy and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119397632B_ABST
    Figure CN119397632B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, electronic device and storage medium for generating a planar unfolded graph. The method of the present application obtains the installation data of a cable tray and the wall data of a curved wall in a three-dimensional design drawing; on the curved wall, determines the projection wall surface on which the cable tray is to be projected; determines the center position and radius of the tangent circle of the projection wall surface on the horizontal section; projects the cable tray onto the projection wall surface, calculates the segmented arc length of each cable tray projected onto the projection wall surface, and the total arc length of the cable tray projected onto the projection wall surface; generates a planar unfolded graph corresponding to the cable tray according to the multiple segmented arc lengths, the total arc length and the dimension data of the cable tray. Unfolding the three-dimensional layout model of the approximate annular cable tray and the curved wall where the bracket takes root to generate a planar projection relationship diagram of the curved wall and the cable tray unfolded along the curve is helpful for more accurately positioning and installing the bracket during the construction process and ensuring the construction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing technology, and in particular, to a method, device, electronic device, and storage medium for generating a planar unfolded graph. Background Art

[0002] During the engineering design process of nuclear power plants, since the main wall surface of the nuclear island building is an arc-shaped curved surface, designers need to use the curved wall as a reference to carry out a large number of cable tray designs, that is, the cable trays are arranged around the curved wall, and a large number of brackets of the trays finally take root on the curved wall. Therefore, designers usually use 3D modeling software to construct a 3D space model of the cable tray. However, directly annotating data such as the dimensions of the cable tray in the 3D space design drawing needs to be carried out from different perspectives, which may lead to unclear or difficult-to-align annotation information, and the annotation information is difficult to display intuitively, with a large parsing difficulty, thus increasing the construction difficulty and the possibility of errors. Summary of the Invention

[0003] In view of this, this application provides a method, device, electronic device, and storage medium for generating a planar unfolded graph, mainly aiming to solve the technical problem that directly annotating data such as the dimensions of the cable tray in the 3D space design drawing in the prior art may lead to unclear or difficult-to-align annotation information, and the annotation information is difficult to display intuitively, with a large parsing difficulty.

[0004] According to the first aspect of this application, a method for generating a planar unfolded graph is provided. The method includes:

[0005] Obtain the installation data of the cable tray and the wall data of the curved wall in the 3D design drawing, where the installation data includes the installation position of the cable tray and the positions of multiple first endpoints and multiple second endpoints of multiple cable trays in the cable tray;

[0006] Determine the projection wall surface on which the cable tray is to be projected on the curved wall according to the installation position of the cable tray;

[0007] Determine the center position and radius of the tangent circle of the projection wall surface on the horizontal section according to the wall data of the curved wall;

[0008] Project the cable tray onto the projection wall surface by the planar projection method, and calculate the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the positions of the first endpoints and second endpoints of each cable tray in the cable tray, the center position of the tangent circle, and the radius;

[0009] Generate a planar unfolded graph corresponding to the cable tray according to the multiple segmented arc lengths, the total arc length, and the dimension data of the cable tray.

[0010] Optionally, the wall data includes the wall shape, wall diameter, and wall thickness. The steps of determining the center position and radius of the tangent circle of the projection wall surface on the horizontal section according to the wall data of the curved wall specifically include:

[0011] Judge whether the curved wall is a cylinder according to the wall shape;

[0012] If the curved wall is a cylinder, cut it along the direction perpendicular to the axis of the curved wall to obtain the cross-section of the curved wall, and on the cross-section, obtain the tangent circle of the projection wall surface;

[0013] Determine the center position and radius of the tangent circle according to the wall diameter and wall thickness;

[0014] If the curved wall is not a cylinder, obtain multiple first coordinate values of multiple non-repeating coordinate points on the projection wall surface, where the z-axis coordinate value in the first coordinate value is 0;

[0015] Determine the center position and radius of the tangent circle of the projection wall surface according to the multiple first coordinate values of the multiple coordinate points.

[0016] Optionally, the steps of determining the center position and radius of the tangent circle of the projection wall surface according to the multiple first coordinate values of the multiple coordinate points specifically include:

[0017] Determine the center position of the tangent circle of the projection wall surface on the cross-section according to the multiple coordinate points by the perpendicular bisector method;

[0018] Obtain the second coordinate value of the center of the tangent circle;

[0019] Calculate the radius of the tangent circle according to any first coordinate value and the second coordinate value.

[0020] Optionally, by the plane projection method, project the cable tray onto the projection wall surface. The steps of calculating the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the first endpoint position, second endpoint position, center position of the tangent circle, and radius of each cable tray in the cable tray specifically include:

[0021] Project the cable tray onto the projection wall surface by the plane projection method;

[0022] With the center of the tangent circle as the origin, construct a parallel line to the x-axis along the x-axis direction;

[0023] Determine the projection angle formed by each cable tray projected onto the projection wall surface according to the center position, the parallel line to the x-axis, the first endpoint position, and the second endpoint position;

[0024] Multiply the projection angle of each cable tray by the radius of the section circle to obtain the segmented arc length formed by projecting each projected tray onto the projection wall;

[0025] Add up the segmented arc lengths of multiple cable trays to obtain the total arc length formed by projecting the cable bridge onto the projection wall.

[0026] Optionally, the steps of determining the projection angle formed by projecting each cable tray onto the projection wall according to the center position, the x-axis parallel line, the first endpoint position, and the second endpoint position specifically include:

[0027] For any cable tray, connect the center of the circle and the first endpoint to form a first auxiliary line, and connect the center of the circle and the second endpoint to form a second auxiliary line;

[0028] Obtain the first phase angle between the x-axis parallel line and the first auxiliary line, and the second phase angle between the x-axis parallel line and the second auxiliary line;

[0029] Subtract the first phase angle from the second phase angle to obtain the projection angle of the cable tray.

[0030] Optionally, after adding up the segmented arc lengths of multiple cable trays to obtain the total arc length formed by projecting the cable bridge onto the projection wall, it further includes:

[0031] Determine the starting endpoint position of the cable bridge according to multiple first endpoint positions;

[0032] Determine the ending endpoint position of the cable bridge according to multiple second endpoint positions;

[0033] Calculate the curved surface arc length formed by projecting the cable bridge onto the projection wall according to the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle;

[0034] Compare the total arc length with the curved surface arc length. If the total arc length is inconsistent with the curved surface arc length, send an error prompt message to the designer terminal.

[0035] Optionally, the steps of calculating the curved surface arc length formed by projecting the cable bridge onto the projection wall according to the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle specifically include:

[0036] Connect the center of the circle and the starting endpoint to form a third auxiliary line;

[0037] Connect the center of the circle and the ending endpoint to form a fourth auxiliary line;

[0038] Obtain the third phase angle between the x-axis parallel line and the third auxiliary line, and the fourth phase angle between the x-axis parallel line and the fourth auxiliary line;

[0039] The projection included angle of the cable tray is obtained by subtracting the third phase angle from the fourth phase angle;

[0040] The curved surface arc length formed by projecting the cable tray onto the projection wall surface is obtained by multiplying the projection included angle of the cable tray by the radius of the section circle.

[0041] According to a second aspect of the present application, there is provided a device for generating a planar unfolded graph, the device comprising:

[0042] An acquisition module, configured to acquire the installation data of the cable tray and the wall data of the curved surface wall in the three-dimensional design drawing, wherein the installation data includes the installation position of the cable tray and the positions of a plurality of first end points and a plurality of second end points of a plurality of cable trays in the cable tray;

[0043] A first determination module, configured to determine, on the curved surface wall, the projection wall surface onto which the cable tray is to be projected according to the installation position of the cable tray;

[0044] A second determination module, configured to determine the center position and radius of the section circle of the projection wall surface on the horizontal section according to the wall data of the curved surface wall;

[0045] A projection module, configured to project the cable tray onto the projection wall surface by a planar projection method; a calculation module, configured to calculate the segmented arc lengths of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the positions of the first end point, the second end point, the center position of the section circle, and the radius of each cable tray in the cable tray;

[0046] A generation module, configured to generate a planar unfolded graph corresponding to the cable tray according to the plurality of segmented arc lengths, the total arc length, and the dimension data of the cable tray.

[0047] According to a third aspect of the present application, there is provided an electronic device, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the steps of the method according to any one of the first aspects when executing the computer program.

[0048] According to a fourth aspect of the present application, there is provided a readable storage medium, on which a computer program is stored, and the computer program implements the steps of the method according to any one of the first aspects when being executed by a processor.

[0049] With the above technical solution, a method, apparatus, electronic device, and storage medium for generating a planar unfolded graph provided by the present application are as follows. Specifically, based on the installation position of the cable tray in the three-dimensional design drawing of the nuclear power plant, the arc-shaped curved wall closest to the cable tray is determined as the projection wall, and the cable tray is projected onto the projection wall using the planar projection method. Subsequently, the center and radius of the tangent circle of the projection wall in the planar dimension are determined. Combining the positions of the first endpoint and the second endpoint of each tray segment, the segmented arc length formed by projecting each tray segment in the cable tray onto the curved wall and the total arc length formed by projecting the cable tray onto the curved wall are calculated. Furthermore, using each segmented arc length, the total curved surface arc length, the size data of the cable tray, and the support data as graphic data, a two-dimensional graph of the cable tray after planar unfolding is drawn. In this way, the three-dimensional layout model of the approximately annular cable tray and the curved wall where the support takes root are unfolded to generate a planar projection relationship graph of the curved wall and the cable tray unfolded along the curved surface, and the support data is marked in the planar projection relationship graph, enabling construction personnel to more intuitively understand the actual layout of the cable tray, support points, and curved wall, which helps to more accurately position and install the support during construction and ensure construction accuracy.

[0050] The above description is only an overview of the technical solution of the present application. In order to be able to more clearly understand the technical means of the present application, it can be implemented in accordance with the content of the specification. And in order to make the above and other purposes, features, and advantages of the present application more obvious and understandable, the following specific embodiments of the present application are specifically described. Brief Description of the Drawings

[0051] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. And throughout the drawings, the same reference numerals are used to represent the same components. In the drawings:

[0052] Figure 1 It shows a schematic flowchart of a method for generating a planar unfolded graph provided by an embodiment of the present application;

[0053] Figure 2 It shows a schematic flowchart of another method for generating a planar unfolded graph provided by an embodiment of the present application;

[0054] Figure 3 It shows a top view of the horizontal projection of any cable tray segment in the cable tray provided by an embodiment of the present application onto the projection wall;

[0055] Figure 4 It shows a top view of the projection unfolding model of the cable tray in the three-dimensional design drawing provided by an embodiment of the present application;

[0056] Figure 5 It shows the plane development graph of the cable tray provided by the embodiment of the present application;

[0057] Figure 6 It shows the southwest axonometric view of the projection development model of the cable tray in the 3D design drawing provided by the embodiment of the present application;

[0058] Figure 7 It shows the structural schematic diagram of a generating device for a plane development graph provided by the embodiment of the present application. Detailed implementation manners

[0059] Hereinafter, exemplary embodiments of the present application will be described in more detail with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present application can be more thoroughly understood and the scope of the present application can be completely conveyed to those skilled in the art.

[0060] The embodiment of the present application provides a method for generating a plane development graph. As Figure 1 shown, the method includes:

[0061] S101. Obtain the installation data of the cable tray in the 3D design drawing and the wall data of the curved wall, where the installation data includes the installation position of the cable tray and the positions of multiple first end points and multiple second end points of multiple cable trays in the cable tray.

[0062] The method for generating a plane development graph provided by the embodiment of the present application is mainly applied to the nuclear power plant engineering design scenario. The execution subject of the embodiment of the present application is a device or equipment capable of generating a plane development graph of the cable tray model in the 3D design drawing, and can be specifically set on the server side. The server converts the 3D space model of the cable tray in the 3D design drawing, which is in an arc shape, into the drawing information of a 2D plane, and then draws the 2D plane graph of the cable tray and its projected curved wall surface based on the drawing information.

[0063] Among them, the 3D design drawing is a 3D space design drawing designed by a designer for a nuclear power plant, and the cable tray is a cable tray model structure arranged in 3D around an arc-shaped curved wall in the 3D space design drawing. In order to facilitate subsequent dimension marking and information construction, the present application proposes to expand the 3D curved surface of the cable tray in the 3D design drawing into a 2D plane, draw the 2D plane graph for marking, so as to clearly show the layout and installation details of the cable tray.

[0064] Specifically, after obtaining the 3D design drawing, determine the installation positions of the cable tray structures included therein. Each independent cable tray is composed of multiple standardized cable trays spliced together. These cable trays can be flat trays, elbow trays, tee trays, etc. During the splicing process, connectors (such as bolts, clamps, etc.) are used to fix the cable trays together to form a continuous and sturdy cable tray. Therefore, in order to clearly express the installation details of the cable tray, it is also necessary to obtain the first endpoint position and the second endpoint position of each section of the cable tray in the cable tray. Further, obtain the wall data of the curved wall model in the 3D design drawing, such as the wall shape of the wall, the curved surface radius, and the wall thickness, to accurately understand the corresponding relationship between the curved wall and the attached cable tray.

[0065] Optionally, if there are multiple independent cable trays in the 3D design drawing, obtain the 2D unfolded graphic data of each cable tray respectively, and based on the graphic data of each cable tray, draw a 2D unfolded plan view. When unfolding each independent section of the cable tray, unfold the cable tray in a counterclockwise direction.

[0066] S102. According to the installation position of the cable tray, on the curved wall, determine the projection wall surface where the cable tray is to be projected.

[0067] In this step, during the generation process of the planar unfolded graph of the cable tray in 3D space, in order to ensure that the actual layout of the cable tray in 3D space can be accurately reflected on the 2D plane, it is necessary to project the cable tray in the 3D design drawing onto the adjacent arc-shaped curved wall surface to truly display the actual position and size of the cable tray on the curved wall surface and avoid errors caused by 3D curved surface deformation. Therefore, based on the installation position of the cable tray, on the arc-shaped curved wall of the nuclear power plant, determine the arc-shaped curved wall surface (inner wall or outer wall) closest to the cable tray as the projection wall surface where the cable tray is to be projected.

[0068] By the above method, select the curved wall surface closest to the cable tray as the projection wall surface as a reference to determine the position where the cable tray needs to be projected onto the arc-shaped curved wall.

[0069] S103. According to the wall data of the curved wall, determine the center position and radius of the tangent circle of the projection wall surface on the horizontal section.

[0070] In this step, the sectional circle of the projection wall refers to the circular section formed by the three-dimensional arc-shaped curved wall on the two-dimensional plane, which is used to describe the two-dimensional shape of the three-dimensional curved wall on the horizontal section. This sectional circle helps to clarify the area that needs to be focused on during the projection process, making it easier to handle and understand complex three-dimensional shapes on the two-dimensional plane. Therefore, cut along the axis perpendicular to the curved wall to obtain the sectional circle of the projection wall on the cross-section of the curved wall, and determine the center position and radius length of the sectional circle.

[0071] In the above way, the three-dimensional arc-shaped curved wall surface is simplified to a sectional circle on the two-dimensional plane, thus converting the complex three-dimensional curved surface into a simple two-dimensional plane. The sectional circle provides a standardized measurement benchmark for the generation of the plane development drawing, making it more convenient to measure key dimensions such as angles when unfolding the cable tray, and can simplify the processing of complex curved surfaces, greatly reducing the computational amount of plane unfolding and the difficulty of processing the curved surface.

[0072] S104. By the plane projection method, project the cable tray onto the projection wall surface, and calculate the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the positions of the first endpoint and the second endpoint of each cable tray in the cable tray, the center position of the sectional circle, and the radius.

[0073] In this step, by the plane projection method, project the cable tray onto the projection wall surface closest to it. For any section of cable tray in the cable tray, this tray will map an arc on the projection wall surface, and the arc length of the arc is the length of the plane unfolding of the cable tray. To calculate the segmented arc length after the projection of each section of cable tray, connect the center of the sectional circle with the first endpoint and the second endpoint respectively to form two auxiliary lines, and the included angle between the two auxiliary lines is the projection angle generated by the projection of the cable tray. Then, multiply the projection angle by the radius of the sectional circle to obtain the segmented arc length of the cable tray projected onto the projection wall surface.

[0074] Furthermore, among the endpoints of multiple cable trays, determine the starting point and the ending point of the cable tray. The included angle between the two auxiliary lines corresponding to the starting point and the ending point is the projection angle generated by the projection of the cable tray. Multiply the projection angle of the cable tray by the radius of the sectional circle to obtain the curved surface arc length of the cable tray projected onto the projection wall surface.

[0075] In the above way, calculate the segmented arc length of each section of cable tray in the cable tray projected onto the curved wall surface in three-dimensional space and the total arc length of the entire cable tray projected onto the curved wall surface, so that the length of the cable tray in the two-dimensional development drawing can truly reflect the size of the cable tray in three-dimensional space, ensuring that the cable tray in the two-dimensional development drawing is completely matched with the cable tray in the three-dimensional design drawing.

[0076] S105. Generate a planar development drawing corresponding to the cable tray based on the lengths of multiple segmented arcs, the total arc length, and the dimensional data of the cable tray.

[0077] In this step, the lengths of multiple segmented arcs mapped by multiple cable trays obtained through calculation and the curved surface arc length mapped by the cable tray can be sent as graphic data for drawing the two-dimensional development drawing to the designer's terminal, so that the designer can draw the planar development drawing after the cable bridge section model is unfolded based on the received graphic data in combination with the dimensional data of the cable tray (such as the width of the cable tray, the height of the tray, and the distance from the bottom surface of the cable tray to the reference plane).

[0078] Optionally, after the two-dimensional graph is drawn, the supports and hangers are drawn in the development drawing, and the serial numbers of each support and hanger are marked. Subsequently, the distances between adjacent supports and hangers are marked, which can provide clear guidance for construction personnel, ensure that the support structure and the cable tray are installed according to the design requirements, reduce misunderstandings and communication problems, and ensure the construction quality.

[0079] Furthermore, these graphic data and text identifications such as the serial numbers of the supports and hangers are stored in a common drawing format such as a DXF (Drawing Interchange Format or Drawing Exchange Format) drawing exchange file, which is convenient for different teams or personnel to view and modify the same drawing file using different software tools, thereby promoting collaboration and information transfer.

[0080] The method for generating the planar development drawing provided by the embodiment of the present application determines the arc-shaped curved surface wall closest to the cable tray as the projection wall based on the installation position of the cable tray in the three-dimensional design drawing of the nuclear power plant, and projects the cable tray onto the projection wall using the planar projection method. Subsequently, the center and radius of the tangent circle of the projection wall in the planar dimension are determined, and in combination with the positions of the first end point and the second end point of each tray segment, the length of each segmented arc formed by projecting each tray segment of the cable tray onto the curved surface wall and the total arc length formed by projecting the cable tray onto the curved surface wall are calculated. Furthermore, a two-dimensional graph of the cable tray after planar development is drawn using each segmented arc length, the total curved surface arc length, the dimensional data of the cable tray, and the support data as graphic data. Through the above method, the three-dimensional layout model of the approximately annular cable tray and the curved surface wall where the support takes root are unfolded to generate a planar projection relationship diagram of the curved surface wall and the cable tray along the curved surface, and the support data is marked in the planar projection relationship diagram, so that construction personnel can more intuitively understand the actual layout of the cable tray, the support points, and the curved surface wall, which helps to more accurately position and install the supports during the construction process and ensure the construction accuracy.

[0081] Further, as a refinement and extension of the specific implementation manner of the above embodiment, in order to completely illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another method for generating a planar unfolded graph, and the method includes:

[0082] S201. Obtain the installation data of the cable tray in the 3D design drawing and the wall data of the curved wall. Among them, the installation data includes the installation position of the cable tray and the positions of multiple first end points and multiple second end points of multiple cable trays in the cable tray.

[0083] This step is the same as Figure 1 the step S101 shown, and will not be elaborated here.

[0084] S202. Determine the projection wall surface on which the cable tray is to be projected on the curved wall according to the installation position of the cable tray.

[0085] This step is the same as Figure 1 the step S102 shown, and will not be elaborated here.

[0086] S203. Determine the center position and radius of the section circle of the projection wall surface on the horizontal section according to the wall data of the curved wall.

[0087] In this step, the wall of the nuclear power plant is usually a cylinder. The center position and radius of the section circle of the projection wall surface on the cross section can be obtained through the wall attributes (such as the wall diameter and the wall thickness). In addition, when the wall model contains a complex data structure hierarchy, that is, the curved wall is not a regular cylinder and it is difficult to directly obtain the center and radius through the wall attributes, the center position and radius can also be obtained by calculation.

[0088] In the embodiment of the present application, optionally, in order to ensure the accuracy of obtaining the center position and radius of the section circle, in step S203, determining the center position and radius of the section circle of the projection wall surface on the horizontal section according to the wall data of the curved wall specifically includes: judging whether the curved wall is a cylinder according to the wall shape; if the curved wall is a cylinder, cut along the direction perpendicular to the axis of the curved wall to obtain the cross section of the curved wall, and obtain the section circle of the projection wall surface on the cross section; determine the center position value and radius of the section circle according to the wall diameter and the wall thickness; if the curved wall is not a cylinder, obtain multiple first coordinate values of multiple non-repeating coordinate points on the projection wall surface, where the z-axis coordinate value in the first coordinate values is 0; determine the center position and radius of the section circle of the projection wall surface on the cross section according to the multiple first coordinate values of the multiple coordinate points.

[0089] In this embodiment, after selecting the arc-shaped curved wall surface adjacent to the cable tray as the projection wall surface of the cable tray, a cut is made along the direction perpendicular to the axis of the cylindrical wall to obtain the cross-section of the curved wall on the horizontal plane. In the 3D design drawing, it is judged whether the curved wall of the nuclear power plant is a cylinder. If so, it means that the cross-section is circular. At this time, the center of the cross-section of the cylindrical wall is used as the center of the tangent circle of the projection wall surface. If the projection wall surface is the inner wall of the curved wall, in the wall data, according to the wall diameter, the wall radius is determined, and the wall thickness is subtracted from the wall radius to obtain the distance from the center to the projection wall surface, that is, the radius of the tangent circle.

[0090] Furthermore, if the curved wall is not a regular cylinder, that is, the wall model may contain complex data structure levels and it is difficult to directly obtain the circular data of the cross-section of the curved wall. At this time, three non-coincident coordinate points on the projection wall surface can be picked up, the three coordinate points are converted to the same two-dimensional plane, and through geometric relationships, the radius of the tangent circle of the projection wall surface on the two-dimensional plane and the position of the center of the circle are calculated.

[0091] In the embodiment of the present application, optionally, the steps of determining the center and radius of the tangent circle of the projection wall surface on the cross-section according to the first coordinate values of the three coordinate points specifically include: by the perpendicular bisector method, determining the center of the tangent circle of the projection wall surface on the cross-section according to the three coordinate points; obtaining the second coordinate value of the center of the tangent circle; and calculating the radius of the tangent circle according to any first coordinate value and the second coordinate value.

[0092] In this embodiment, it is known that there are three coordinate points A, B, and C on the projection wall surface. The z-component coordinates of the three coordinate points are set to 0 in advance so that they are in the XOY horizontal plane. The intersection point of the perpendicular bisectors of the two line segments AB and BC can be used to obtain the center of the tangent circle. Then, according to the first coordinate value of point A and the second coordinate value of the center of the circle, using analytic geometry, the radius of the tangent circle is obtained.

[0093] S204. Project the cable tray onto the projection wall surface by the plane projection method.

[0094] S205. With the center of the tangent circle as the origin, construct a parallel line to the x-axis along the x-axis direction.

[0095] S206. Determine the projection angle formed by each cable tray projected onto the projection wall surface according to the center position of the circle, the parallel line to the x-axis, the position of the first end point and the position of the second end point.

[0096] In steps S204 to S206, using the planar projection method, the cable tray is projected onto the projection wall. With the center of the section circle as the origin, a parallel line to the x-axis is constructed along the x-axis direction. A ray is drawn from the center and passes through each end point of each cable tray in turn, and is extended to the projection wall to form the projection points of each end point projected onto the projection wall. The angle of rotation of this ray relative to the x-axis parallel line is the phase angle of this end point. Through the phase angles of the two end points of each cable tray, the phase angle of this cable tray can be obtained.

[0097] In an actual application scenario, taking a straight section tray as an example, using the ARC (Automatic Reference Counting) object in the PML (Programmable Markup Language) script program, an arc with a known center and radius is constructed. The arc starts at 0 degrees on the x-axis, and the total angle of the arc is 360 degrees, which is a circle. The elevation (Z value) of this center is the same as the distance from the feature point (i.e., the tray end point) to the reference plane. Using the!ARC.Near(!pos) function method, the phase angle at the nearest point of the!pos coordinate point to the arc!ARC can be obtained. This phase angle calculation starts from the 0-degree axis defined by the arc!ARC. This method can respectively obtain the phase angles of the two end points of the tray segment at their respective concentric circles.

[0098] In the embodiment of the present application, optionally, in step S206, according to the center position, the x-axis parallel line, the first end point position, and the second end point position, the projection angle formed by each cable tray projected onto the projection wall is determined, specifically including: for any cable tray, connecting the center and the first end point to form a first auxiliary line, and connecting the center and the second end point to form a second auxiliary line; obtaining the first phase angle between the x-axis parallel line and the first auxiliary line, and the second phase angle between the x-axis parallel line and the second auxiliary line; subtracting the first phase angle from the second phase angle to obtain the projection angle of the cable tray.

[0099] In this embodiment, as Figure 3 shown, it is the top view of the horizontal plane projection of any section of the cable tray in the cable bridge onto the projection wall. Among them, connecting the center of the section circle and the first end point of the cable tray to form auxiliary line 1, and constructing concentric circle 1 corresponding to the first end point of the cable tray. The angle between the x-axis parallel line and auxiliary line 1 is the phase angle 1 (111°) of the first end point at its concentric circle; connecting the center of the section circle and the second end point of the cable tray to form auxiliary line 2, and constructing concentric circle 2 corresponding to the first end point of the cable tray. The angle between the x-axis parallel line and auxiliary line 2 is the phase angle 2 (150°) of the second end point at its concentric circle. The difference of 39° between phase angle 2 and phase angle 1 is the projection angle obtained by projecting the cable tray.

[0100] S207. Multiply the projection angle of each cable tray by the radius of the sectional circle to obtain the sectional arc length formed by projecting each projected tray onto the projected wall.

[0101] In this step, for any section of cable tray, after calculating the projection angle generated by the projection of the cable tray based on the difference in the phase angles corresponding to the two end points of the cable tray, multiply the projection angle by the radius of the sectional circle of the projected wall to obtain the sectional arc length of this section of the cable tray projected onto the projected wall. As Figure 4 shown, it is the top view of the projection expansion model of the cable bridge in the 3D design drawing. It can be seen from the figure that rays are drawn from the center of the circle to the two end points of each tray section and extended to the projection points on the arc-shaped curved wall, forming an arc length on the arc-shaped wall that is consistent with the sectional length of the unfolded straight-line model.

[0102] S208. Add the multiple sectional arc lengths of the multiple cable trays to obtain the total arc length formed by projecting the cable bridge onto the projected wall.

[0103] In this step, add the sectional arc lengths of all the cable trays to obtain the total arc length generated by the overall projection of the cable bridge.

[0104] In the embodiment of the present application, optionally, in order to ensure the accuracy of the calculated sectional arc length and total arc length, after adding the multiple sectional arc lengths of the multiple cable trays to obtain the total arc length formed by projecting the cable bridge onto the projected wall, it further includes: determining the starting end point position of the cable bridge according to the multiple first end point positions; determining the terminating end point position of the cable bridge according to the multiple second end point positions; calculating the curved surface arc length formed by projecting the cable bridge onto the projected wall according to the starting end point position, terminating end point position, center position and radius of the sectional circle; comparing the curved surface arc length with the projected arc length, and if the curved surface arc length is inconsistent with the projected arc length, sending an error prompt message to the designer terminal.

[0105] In this embodiment, after calculating the total arc length generated by the projection of the cable bridge, in order to ensure the accuracy of the total arc length and the sectional arc length of each section of the tray, among all the first end points, determine the starting end point of the cable bridge, and among all the second end points, determine the terminating end point of the cable bridge. Subsequently, based on the starting end point and the terminating end point, obtain the projection angle generated by projecting the cable bridge onto the projected wall to obtain the curved surface arc length. Compare the sum of the multiple sectional arc lengths with the curved surface arc length calculated based on the projection angle. If the total arc length is consistent with the curved surface arc length, it indicates that the calculation of each sectional arc length is accurate. If the total arc length is inconsistent with the curved surface arc length, it may be that there is a problem with the calculation of a certain section. At this time, send an error prompt message to the designer terminal so that the designer can perform error detection according to the prompt message.

[0106] In an embodiment of the present application, optionally, according to the starting endpoint position, the ending endpoint position, the center position and radius of the section circle, calculate the curved arc length formed by projecting the cable tray onto the projection wall surface, specifically including: connecting the center of the circle with the starting endpoint to form a third auxiliary line; connecting the center of the circle with the ending endpoint to form a fourth auxiliary line; obtaining a third phase angle between the parallel line of the x-axis and the third auxiliary line, and a fourth phase angle between the parallel line of the x-axis and the fourth auxiliary line; subtracting the third phase angle from the fourth phase angle to obtain the projection angle of the cable tray; multiplying the projection angle of the cable tray by the radius of the section circle to obtain the curved arc length formed by projecting the cable tray onto the projection wall surface.

[0107] In this embodiment, a ray is drawn from the center of the circle to the starting endpoint to form a third auxiliary line, and it is projected onto the projection wall surface to form a projection point. A ray is drawn from the center of the circle to the ending endpoint to form a fourth auxiliary line, and it is projected onto the projection wall surface to form a projection point. Obtain the third phase angle between the third auxiliary line and the parallel line of the X-axis, and the fourth phase angle between the fourth auxiliary line and the parallel line of the X-axis. Use the fourth phase angle minus the third phase angle to obtain the projection angle of the cable tray. Then, multiply the projection angle of the cable tray by the radius of the section circle to obtain the curved arc length of the cable tray projected onto the projection wall surface.

[0108] By the above method, calculate the arc length generated by projecting the cable tray onto the projection wall surface in different ways, and use the two calculation results for accuracy verification, which helps to identify the accuracy of the segmented projection calculation results and ensure the accuracy of the final plane development drawing.

[0109] S209. Generate a plane development graph corresponding to the cable tray according to multiple segmented arc lengths, the total arc length, and the dimension data of the cable tray.

[0110] This step is the same as the method of step S105 shown in Figure 1 and will not be elaborated here.

[0111] In an actual application scenario, after calculating the segmented arc length corresponding to each cable tray and the total arc length of the cable tray, mark the reference plane in the two-dimensional plan first. Use the distance from the reference plane to the projection wall and the curved arc length of the cable tray after unfolding to draw the projection wall. Then, according to the segmented arc length of each cable tray and the distance between each endpoint of the cable tray and the reference plane, mark each endpoint of the cable tray in the plan. Connect all the endpoints in sequence according to the topological relationship of the three-dimensional space model, and use the width and height of the cable tray in the three-dimensional space model to draw the outer contour of the cable tray after projection. And annotate the name of the support point in the cable tray and the distance between two adjacent support points on the generated drawing of the plane development graph to form the generated drawing of the final plane development graph. As Figure 5As shown, it is the planar development drawing of the cable tray. The figure shows the planar information obtained by projecting the straightened projection model using the DRAW module in AVEVA Everything3D, as well as the positions, names, and identifications of some brackets. This figure corresponds to the counterclockwise direction of the cable tray 3D model from left to right. After drawing each section of the cable tray, multiple sections of the cable tray are connected in sequence to form the planar development drawing of the cable tray. The supports and hangers are drawn in the development drawing, and the serial numbers of each support and hanger are identified (such as RX4MCT-SH-342). Subsequently, the distances between adjacent supports and hangers are marked, so that the drawing can express the distances from the starting position of the curved surface development of the cable tray to each support point along the surface of the arc wall, thereby providing clear guidance for construction workers, ensuring that the support structure and the cable tray are installed according to the design requirements, reducing misunderstandings and communication problems, and ensuring the construction quality.

[0112] Optionally, when designers need to directly generate drawings using new 3D software such as AVEVA Everything3D and PDMS, the curved surface arc length of the cable tray projected onto the projection wall is calculated based on the phase angles of the starting and ending endpoints of the cable tray projected onto the projection wall and the radius of the section circle. A corresponding planar wall is established in the three-dimensional space, and the length of this planar wall is the curved surface arc length. Subsequently, using the phase angles formed by projecting each endpoint of the cable tray onto the projection wall and the distance (i.e., elevation) between the endpoint and the reference plane, a three-dimensional replacement model (rectangular model) is generated and arranged in the three-dimensional space model. At this point, the unfolded projection wall and the cable tray are respectively located in two parallel vertical planes, and the final curved surface development view can be obtained using the conventional planar projection function of the software. Specifically, taking the three-dimensional replacement model as an example, the goal is to establish a series of BOX node types corresponding to the original tray segments. The local X-axis length of this BOX is the projected arc length L of the corresponding original segment. When there is a height difference h between the characteristic points (i.e., endpoints) at both ends of this segment, the arctangent function is used to solve with the height difference value and the arc length,!angleRotate = ATAN(h / L). This angle is the pitch angle that the proxy model BOX needs to adjust, and the X-axis side length of the BOX should also be modified accordingly to the hypotenuse length of this right triangle. Adjust the BOX coordinates, that is, multiply the difference between the phase angle of the original cable tray segment replaced by the BOX and!angleMin by the arc radius, and the resulting value will be used as the local X coordinate value of the BOX endpoint located at the EQUI device node. The Z coordinates of the two endpoints (P4, P1) on both sides of the BOX are the same as the elevations of the endpoints of the original cable tray segment. As Figure 6 As shown, it is the southwest axonometric view of the cable tray projection development model in the 3D design drawing. Since there are elevation changes in the vertical direction of the cable tray, when the cable tray is unfolded from a three-dimensional perspective and the height difference occurs, the projected cable tray projection development model can still reflect the height fluctuations.

[0113] In the above manner, a projected graph is obtained by two-dimensional space projection along the wall surface, a correlation relationship between the three-dimensional model of the cable tray and the projected graph is generated, and necessary engineering information such as the bracket name is marked on the two-dimensional projection drawing. The cable tray is decomposed into multiple sections of cable trays by using the differential method, projection calculation is performed on each section, and the projected sections are sequentially connected on the two-dimensional drawing, and finally the surface development view information of the two-dimensional engineering drawing is formed.

[0114] In an embodiment of the present application, optionally, the method for generating a planar development graph of the embodiment of the present application includes the following six steps:

[0115] S1: Obtain a cable tray model to be projected.

[0116] Specifically, in the three-dimensional design drawing, a cable tray model arranged in a ring shape is selected as the projection source, and the cable tray model includes a plurality of cable trays and their attached brackets.

[0117] S2: According to the cable tray model, determine the projection wall surface of the cable tray, and obtain the center and radius of the section circle of the projection wall surface on the two-dimensional plane.

[0118] S3: Obtain the characteristic points and characteristic dimensions of each tray section in the cable tray.

[0119] Specifically, if the cable tray is a straight section, the coordinates of the inlet and outlet endpoints, the width and height of the cable tray are extracted. If the cable tray is a turning section (such as an arc-shaped elbow or an inclined cut elbow), the coordinates of the inlet and outlet endpoints and the intersection coordinates of the inlet and outlet axes are extracted, and the endpoints of the above sections are used as characteristic points.

[0120] S4: Pass the center of the section circle through the characteristic points to obtain the phase angle corresponding to each tray section.

[0121] Specifically, among the phase angles of all characteristic points (i.e., endpoints) during the projection process, find the phase angles of the starting point and the ending point of the cable tray when the cable tray is fully unfolded. When unfolding and drawing the two-dimensional graph, only the phase angle range of the starting point and the ending point is used for the wall surface development and drawing of the cable tray, which can effectively reduce the range of the two-dimensional drawing surface.

[0122] S5: According to the phase angle and the radius of the section circle, calculate the segmented arc length of each cable tray projected onto the projection wall surface.

[0123] S6: Draw the generated graph of the planar development graph.

[0124] Furthermore, after the two-dimensional graph after unfolding is drawn, the graphic data (such as lines, text labels, etc.) in the two-dimensional graph is directly stored in a general drawing format such as DXF, which is convenient for cross-platform use and sharing.

[0125] Further, as Figure 1 a specific implementation of the method, an embodiment of the present application provides a generating device 300 for a planar unfolded graph, as Figure 7 shown. The device includes: an obtaining module 301, a first determining module 302, a second determining module 303, a projecting module 304, a calculating module 305, and a generating module 306.

[0126] The obtaining module 301 is configured to obtain the installation data of the cable tray and the wall data of the curved wall in the three-dimensional design drawing. Among them, the installation data includes the installation position of the cable tray and the positions of multiple first end points and multiple second end points of multiple cable trays in the cable tray.

[0127] The first determining module 302 is configured to determine the projection wall surface on which the cable tray is to be projected on the curved wall surface according to the installation position of the cable tray.

[0128] The second determining module 303 is configured to determine the center position and radius of the tangent circle of the projection wall surface on the horizontal section according to the wall data of the curved wall surface.

[0129] The projecting module 304 is configured to project the cable tray onto the projection wall surface by the planar projection method; the calculating module 305 is configured to calculate the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the positions of the first end points and second end points of each cable tray in the cable tray, the center position of the tangent circle, and the radius.

[0130] The generating module 306 is configured to generate a planar unfolded graph corresponding to the cable tray according to the multiple segmented arc lengths, the total arc length, and the dimension data of the cable tray.

[0131] In a specific application scenario, the wall data includes the wall shape, the wall diameter, and the wall thickness. The second determining module 303 is specifically configured to:

[0132] Judge whether the curved wall surface is a cylinder according to the wall shape;

[0133] If the curved wall surface is a cylinder, cut it along the direction perpendicular to the axis of the curved wall surface to obtain the cross-section of the curved wall surface, and obtain the tangent circle of the projection wall surface on the cross-section.

[0134] Determine the center position and radius of the tangent circle according to the wall diameter and the wall thickness.

[0135] If the curved wall surface is not a cylinder, obtain multiple first coordinate values of multiple non-repeating coordinate points on the projection wall surface, where the z-axis coordinate value in the first coordinate value is 0.

[0136] Determine the center position and radius of the tangent circle of the projection wall surface according to the multiple first coordinate values of multiple coordinate points.

[0137] In a specific application scenario, the second determination module 303 is specifically further used for:

[0138] Determine the center position of the tangent circle of the projection wall surface in the cross-section according to multiple coordinate points by the perpendicular bisector method;

[0139] Obtain the second coordinate value of the center of the tangent circle;

[0140] Calculate the radius of the tangent circle according to any first coordinate value and the second coordinate value.

[0141] In a specific application scenario, the projection module 304 is specifically used for:

[0142] Project the cable tray onto the projection wall surface by the plane projection method.

[0143] In a specific application scenario, the calculation module 305 is specifically used for:

[0144] Taking the center of the tangent circle as the origin, construct a parallel line to the x-axis along the x-axis direction;

[0145] Determine the projection angle formed by each cable tray projected onto the projection wall surface according to the center position, the x-axis parallel line, the first end point position, and the second end point position;

[0146] Multiply the projection angle of each cable tray by the radius of the tangent circle to obtain the segmented arc length formed by each projection tray projected onto the projection wall surface;

[0147] Add the multiple segmented arc lengths of multiple cable trays to obtain the total arc length formed by the cable tray projected onto the projection wall surface.

[0148] In a specific application scenario, the calculation module 305 is specifically further used for:

[0149] For any cable tray, connect the center and the first end point to form a first auxiliary line, and connect the center and the second end point to form a second auxiliary line;

[0150] Obtain the first phase angle between the x-axis parallel line and the first auxiliary line, and the second phase angle between the x-axis parallel line and the second auxiliary line;

[0151] Subtract the first phase angle from the second phase angle to obtain the projection angle of the cable tray.

[0152] In a specific application scenario, as Figure 7 shown, the device further includes:

[0153] The third determination module 307 is configured to determine the starting endpoint position of the cable tray according to multiple first endpoint positions;

[0154] The fourth determination module 308 is configured to determine the ending endpoint position of the cable tray according to multiple second endpoint positions;

[0155] The calculation module 305 is further configured to calculate the curved surface arc length formed by projecting the cable tray onto the projection wall according to the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle;

[0156] The sending module 309 is configured to compare the total arc length with the curved surface arc length, and if the total arc length is inconsistent with the curved surface arc length, send an error prompt message to the designer terminal.

[0157] In a specific application scenario, the calculation module 305 is specifically further configured to:

[0158] Connect the center of the circle to the starting endpoint to form a third auxiliary line;

[0159] Connect the center of the circle to the ending endpoint to form a fourth auxiliary line;

[0160] Obtain the third phase angle between the x-axis parallel line and the third auxiliary line, and the fourth phase angle between the x-axis parallel line and the fourth auxiliary line;

[0161] Subtract the third phase angle from the fourth phase angle to obtain the projection angle of the cable tray;

[0162] Multiply the projection angle of the cable tray by the radius of the section circle to obtain the curved surface arc length formed by projecting the cable tray onto the projection wall.

[0163] The generating device 300 for the planar unfolded graph provided by the embodiment of the present application determines the arc-shaped curved wall closest to the cable tray based on the installation position of the cable tray in the three-dimensional design drawing of the nuclear power plant as the projection wall, and projects the cable tray onto the projection wall by using the planar projection method. Subsequently, the center and radius of the tangent circle of the projection wall in the planar dimension are determined, and in combination with the positions of the first end point and the second end point of each tray segment, the segmented arc length formed by projecting each tray segment in the cable tray onto the curved wall and the total arc length formed by projecting the cable tray onto the curved wall are calculated. Furthermore, taking each segmented arc length, the total curved arc length, the dimension data of the cable tray, and the bracket data as graphic data, a two-dimensional graph after the planar unfolding of the cable tray is drawn. In the above manner, the three-dimensional layout model of the approximately annular cable tray and the curved wall where the bracket takes root are unfolded to generate a planar projection relationship graph of the curved wall and the cable tray unfolded along the curve, and the bracket data is marked in the planar projection relationship graph, enabling the construction personnel to more intuitively understand the actual layout of the cable tray, the support points, and the curved wall, which helps to more accurately position and install the brackets during the construction process and ensure the construction accuracy.

[0164] In an exemplary embodiment, the present application further provides an electronic device, including a memory and a processor. The memory stores a computer program, and the processor is configured to execute the program stored on the memory to perform the method for generating the planar unfolded graph in the above embodiment.

[0165] In an exemplary embodiment, the present application further provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for generating the planar unfolded graph are implemented.

[0166] Through the description of the above embodiments, those skilled in the art can clearly understand that the present application can be implemented through hardware or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, and the software product can be stored in a non-volatile readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for causing an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of the present application.

[0167] Those skilled in the art can understand that the drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the drawings are not necessarily essential for implementing the present application.

[0168] Those skilled in the art can understand that the modules in the device in the implementation scenario can be distributed in the device of the implementation scenario according to the description of the implementation scenario, or can be correspondingly changed to be located in one or more devices different from this implementation scenario. The modules of the above implementation scenario can be combined into one module, or can be further split into multiple units.

[0169] The above serial numbers of the present application are only for description and do not represent the advantages or disadvantages of the implementation scenario.

[0170] The above are only several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be thought of by those skilled in the art should fall within the protection scope of the present application.

Claims

1. A method for generating a planar unfolded graph, characterized in that, Including: Obtain the installation data of the cable tray and the wall data of the curved wall in the 3D design drawing. Among them, the installation data includes the installation position of the cable tray and the positions of multiple first endpoints and multiple second endpoints of multiple cable trays in the cable tray; According to the installation position of the cable tray, determine the projection wall surface on which the cable tray is to be projected on the curved wall; According to the wall data of the curved wall, determine the center position and radius of the tangent circle of the projection wall surface on the horizontal section; By the plane projection method, project the cable tray onto the projection wall surface. According to the positions of the first endpoints, the second endpoints of each cable tray in the cable tray, the center position of the tangent circle, and the radius, calculate the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface; Generate the corresponding plane development drawing of the cable tray according to the multiple segmented arc lengths, the total arc length, and the dimension data of the cable tray.

2. The method according to claim 1, wherein The wall data includes the wall shape, the wall diameter, and the wall thickness. The step of determining the center position and radius of the tangent circle of the projection wall surface on the horizontal section according to the wall data of the curved wall specifically includes: Judge whether the curved wall is a cylinder according to the wall shape; If the curved wall is a cylinder, cut it along the direction perpendicular to the axis of the curved wall to obtain the cross-section of the curved wall, and obtain the tangent circle of the projection wall surface on the cross-section; Determine the center position and the radius of the tangent circle according to the wall diameter and the wall thickness; If the curved wall is not a cylinder, obtain multiple first coordinate values of multiple non-repeating coordinate points on the projection wall surface, where the z-axis coordinate value in the first coordinate value is 0; Determine the center position and the radius of the tangent circle of the projection wall surface according to the multiple first coordinate values of the multiple coordinate points.

3. The method according to claim 2, wherein The step of determining the center position and the radius of the tangent circle of the projection wall surface according to the multiple first coordinate values of the multiple coordinate points specifically includes: By the perpendicular bisector method, determine the center position of the tangent circle of the projection wall surface on the cross-section according to the multiple coordinate points; Obtain the second coordinate value of the center of the tangent circle; Calculate the radius of the tangent circle according to any first coordinate value and the second coordinate value.

4. The method according to claim 1, characterized in that The step of projecting the cable tray onto the projection wall surface by the plane projection method and calculating the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the positions of the first endpoints, the second endpoints of each cable tray in the cable tray, the center position of the tangent circle, and the radius specifically includes: Project the cable tray onto the projection wall surface by the plane projection method; Taking the center of the tangent circle as the origin, construct a parallel line to the x-axis along the x-axis direction; Determine the projection angle formed by each cable tray projected onto the projection wall according to the center position, the parallel line of the x-axis, the first endpoint position, and the second endpoint position; Multiply the projection angle of each cable tray by the radius of the section circle to obtain the segmented arc length formed by each projected tray projected onto the projection wall; Add up the segmented arc lengths of multiple cable trays to obtain the total arc length formed by the cable bridge projected onto the projection wall.

5. The method according to claim 4, characterized in that, The step of determining the projection angle formed by each cable tray projected onto the projection wall according to the center position, the parallel line of the x-axis, the first endpoint position, and the second endpoint position specifically includes: For any cable tray, connect the center and the first endpoint to form a first auxiliary line, and connect the center and the second endpoint to form a second auxiliary line; Obtain the first phase angle between the parallel line of the x-axis and the first auxiliary line, and the second phase angle between the parallel line of the x-axis and the second auxiliary line; Subtract the first phase angle from the second phase angle to obtain the projection angle of the cable tray.

6. The method according to claim 4, wherein After adding up the segmented arc lengths of multiple cable trays to obtain the total arc length formed by the cable bridge projected onto the projection wall, it further includes: Determine the starting endpoint position of the cable bridge according to multiple first endpoint positions; Determine the ending endpoint position of the cable bridge according to multiple second endpoint positions; Calculate the curved arc length formed by the cable bridge projected onto the projection wall according to the starting endpoint position, the ending endpoint position, the center position of the section circle, and the radius; Compare the total arc length with the curved arc length. If the total arc length is inconsistent with the curved arc length, send an error prompt message to the designer terminal.

7. The method according to claim 6, characterized in that The step of calculating the curved arc length formed by the cable bridge projected onto the projection wall according to the starting endpoint position, the ending endpoint position, the center position of the section circle, and the radius specifically includes: Connect the center with the starting endpoint to form a third auxiliary line; Connect the center with the ending endpoint to form a fourth auxiliary line; Obtain the third phase angle between the parallel line of the x-axis and the third auxiliary line, and the fourth phase angle between the parallel line of the x-axis and the fourth auxiliary line; Subtract the third phase angle from the fourth phase angle to obtain the projection angle of the cable bridge; Multiply the projection angle of the cable bridge by the radius of the section circle to obtain the curved arc length formed by the cable bridge projected onto the projection wall.

8. A generating device for a planar unfolded figure, characterized in that, It includes: An acquisition module for acquiring the installation data of the cable bridge and the wall data of the curved wall in the 3D design drawing, where the installation data includes the installation position of the cable bridge and the multiple first endpoint positions and multiple second endpoint positions of multiple cable trays in the cable bridge; A first determination module for determining the projection wall onto which the cable bridge is to be projected on the curved wall according to the installation position of the cable bridge; A second determination module, configured to determine the center position and radius of the section circle of the projection wall surface on the horizontal section according to the wall data of the curved wall surface; A projection module, configured to project the cable tray onto the projection wall surface by a planar projection method; A calculation module, configured to calculate the segmented arc length of each cable tray projected onto the projection wall surface and the total arc length of the cable tray projected onto the projection wall surface according to the first end point position and the second end point position of each cable tray in the cable tray, the center position of the section circle, and the radius; A generation module, configured to generate a planar development pattern corresponding to the cable tray according to a plurality of segmented arc lengths, the total arc length, and the dimension data of the cable tray.

9. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium, on which a computer program is stored, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Arc window design method and device and storage medium

    CN116127565A

  • Rice leaf length analysis method based on point cloud

    CN118505781A