Plane expansion graph generation method and device, electronic equipment and storage medium
The cable tray is projected onto the curved wall through the planar projection method, and the plane expansion diagram of the cable tray is calculated and generated, solving the problem of insufficient marked information in the three-dimensional spatial design drawing, realizing intuitive display and high-precision construction.
Patent Information
- Application Number
- CN202411314869.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-09-20
AI Technical Summary
Directly marking data such as the size of the cable tray in the three-dimensional spatial design drawing may cause the labeling information to be not clear enough or difficult to align, and the labeling information to be visually displayed, making it difficult to analyze, increasing the possibility of construction difficulty and error.
By obtaining the installation data of the cable tray in the three-dimensional design drawing and the wall data of the curved wall, the cable tray is projected onto the curved wall by using the planar projection method, and the segmented arc length and total arc length of each cable tray are calculated. Generate a plane expansion pattern of the cable tray.
The intuitive expansion of the cable tray in three-dimensional space is realized, the clarity and alignment of the labeling information is improved, the construction difficulty and error are reduced, and the construction accuracy is ensured.
Smart Images

Figure CN119397632A_ABST
Abstract
Description
Technical Field
[0001] The present 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 graphic. Background Art
[0002] In the process of nuclear power plant engineering design, since the main wall of the nuclear island building is an arc surface, the designer needs to design a large number of cable trays based on the curved wall, that is, the cable trays are arranged around the curved wall, and a large number of brackets of the trays are finally rooted on the curved wall. Therefore, designers usually use 3D modeling software to build a 3D space model of the cable tray. However, directly marking the size and other data of the cable tray in the 3D space design drawing needs to be done in different perspectives, which may make the marking information unclear or difficult to align, and the marking information is difficult to display intuitively and difficult to parse, thereby increasing the difficulty of construction and the possibility of errors. Summary of the invention
[0003] In view of this, the present application provides a method, device, electronic device and storage medium for generating a plane unfolded graphic. The main purpose is to solve the technical problems that the prior art directly marks the size and other data of the cable tray in the three-dimensional space design drawing, which may cause the marked information to be unclear or difficult to align, and the marked information is difficult to display intuitively and difficult to parse.
[0004] According to a first aspect of the present application, a method for generating a planar unfolded graph is provided, the method comprising:
[0005] Acquire installation data of the cable tray and wall data of the curved wall in the three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and a plurality of first end positions and a plurality of second end positions of a plurality of cable trays in the cable tray;
[0006] According to the installation position of the cable tray, determine the projection wall surface on the curved wall where the cable tray is to be projected;
[0007] According to the wall data of the curved wall, determine the center position and radius of the section circle of the projected wall on the horizontal section;
[0008] The cable tray is projected onto the projection wall by plane projection method, and the segmented arc length of each cable tray projected onto the projection wall and the total arc length of the cable tray projected onto the projection wall are calculated according to the first end position, the second end position, the center position and the radius of the tangent circle of each cable tray in the cable tray;
[0009] According to the multiple segment arc lengths, the total arc length and the size data of the cable tray, the corresponding plane unfolding drawing of the cable tray is generated.
[0010] Optionally, the wall data includes a wall shape, a wall diameter and a wall thickness. The step of determining the center position and radius of a section circle of the projected wall surface on a horizontal section according to the wall data of the curved wall specifically includes:
[0011] According to the shape of the wall, determine whether the curved wall is a cylinder;
[0012] If the curved wall is a cylinder, cut it along the axis direction perpendicular to the curved wall to obtain the cross section of the curved wall, and obtain the section circle of the projected wall on the cross section;
[0013] Determine the center position and radius of the section 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-repeated coordinate points on the projection wall, wherein the z-axis coordinate value of the first coordinate value is 0;
[0015] According to the multiple first coordinate values of the multiple coordinate points, the center position and radius of the tangent circle of the projected wall are determined.
[0016] Optionally, the step of determining the center position and radius of the tangent circle of the projected wall according to the multiple first coordinate values of the multiple coordinate points specifically includes:
[0017] By using the perpendicular bisector method, the center position of the tangent circle of the projected wall surface on the cross section is determined according to multiple coordinate points;
[0018] Get the second coordinate value of the center of the section circle;
[0019] The radius of the section circle is calculated according to any first coordinate value and second coordinate value.
[0020] Optionally, the cable tray is projected onto the projection wall by a plane projection method, and according to the first end point position, the second end point position, the center point position and the radius of the tangent circle of each cable tray in the cable tray, the step of calculating the segmented arc length of each cable tray projected onto the projection wall and the total arc length of the cable tray projected onto the projection wall specifically includes:
[0021] Project the cable tray onto the projection wall through the plane projection method;
[0022] Take the center of the section circle as the origin and construct a line parallel to the x-axis along the x-axis direction;
[0023] Determine 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;
[0024] The segmented arc length formed by projecting each projection tray onto the projection wall is obtained by multiplying the projection angle of each cable tray by the radius of the section circle;
[0025] The lengths of multiple segmented arcs of multiple cable trays are added together to obtain the total arc length formed by projecting the cable tray onto the projection wall.
[0026] Optionally, the step of determining a projection angle formed by projecting each cable tray onto a projection wall surface according to the center position, the x-axis parallel line, the first endpoint position, and the second endpoint position specifically includes:
[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] Obtaining a first phase angle between the line parallel to the x-axis and the first auxiliary line, and a second phase angle between the line parallel to the x-axis and the second auxiliary line;
[0029] The projection angle of the cable tray is obtained by subtracting the first phase angle from the second phase angle.
[0030] Optionally, after adding the segmented arc lengths of the plurality of cable trays to obtain a total arc length formed by projecting the cable tray onto the projection wall, the method further includes:
[0031] Determining the starting endpoint position of the cable tray according to the plurality of first endpoint positions;
[0032] Determining the termination endpoint position of the cable tray according to the plurality of second endpoint positions;
[0033] According to the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle, calculate the arc length of the curved surface formed by projecting the cable tray to the projection wall;
[0034] The total arc length is compared with the surface arc length. If the total arc length is inconsistent with the surface arc length, an error prompt message is sent to the designer terminal.
[0035] Optionally, the step of calculating the arc length of the curved surface formed by projecting the cable tray onto the projection wall surface according to the starting endpoint position, the ending endpoint position, the center position and the radius of the tangent circle specifically includes:
[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 end point to form the fourth auxiliary line;
[0038] Obtaining a third phase angle between the line parallel to the x-axis and the third auxiliary line, and a fourth phase angle between the line parallel to the x-axis and the fourth auxiliary line;
[0039] The projection angle of the cable tray is obtained by subtracting the third phase angle from the fourth phase angle;
[0040] The length of the curved surface arc formed by the projection of the cable tray to the projection wall is obtained by multiplying the projection angle of the cable tray by the radius of the section circle.
[0041] According to a second aspect of the present application, a device for generating a planar unfolded graph is provided, the device comprising:
[0042] An acquisition module, used to acquire installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and a plurality of first end positions and a plurality of second end positions of a plurality of cable trays in the cable tray;
[0043] The first determination module is used to determine the projection wall surface to be projected by the cable tray on the curved wall according to the installation position of the cable tray;
[0044] A second determination module is used to determine the center position and radius of the section circle of the projected wall surface on the horizontal section plane according to the wall data of the curved wall surface;
[0045] The projection module is used to project the cable tray onto the projection wall by plane projection method; the calculation module is used to calculate the segmented arc length of each cable tray projected onto the projection wall and the total arc length of the cable tray projected onto the projection wall according to the first end position, the second end position, the center position and the radius of the tangent circle of each cable tray in the cable tray;
[0046] The generation module is used to generate a plane expansion graphic corresponding to the cable tray according to multiple segment arc lengths, the total arc length and the size data of the cable tray.
[0047] According to a third aspect of the present application, an electronic device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0048] According to a fourth aspect of the present application, a readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.
[0049] By means of the above technical scheme, the present application provides a method, device, electronic device and storage medium for generating a plane unfolding graphic. Specifically, based on the installation position of the cable tray in the three-dimensional design drawing of the nuclear power plant, the arc 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 plane projection method. Afterwards, the center and radius of the tangent circle of the projection wall in the plane dimension are determined, and the segmented arc length formed by projecting each tray segment in the cable tray onto the curved wall is calculated in combination with the first end point position and the second end point position of each tray segment, as well as the total arc length formed by projecting the cable tray onto the curved wall, and then each segmented arc length, the total curved arc length, the size data of the cable tray and the bracket data are used as graphic data to draw a two-dimensional graphic of the cable tray after plane unfolding. Through the above method, the three-dimensional layout model of the approximately circular cable tray and the curved wall where the bracket is rooted are unfolded to generate a plane projection relationship diagram of the curved wall and the cable tray unfolded along the curved surface, and the bracket data is marked in the plane projection relationship diagram, so that construction personnel can more intuitively understand the actual layout of the cable tray, support points and curved wall, which helps to more accurately locate and install the bracket during the construction process and ensure construction accuracy.
[0050] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0052] Figure 1 A schematic diagram of a process flow of a method for generating a planar unfolded graphic provided in an embodiment of the present application is shown;
[0053] Figure 2 A schematic flow chart of another method for generating a planar unfolded graphic provided in an embodiment of the present application is shown;
[0054] Figure 3 A top view of a horizontal plane of any section of a cable tray in a cable tray provided in an embodiment of the present application projected onto a projection wall is shown;
[0055] Figure 4 A top view of a projection expansion model of a cable tray in a three-dimensional design drawing provided in an embodiment of the present application is shown;
[0056] Figure 5 The planar development diagram of the cable tray provided in the embodiment of the present application is shown;
[0057] Figure 6 It shows a southwest axis side view of the projection expansion model of the cable tray in the three-dimensional design drawing provided in the embodiment of the present application;
[0058] Figure 7 A schematic structural diagram of a device for generating a planar unfolded graphic provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0059] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying 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 in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0060] The present application embodiment provides a method for generating a planar unfolded graph, such as Figure 1 As shown, the method includes:
[0061] S101. Obtain installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and multiple first end positions and multiple second end positions of multiple cable trays in the cable tray.
[0062] The method for generating a plane unfolded graphic provided in an embodiment of the present application is mainly used in nuclear power plant engineering design scenarios. The executor of the embodiment of the present application is a device or equipment that can generate a plane unfolded graphic of a cable tray model in a three-dimensional design drawing. Specifically, it can be set on one side of the server. The server converts the three-dimensional spatial model of the arc-shaped cable tray in the three-dimensional design drawing into the drawing information of a two-dimensional plane diagram, and then draws a two-dimensional plane diagram of the cable tray and its projected curved wall based on the drawing information.
[0063] The 3D design drawing is a 3D space design drawing designed by the designer for the nuclear power plant, and the cable tray is a cable tray model structure arranged in 3D around the arc surface wall in the 3D space design drawing. In order to facilitate the subsequent dimensioning and construction information, this application proposes to expand the 3D surface of the cable tray in the 3D design drawing into a 2D plane, draw a 2D plane for annotation, and thus clearly display the layout and installation details of the cable tray.
[0064] Specifically, after obtaining the three-dimensional design drawing, determine the installation position of the cable tray structure contained therein. Each independent cable tray is composed of multiple standardized cable trays, which can be flat trays, elbow trays, three-way trays, etc. During the splicing process, the cable trays will be fixed together using connectors (such as bolts, clamps, etc.) to form a continuous and solid 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 cable tray in the cable tray. Furthermore, obtain the wall data of the curved wall model in the three-dimensional design drawing, such as the wall shape, curved radius, and wall thickness of the wall, so as to accurately understand the correspondence between the curved wall and the attached cable tray.
[0065] Optionally, if the three-dimensional design drawing includes multiple independent cable trays, the two-dimensional development graphic data of each cable tray is obtained respectively, and a two-dimensional development plan is drawn based on the graphic data of each cable tray. When each section of the independent cable tray is developed, the cable tray is developed in a counterclockwise direction.
[0066] S102. 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.
[0067] In this step, in the process of generating the plane expansion graphics of the cable tray in three-dimensional space, in order to ensure that the two-dimensional plane can accurately reflect the actual layout of the cable tray in three-dimensional space, it is necessary to project the cable tray in the three-dimensional design drawing onto the adjacent arc curved wall surface, so as to truly display the actual position and size of the cable tray on the curved wall surface, and avoid errors caused by deformation of the three-dimensional curved surface. Therefore, based on the installation position of the cable tray, on the arc curved wall of the nuclear power plant, the arc curved wall surface (interior wall or exterior wall) closest to the cable tray is determined as the projection wall surface to be projected by the cable tray.
[0068] Through the above method, the curved wall closest to the cable tray is selected as the projection wall as a reference to determine the position where the cable tray needs to be projected onto the arc curved wall.
[0069] S103, determining the center position and radius of the section circle of the projected wall on the horizontal section according to the wall data of the curved wall.
[0070] In this step, the section circle of the projected wall refers to the circular section formed by the three-dimensional arc 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. The section circle helps to clarify the area that needs to be paid attention to during the projection process, making complex three-dimensional shapes easier to handle and understand on the two-dimensional plane. Therefore, cut along the axis perpendicular to the curved wall, obtain the section circle of the projected wall on the cross section of the curved wall, and determine the center position and radius length of the section circle.
[0071] Through the above method, the three-dimensional arc curved wall is simplified into a section circle on a two-dimensional plane, thereby converting the complex three-dimensional curved surface into a simple two-dimensional plane. The section circle provides a standardized measurement reference for the generation of plane unfolding graphics, 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 amount of calculation for plane unfolding and the difficulty of processing curved surfaces.
[0072] S104. Project the cable tray onto the projection wall by plane projection method, and calculate the segmented arc length of each cable tray projected onto the projection wall and the total arc length of the cable tray projected onto the projection wall according to the first end point position, the second end point position, the center point position and the radius of the section circle of each cable tray in the cable tray.
[0073] In this step, the cable tray is projected onto the projection wall closest to it by plane projection method. For any section of cable tray in the cable tray, the tray will map an arc on the projection wall, and the arc length of the arc is the length of the cable tray plane expansion. In order to calculate the segmented arc length of each cable tray after projection, the center of the tangent circle is connected to the first end point and the second end point respectively to form two auxiliary lines, and the angle between the two auxiliary lines is the projection angle generated by the projection of the cable tray. Thereafter, the projection angle is multiplied by the radius of the tangent circle to obtain the segmented arc length of the cable tray projected onto the projection wall.
[0074] Furthermore, among the endpoints of multiple cable trays, the starting point and the end point of the cable tray are determined, and the angle between the two auxiliary lines corresponding to the starting point and the end point is the projection angle generated by the projection of the cable tray. The projection angle of the cable tray is multiplied by the radius of the section circle to obtain the arc length of the cable tray projected onto the projection wall.
[0075] Through the above method, the segmented arc length of each cable tray in the cable tray in the three-dimensional space projected onto the curved wall surface, as well as the total arc length of the entire cable tray projected onto the curved wall surface are calculated, so that the length of the cable tray in the two-dimensional unfolded view can truly reflect the size of the cable tray in the three-dimensional space, ensuring that the two-dimensional unfolded view fully matches the cable tray in the three-dimensional design view.
[0076] S105, generating a plane unfolding graphic corresponding to the cable tray according to the multiple segment arc lengths, the total arc length and the size data of the cable tray.
[0077] In this step, the calculated multiple segmented arc lengths mapped by the multiple cable trays and the curved arc lengths mapped by the cable bridge can be sent to the designer terminal as graphic data for drawing a two-dimensional unfolded view, so that the designer can draw the plane unfolded drawing of the cable bridge segment model after unfolding according to the received graphic data combined with the dimensional data of the cable bridge (such as the width of the cable bridge, the height of the bridge, and the distance from the bottom of the cable bridge to the reference plane).
[0078] Optionally, after drawing the two-dimensional figure, the supports and hangers are drawn in the expanded view, and the serial number of each support and hanger is identified. Thereafter, the distance between two adjacent supports and hangers is marked. This can provide clear guidance for construction personnel, ensure that the supporting structure and cable tray are installed according to the design requirements, reduce misunderstandings and communication problems, and ensure construction quality.
[0079] Furthermore, these graphic data and text identifiers such as support and hanger serial numbers are stored in common drawing formats such as DXF (Drawing Interchange Format or Drawing Exchange Format) drawing exchange files, which makes it easier for different teams or personnel to view and modify the same drawing files using different software tools, thereby promoting collaboration and information transfer.
[0080] The method for generating a plane unfolding graphic provided in the embodiment of the present application is based on the installation position of the cable tray in the three-dimensional design drawing of the nuclear power plant, determines the arc curved wall closest to the cable tray as the projection wall, and projects the cable tray onto the projection wall using the plane projection method. Afterwards, the center and radius of the tangent circle of the projection wall in the plane dimension are determined, and the segmented arc length formed by projecting each tray segment in the cable tray onto the curved wall is calculated in combination with the first end point position and the second end point position of each tray segment, as well as the total arc length formed by projecting the cable tray onto the curved wall, and then each segmented arc length, the total curved arc length, the size data of the cable tray, and the bracket data are used as graphic data to draw a two-dimensional graphic of the cable tray after plane unfolding. Through the above method, the three-dimensional layout model of the approximately circular cable tray and the curved wall where the bracket is rooted are unfolded to generate a plane projection relationship diagram of the curved wall and the cable tray unfolded along the curved surface, and the bracket data is marked in the plane projection relationship diagram, so that construction personnel can more intuitively understand the actual layout of the cable tray, support points and curved wall, which helps to more accurately locate and install the bracket during the construction process and ensure construction accuracy.
[0081] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, the embodiment of the present application provides another method for generating a plane unfolding figure, the method comprising:
[0082] S201. Obtain installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and multiple first end positions and multiple second end positions of multiple cable trays in the cable tray.
[0083] This step and Figure 1 The method of step S101 shown is the same and will not be repeated here.
[0084] S202. 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.
[0085] This step and Figure 1 The method of step S102 shown is the same and will not be repeated here.
[0086] S203: Determine the center position and radius of the section circle of the projected wall on the horizontal section according to the wall data of the curved wall.
[0087] In this step, the walls of nuclear power plants are usually cylinders, and the center position and radius of the section circle of the projected wall surface on the cross section can be obtained through the wall properties (such as wall diameter and 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 properties, the center position and radius can also be obtained by calculation.
[0088] In an embodiment of the present application, optionally, in order to ensure the accuracy of obtaining the center position and radius of the section circle, step S203, based on the wall data of the curved wall, determines the center position and radius of the section circle of the projected wall on the horizontal section, specifically including: judging whether the curved wall is a cylinder based on the shape of the wall; if the curved wall is a cylinder, cutting along the axial direction perpendicular to the curved wall to obtain a cross-section of the curved wall, and obtaining the section circle of the projected wall on the cross-section; determining the center position value and radius of the section circle based on the wall diameter and the wall thickness; if the curved wall is not a cylinder, obtaining multiple first coordinate values of multiple non-repeated coordinate points on the projected wall, wherein the z-axis coordinate value in the first coordinate value is 0; according to the multiple first coordinate values of the multiple coordinate points, the center position and radius of the section circle of the projected wall on the cross-section are determined.
[0089] In this embodiment, an arc curved wall adjacent to the cable tray is selected as the projection wall of the cable tray, and then a cut is made in a direction perpendicular to the axis of the cylindrical wall to obtain a cross section of the curved wall on a horizontal plane. In the three-dimensional design drawing, it is determined whether the curved wall of the nuclear power plant is a cylinder. If so, 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 section circle of the projected wall. If the projected wall is the inner wall of the curved wall, the wall radius is determined in the wall data based on the wall diameter. The wall thickness is subtracted from the wall radius to obtain the distance from the center of the circle to the projected wall, that is, the radius of the section circle.
[0090] Furthermore, if the curved wall is not a regular cylinder, that is, the wall model may contain a complex data structure hierarchy, it is difficult to directly obtain the circular data of the cross-section of the curved wall. At this time, three non-overlapping coordinate points on the projected wall can be picked up, and the three coordinate points can be converted to the same two-dimensional plane. Through geometric relationships, the radius and center position of the section circle of the projected wall on the two-dimensional plane can be calculated.
[0091] In an embodiment of the present application, optionally, the step of determining the center and radius of the section circle of the projected wall on the cross section based on the first coordinate values of the three coordinate points specifically includes: determining the center of the section circle of the projected wall on the cross section based on the three coordinate points by the perpendicular bisector method; obtaining the second coordinate value of the center of the section circle; and calculating the radius of the section circle based on any first coordinate value and the second coordinate value.
[0092] In this embodiment, the three coordinate points A, B, and C on the projection wall are known, and the z component coordinates of the three coordinate points are set to 0 in advance so that the three are in the XOY horizontal plane. The center of the section circle can be obtained by finding the intersection point of the perpendicular bisectors of the two line segments AB and BC, and then the radius of the section circle can be obtained using analytic geometry based on the first coordinate value of point A and the second coordinate value of the center.
[0093] S204. Project the cable tray onto the projection wall by plane projection method.
[0094] S205. Taking the center of the section circle as the origin, construct a line parallel to the x-axis along the x-axis direction.
[0095] S206: Determine a projection angle formed by projecting each cable tray onto the projection wall according to the center position, the line parallel to the x-axis, the first endpoint position, and the second endpoint position.
[0096] In steps S204 to S206, the cable tray is projected onto the projection wall using a plane projection method, and the center of the section circle is taken as the origin, and a line parallel to the x-axis is constructed along the x-axis direction. A ray is drawn from the center of the circle and passes through each end point of each cable tray in turn, and is extended to the projection wall to form a projection point where each end point is projected onto the projection wall. The rotation angle of the ray relative to the line parallel to the x-axis is the phase angle of the end point. The phase angle of the cable tray can be obtained by the phase angles of the two end points of each cable tray.
[0097] In the actual application scenario, taking a straight segment pallet as an example, the ARC (Automatic Reference Counting) object in the PML (Programmable Markup Language) script is used to construct an arc with a known center and radius. The arc 0 degrees starts at the X axis, and the total angle of the arc is 360 degrees, that is, a circle. The center elevation (Z value) is the same as the distance from the feature point (i.e., the pallet endpoint) to the reference plane. The ARC.Near(!pos) function method can be used to obtain the phase angle between the pos coordinate point and the closest point of the arc ARC. The phase angle calculation starts from the 0 degree axis defined by the arc ARC. This method can obtain the phase angles of the two end points of the pallet segment in their respective concentric circles.
[0098] In an embodiment of the present application, optionally, step S206 determines the projection angle formed by projecting each cable tray onto the projection wall according to the position of the center of the circle, the line parallel to the x-axis, the position of the first endpoint, and the position of the second endpoint, specifically including: for any cable tray, connecting the center of the circle and the first endpoint to form a first auxiliary line, and connecting the center of the circle and the second endpoint to form a second auxiliary line; obtaining a first phase angle between the line parallel to the x-axis and the first auxiliary line, and a second phase angle between the line parallel to the x-axis and the second auxiliary line; and subtracting the first phase angle from the second phase angle to obtain the projection angle of the cable tray.
[0099] In this embodiment, if Figure 3 As shown, it is a top view of the horizontal plane of any section of the cable tray in the cable tray projected onto the projection wall. Among them, the center of the section circle is connected to the first end point of the cable tray to form an auxiliary line 1, and the concentric circle 1 corresponding to the first end point of the cable tray is constructed. The angle between the X-axis parallel line and the auxiliary line 1 is the phase angle 1 (111°) of the first end point in its concentric circle; the center of the section circle is connected to the second end point of the cable tray to form an auxiliary line 2, and the concentric circle 2 corresponding to the first end point of the cable tray is constructed. The angle between the X-axis parallel line and the auxiliary line 2 is the phase angle 2 (150°) of the second end point in its concentric circle. The difference between the phase angle 2 and the phase angle 1 is 39°, which is the projection angle obtained by the projection of the cable tray.
[0100] S207, obtaining the segmented arc length formed by projecting each projection tray onto the projection wall by multiplying the projection angle of each cable tray by the radius of the tangent circle.
[0101] In this step, for any section of the cable tray, the projection angle of the cable tray projection is calculated according to the difference in phase angles corresponding to the two end points of the cable tray, and then the projection angle is multiplied by the radius of the tangent circle of the projection wall to obtain the segmented arc length of the cable tray segmented projection onto the projection wall. Figure 4 As shown in the figure, it is a top view of the projection unfolding model of the cable tray in the three-dimensional design drawing. From the figure, it can be seen that a ray is drawn through the center of the circle to the two end points of each tray segment and extended to the projection point on the arc surface wall, so that the length of the arc formed on the arc wall is consistent with the length of the segment unfolded into a straight line model.
[0102] S208, adding up the segmented arc lengths of the plurality of cable trays to obtain a total arc length formed by projecting the cable tray onto the projection wall.
[0103] In this step, the segmented arc lengths of all cable trays are added together to obtain the total arc length produced by the overall projection of the cable tray.
[0104] In an embodiment of the present application, optionally, in order to ensure the accuracy of the calculated segmented arc length and the total arc length, after adding multiple segmented arc lengths of multiple cable trays to obtain the total arc length formed by projecting the cable tray onto the projection wall, it also includes: determining the starting endpoint position of the cable tray based on multiple first endpoint positions; determining the ending endpoint position of the cable tray based on multiple second endpoint positions; calculating the curved surface arc length formed by projecting the cable tray onto the projection wall based on the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle; comparing the curved surface arc length with the projection arc length, and if the curved surface arc length is inconsistent with the projection 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 tray, in order to ensure the accuracy of the total arc length and the segmented arc length of each segment tray, the starting endpoint of the cable tray is determined among all the first endpoints, and the ending endpoint of the cable tray is determined among all the second endpoints. Thereafter, based on the starting endpoint and the ending endpoint, the projection angle generated by the projection of the cable tray to the projection wall is obtained to obtain the arc length of the curved surface. The sum of the segmented arc lengths of multiple segments is compared 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 means that the calculation of each segmented arc length is accurate. If the total arc length is inconsistent with the curved surface arc length, there may be a problem with the calculation of a certain segment. At this time, an error prompt message is sent 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, the arc length of the curved surface formed by projecting the cable tray to the projection wall is calculated based on the starting endpoint position, the ending endpoint position, the center position and the radius of the section circle, specifically including: connecting the center of the circle and the starting endpoint to form a third auxiliary line; connecting the center of the circle and the ending endpoint to form a fourth auxiliary line; obtaining a third phase angle between the line parallel to the x-axis and the third auxiliary line, and a fourth phase angle between the line parallel to 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; and multiplying the projection angle of the cable tray by the radius of the section circle to obtain the arc length of the curved surface formed by projecting the cable tray to the projection wall.
[0107] In this embodiment, a ray is drawn from the center of the circle to the starting end point to form a third auxiliary line, which is projected onto the projection wall to form a projection point, and a ray is drawn from the center of the circle to the ending end point to form a fourth auxiliary line, which is projected onto the projection wall to form a projection point. A third phase angle between the third auxiliary line and the line parallel to the X-axis, and a fourth phase angle between the fourth auxiliary line and the line parallel to the X-axis are obtained, and the third phase angle is subtracted from the fourth phase angle to obtain the projection angle of the cable tray, and then the projection angle of the cable tray is multiplied by the radius of the tangent circle to obtain the arc length of the curved surface of the cable tray projected onto the projection wall.
[0108] Through the above method, different methods are used to calculate the arc length generated by the projection of the cable tray to the projection wall, and the accuracy is verified by using two calculation results, 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 unfolding graphic corresponding to the cable tray according to the multiple segment arc lengths, the total arc length and the size data of the cable tray.
[0110] This step and Figure 1 The method of step S105 shown is the same and will not be repeated here.
[0111] In actual application scenarios, after calculating the segmented arc length corresponding to each cable tray and the total arc length of the cable tray, first mark the reference plane in the two-dimensional plan view, and use the distance from the reference plane to the projected wall and the arc length of the cable tray's unfolded surface to draw the projected wall. Afterwards, based on 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 view, connect all endpoints in sequence according to the topological relationship of the three-dimensional space model, and use the cable tray width and height in the three-dimensional space model to draw the outer contour of the projected cable tray. In addition, make text annotations on the name of the support point in the cable tray and the distance between two adjacent support points on the generated plane unfolding figure to form the final generated plane unfolding figure. Figure 5The figure shows the plane unfolding diagram of the drawn cable tray. The figure shows the plane 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. The figure corresponds to the three-dimensional model of the cable tray from left to right in the counterclockwise direction. After drawing each section of the cable tray, multiple sections of the cable tray are connected in sequence to form a plane unfolding diagram of the cable tray. The supports and hangers are drawn in the unfolding diagram, and the serial number of each support and hanger is marked (for example, RX4MCT-SH-342). After that, the distance between two adjacent supports and hangers is marked, so that the drawing can express the distance from the starting position of the cable tray curved surface unfolding to each support point along the arc wall surface, thereby providing clear guidance for construction personnel to ensure that the support structure and cable tray are installed according to the design requirements, reduce misunderstandings and communication problems, and ensure construction quality.
[0112] Optionally, if the designer needs to use AVEVA Everything3D or PDMS 3D software for direct drawing, the arc length of the cable tray projected to the projection wall is calculated based on the phase angle of the starting and ending endpoints of the cable tray projected to the projection wall and the radius of the section circle. A corresponding plane wall is established in three-dimensional space, and the length of the plane wall is the arc length of the surface. Afterwards, a three-dimensional replacement model (rectangular model) is generated and arranged in the three-dimensional space model using the phase angle formed by each end point of the cable tray projected to the projection wall and the distance between the end point and the reference plane (i.e., elevation). The unfolded projection wall and cable tray are respectively located in two parallel facades, and the final surface unfolding view can be obtained using the conventional plane 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 pallet segment. The local X-axis length of the BOX is the projection arc length L of the corresponding original segment. When the feature points (i.e., endpoints) at both ends of the segment have a height difference h, the height difference and the arc length are used to solve the inverse tangent function. angleRotate = ATAN (h / L), this angle is the proxy model BOX. The pitch angle needs to be adjusted, and the X-axis side length of the BOX should also be modified accordingly as the hypotenuse of the right triangle becomes longer. Adjust the BOX coordinates, that is, the phase angle of the original cable tray segment replaced by the BOX is multiplied by the difference between the angleMin and the arc radius. The result 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 endpoints (P4 and P1) on both sides of the BOX are the same as the elevations of the endpoints of the original cable tray segment. Figure 6 As shown, this is the southwest axis side view of the projection unfolded model of the cable tray in the three-dimensional design drawing. Since the cable tray has elevation changes in the vertical direction, when the height difference of the cable tray unfolded from a three-dimensional perspective changes, the projection unfolded model of the cable tray after projection can still reflect the height fluctuations.
[0113] Through the above method, the projection graphics are obtained by projecting along the two-dimensional space of the wall surface, and the relationship between the three-dimensional model of the cable tray and the projection graphics is generated, and the necessary engineering information such as the bracket name is marked on the two-dimensional projection diagram. The cable tray is decomposed into multiple cable trays by differential method, and the projection calculation is performed on each section. The projection segments are sequentially connected on the two-dimensional diagram, and finally the surface unfolding view information of the two-dimensional engineering drawing is formed.
[0114] In one embodiment of the present application, optionally, the method for generating a plane unfolded graph in the embodiment of the present application includes the following six steps:
[0115] S1: Obtain the cable tray model to be projected.
[0116] Specifically, in the three-dimensional design drawing, a cable tray model arranged in a ring is selected as a projection source, wherein the cable tray model includes a plurality of cable trays and their auxiliary brackets.
[0117] S2: According to the cable tray model, determine the projection wall of the cable tray, and obtain the center and radius of the section circle of the projection wall on the two-dimensional plane.
[0118] S3: Obtain the characteristic points and characteristic dimensions of each tray segment in the cable tray.
[0119] Specifically, if the cable tray is a straight segment, extract the coordinates of its inlet and outlet endpoints, the width and height of the cable tray. If the cable tray is a curved segment (such as an arc elbow or a bevel elbow), extract the coordinates of the inlet and outlet endpoints and the coordinates of the intersection of the inlet and outlet axes, and use the endpoints of the above segments as feature points.
[0120] S4: The center of the section circle passes through the feature point to obtain the phase angle corresponding to each tray segment.
[0121] Specifically, the phase angles of the starting and ending points of the cable tray are found in the phase angles of all feature points (i.e., endpoints) during the projection process. When the cable tray is unfolded as a whole, the phase angles of the starting and ending points of the cable tray are found. When unfolding and drawing a two-dimensional graphic, the wall surface is unfolded and drawn only within the phase angle range of the starting and ending points, which can effectively reduce the scope of the two-dimensional drawing.
[0122] S5: Calculate the segment arc length of each cable tray projected onto the projection wall according to the phase angle and the radius of the tangent circle.
[0123] S6: Draw the generated graph of the plane unfolded figure.
[0124] Furthermore, after the expanded two-dimensional graphics are drawn, the graphic data (such as lines, text marks, etc.) in the two-dimensional graphics are directly stored in a common drawing format such as DXF, which is convenient for cross-platform use and sharing.
[0125] Further, as Figure 1 For the specific implementation of the method, the present application embodiment provides a device 300 for generating a planar unfolded graph, such as Figure 7 As shown, the device includes: an acquisition module 301 , a first determination module 302 , a second determination module 303 , a projection module 304 , a calculation module 305 and a generation module 306 .
[0126] An acquisition module 301 is used to acquire installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and multiple first end positions and multiple second end positions of multiple cable trays in the cable tray;
[0127] The first determination module 302 is used to determine the projection wall surface to be projected by the cable tray on the curved wall according to the installation position of the cable tray;
[0128] The second determination module 303 is used to determine the center position and radius of the section circle of the projected wall surface on the horizontal section according to the wall data of the curved wall;
[0129] The projection module 304 is used to project the cable tray onto the projection wall by plane projection method; the calculation module 305 is used to calculate the segmented arc length of each cable tray projected onto the projection wall and the total arc length of the cable tray projected onto the projection wall according to the first end position, the second end position, the center position and the radius of the tangent circle of each cable tray in the cable tray;
[0130] The generating module 306 is used to generate a plane unfolding figure corresponding to the cable tray according to the multiple segment arc lengths, the total arc length and the size data of the cable tray.
[0131] In a specific application scenario, the wall data includes wall shape, wall diameter and wall thickness. The second determination module 303 is specifically used to:
[0132] According to the shape of the wall, determine whether the curved wall is a cylinder;
[0133] If the curved wall is a cylinder, cut it along the axis direction perpendicular to the curved wall to obtain the cross section of the curved wall, and obtain the section circle of the projected wall on the cross section;
[0134] Determine the center position and radius of the section circle according to the wall diameter and wall thickness;
[0135] If the curved wall is not a cylinder, obtain multiple first coordinate values of multiple non-repeated coordinate points on the projection wall, wherein the z-axis coordinate value of the first coordinate value is 0;
[0136] According to the multiple first coordinate values of the multiple coordinate points, the center position and radius of the tangent circle of the projected wall are determined.
[0137] In a specific application scenario, the second determining module 303 is further used to:
[0138] By using the perpendicular bisector method, the center position of the tangent circle of the projected wall surface on the cross section is determined according to multiple coordinate points;
[0139] Get the second coordinate value of the center of the section circle;
[0140] The radius of the section circle is calculated according to any first coordinate value and second coordinate value.
[0141] In a specific application scenario, the projection module 304 is specifically used for:
[0142] The cable tray is projected onto the projection wall through the plane projection method.
[0143] In a specific application scenario, the calculation module 305 is specifically used to:
[0144] Take the center of the section circle as the origin and construct a line parallel to the x-axis along the x-axis direction;
[0145] Determine 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;
[0146] The segmented arc length formed by projecting each projection tray onto the projection wall is obtained by multiplying the projection angle of each cable tray by the radius of the section circle;
[0147] The lengths of multiple segmented arcs of multiple cable trays are added together to obtain the total arc length formed by projecting the cable tray onto the projection wall.
[0148] In a specific application scenario, the calculation module 305 is further used for:
[0149] 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;
[0150] Obtaining a first phase angle between the line parallel to the x-axis and the first auxiliary line, and a second phase angle between the line parallel to the x-axis and the second auxiliary line;
[0151] The projection angle of the cable tray is obtained by subtracting the first phase angle from the second phase angle.
[0152] In specific application scenarios, such as Figure 7 As shown, the device also includes:
[0153] A third determination module 307, configured to determine a starting endpoint position of the cable tray according to the plurality of first endpoint positions;
[0154] A fourth determination module 308 is used to determine the termination endpoint position of the cable tray according to the plurality of second endpoint positions;
[0155] The calculation module 305 is also used to calculate the arc length of the curved surface formed by projecting the cable tray to the projection wall surface according to the starting endpoint position, the ending endpoint position, the center position and the radius of the tangent circle;
[0156] The sending module 309 is used to compare the total arc length with the arc length of the curved surface. If the total arc length is inconsistent with the arc length of the curved surface, an error prompt message is sent to the designer terminal.
[0157] In a specific application scenario, the calculation module 305 is further used for:
[0158] Connect the center of the circle and the starting endpoint to form a third auxiliary line;
[0159] Connect the center of the circle and the end point to form the fourth auxiliary line;
[0160] Obtaining a third phase angle between the line parallel to the x-axis and the third auxiliary line, and a fourth phase angle between the line parallel to the x-axis and the fourth auxiliary line;
[0161] The projection angle of the cable tray is obtained by subtracting the third phase angle from the fourth phase angle;
[0162] The length of the curved surface arc formed by the projection of the cable tray to the projection wall is obtained by multiplying the projection angle of the cable tray by the radius of the section circle.
[0163] The device 300 for generating a plane unfolding figure provided in the embodiment of the present application determines the arc curved 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 plane projection method. Afterwards, the center and radius of the tangent circle of the projection wall in the plane dimension are determined, and the segmented arc length formed by projecting each segment of the tray in the cable tray onto the curved wall is calculated in combination with the first end point position and the second end point position of each tray segment, as well as the total arc length formed by projecting the cable tray onto the curved wall, and then each segmented arc length, the total curved arc length, the size data of the cable tray, and the bracket data are used as graphic data to draw a two-dimensional graphic of the cable tray after plane unfolding. Through the above method, the three-dimensional layout model of the approximately circular cable tray and the curved wall where the bracket is rooted are unfolded to generate a plane projection relationship diagram of the curved wall and the cable tray unfolded along the curved surface, and the bracket data is marked in the plane projection relationship diagram, so that construction personnel can more intuitively understand the actual layout of the cable tray, support points and curved wall, which helps to more accurately locate and install the bracket during the construction process and ensure 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 used to execute the program stored in the memory and execute the method for generating a planar unfolded graph in the above embodiment.
[0165] In an exemplary embodiment, the present application further provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for generating a planar unfolded graphic are implemented.
[0166] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by 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, which 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 a number of instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0167] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0168] Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple units.
[0169] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0170] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A method for generating a plane unfolded graph, characterized in that: include: Acquire installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and a plurality of first end positions and a plurality of second end positions of a plurality of cable trays in the cable tray; According to the installation position of the cable tray, determining the projection wall surface on which the cable tray is to be projected on the curved wall; Determine the center position and radius of the section circle of the projected wall on the horizontal section according to the wall data of the curved wall; The cable tray is projected onto the projection wall surface by a plane projection method, and according to the first end point position, the second end point position, the center point position and the radius of each cable tray in the cable tray, 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 are calculated; A plane unfolding graphic corresponding to the cable tray is generated according to the multiple segmented arc lengths, the total arc length and the size data of the cable tray.
2. The method according to claim 1, characterized in that The wall data includes wall shape, wall diameter and wall thickness. The step of determining the center position and radius of the section circle of the projected wall on the horizontal section according to the wall data of the curved wall specifically includes: According to the shape of the wall, determining whether the curved wall is a cylinder; If the curved wall is a cylinder, cutting is performed along an axial direction perpendicular to the curved wall to obtain a cross section of the curved wall, and on the cross section, a section circle of the projected wall is obtained; Determine the center position and radius of the section circle according to the wall diameter and the wall thickness; If the curved wall is not a cylinder, obtaining a plurality of first coordinate values of a plurality of non-repeated coordinate points on the projection wall, wherein the z-axis coordinate value of the first coordinate value is 0; The center position and the radius of the section circle of the projection wall are determined according to the multiple first coordinate values of the multiple coordinate points.
3. The method according to claim 2, characterized in that The step of determining the center position and the radius of the section circle of the projection wall according to the multiple first coordinate values of the multiple coordinate points specifically includes: Determine the center position of the section circle of the projected wall surface on the cross section according to the plurality of coordinate points by using the perpendicular bisector method; Obtaining a second coordinate value of the center of the section circle; The radius of the section circle is calculated according to any one of the first coordinate values 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 a 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 first end point position, the second end point position, the center point position and the radius of each cable tray in the cable tray, specifically comprises: Projecting the cable tray onto the projection wall by plane projection method; Taking the center of the section circle as the origin, construct an x-axis parallel line along the x-axis direction; Determine a projection angle formed by projecting each cable tray onto the projection wall according to the center position of the circle, the x-axis parallel line, the first end point position, and the second end point position; The segmented arc length formed by projecting each projection tray onto the projection wall is obtained by multiplying the projection angle of each cable tray by the radius of the section circle; The segmented arc lengths of the plurality of cable trays are added together to obtain a total arc length formed by projecting the cable tray onto the projection wall.
5. The method according to claim 4, characterized in that The step 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 includes: For any cable tray, the center of the circle and the first end point are connected to form a first auxiliary line, and the center of the circle and the second end point are connected to form a second auxiliary line; Acquire a first phase angle between the x-axis parallel line and the first auxiliary line, and a second phase angle between the x-axis parallel line and the second auxiliary line; The projection angle of the cable tray is obtained by subtracting the first phase angle from the second phase angle.
6. The method according to claim 4, characterized in that After adding the segmented arc lengths of the plurality of cable trays to obtain the total arc length formed by projecting the cable tray onto the projection wall, the method further includes: Determining the starting endpoint position of the cable tray according to the plurality of first endpoint positions; Determining the termination endpoint position of the cable tray according to the plurality of second endpoint positions; Calculate the arc length of the curved surface formed by projecting the cable tray onto the projection wall surface according to the starting endpoint position, the ending endpoint position, the center position of the tangent circle, and the radius; The total arc length is compared with the curved surface arc length. If the total arc length is inconsistent with the curved surface arc length, an error prompt message is sent to the designer terminal.
7. The method according to claim 6, characterized in that The step of calculating the arc length of the curved surface formed by projecting the cable tray onto the projection wall surface according to the starting endpoint position, the ending endpoint position, the center position of the tangent circle, and the radius specifically includes: Connecting the center of the circle and the starting endpoint to form a third auxiliary line; Connecting the center of the circle and the end point to form a fourth auxiliary line; Acquire a third phase angle between the line parallel to the x-axis and the third auxiliary line, and a fourth phase angle between the line parallel to the x-axis and the fourth auxiliary line; Obtaining a projection angle of the cable tray by subtracting the third phase angle from the fourth phase angle; The arc length of the curved surface formed by projecting the cable tray onto the projection wall surface is obtained by multiplying the projection angle of the cable tray by the radius of the section circle.
8. A device for generating a planar unfolded graph, characterized in that: include: An acquisition module, used to acquire installation data of a cable tray and wall data of a curved wall in a three-dimensional design drawing, wherein the installation data includes an installation position of the cable tray and a plurality of first end positions and a plurality of second end positions of a plurality of cable trays in the cable tray; A first determining module is used to determine the projection wall surface to be projected by the cable tray on the curved wall according to the installation position of the cable tray; A second determination module is used to determine the center position and radius of the section circle of the projected wall surface on the horizontal section plane according to the wall data of the curved wall body; A projection module is used to project the cable tray onto the projection wall surface by plane projection method; a calculation module is used 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, the second end point position, the center point position and the radius of each cable tray in the cable tray; A generating module is used to generate a plane unfolding figure corresponding to the cable tray according to a plurality of segment arc lengths, the total arc length and the size data of the cable tray.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When a 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 having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method for quickly and accurately calculating length of main cable at suspension bridge saddle
CN111259582A
Three-dimensional model adjustment method and device, equipment and storage medium
CN114092676A
BIM component recommendation method and device and electronic equipment
CN115048588A
Arc window design method and device and storage medium
CN116127565A
Method, device and equipment for measuring wall body and medium
CN116203585A