Method for segmenting underground pipeline based on threshold value and projecting underground pipeline to longitudinal section
Through threshold segmentation and cross angle display technology, the problem of displaying the location of underground pipelines in the design of cable tunnels or pipe corridors is solved, and the rationality of the spatial layout of cable tunnels or pipe corridors is achieved and the design efficiency is improved.
Patent Information
- Application Number
- CN202410475790.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-27
AI Technical Summary
In the design and planning stage of cable tunnels or pipe corridors, it is difficult to accurately locate and display the location of underground pipelines with existing technology, resulting in highly subjective and inefficient designs, which affects the rationality of the spatial layout of cable tunnels or pipe corridors.
Using a method based on threshold segmentation, by obtaining design parameter values such as projection range threshold and intersection angle threshold, the underground pipelines in the area are segmented and displayed on the longitudinal section in different styles according to the intersection angle, ensuring the rationality of the spatial layout of cable tunnels or pipe corridors.
It achieves a clear display of underground pipelines in cable tunnels or pipe gallery spaces, reduces unnecessary interference, improves design efficiency and layout rationality, and is suitable for actual engineering needs.
Smart Images

Figure CN118551507A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of displaying underground pipelines on longitudinal sections, and in particular to a method for segmenting underground pipelines based on a threshold value and projecting the pipelines on longitudinal sections. Background Art
[0002] In urbanization construction, many power lines are set up in underground cable tunnels or pipe corridors. The underground pipelines such as water pipes, natural gas pipes, drainage pipes, power cables, and communication cables are densely arranged in the design area of the cable tunnel or pipe corridor. The impact of these underground pipelines on the cable tunnel or pipe corridor needs to be considered. Otherwise, it will cause adverse consequences such as power outages, water shortages, and gas shortages during construction, affecting people’s normal life order.
[0003] In the design and planning stage of cable tunnels or pipe corridors, a comprehensive design of plane design and longitudinal section is generally adopted. How to accurately locate the pipeline position within the spatial range of the cable tunnel or pipe corridor in the longitudinal section? At present, the entire pipeline can only be displayed manually. The entire display range is too large, which affects the overall display effect; and the display style needs to be set manually, resulting in strong subjectivity and low efficiency in the design.
[0004] In view of this, it is necessary to develop a method for segmenting underground pipelines based on thresholds and projecting them on longitudinal sections, so as to solve the problem of how to display the spatial relative position of the underground pipelines in the channel area and the cable tunnel or pipeline gallery, so as to better design and plan the cable tunnel or pipeline gallery. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a method for dividing underground pipelines based on thresholds and projecting them on longitudinal sections. When designing cable tunnels or pipe galleries, underground pipelines in the area are divided based on range thresholds and displayed in the longitudinal sections of the cable tunnels or pipe galleries in different styles according to intersection angle thresholds, thereby ensuring the rationality of the spatial layout of the cable tunnels or pipe galleries.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for segmenting underground pipelines based on a threshold value and projecting them onto a longitudinal section comprises the following steps: Step 1, obtaining the necessary parameter values for segmenting the pipeline and projecting it on the longitudinal section; The necessary parameter values include the name of the designed cable tunnel or pipe gallery, the projection range threshold, and the crossing angle threshold of the control style; Step 2, determine the segmentation area and obtain the segmentation pipeline set to be segmented; Draw dividing lines on both sides parallel to the center line of the cable tunnel or pipe gallery instance according to the projection range threshold. The area between the dividing lines is the threshold segmentation area range. Traverse all underground pipelines in the figure and find underground pipelines that intersect with the threshold segmentation area, which is the segmented pipeline set. Step 3, dividing the underground pipelines according to the division control method; The segmentation control method is as follows: obtaining the intersection of the segmentation line and the segmentation pipeline, using the intersection to segment the segmentation pipeline, and the pipeline segment within the segmentation area is the projected segmentation pipeline segment; Step 4, determine the style of the projection segmentation pipeline segment; The determination method is: obtain the intersection angle between the projected segmented pipeline segment and the center line of the cable tunnel or pipeline gallery, compare it with the intersection angle threshold of the control style, and determine the display style of the projected segmented pipeline segment on the longitudinal section; Step 5, modify the projection segmentation pipe line segment style and project it to the longitudinal section; Assign the corresponding display style to the projected split pipe line segment and ensure that the projected split pipe line segment is projected and displayed on the longitudinal section.
[0007] A further improvement of the technical solution of the present invention is that in step 1, the necessary parameter values of the solution are obtained from the database: the cable tunnel or pipeline corridor baseline is used as the center of the segmentation area, the projection range threshold determines the size of the segmentation area, and the intersection angle threshold can determine the display style of the pipeline segment after longitudinal section projection.
[0008] A further improvement of the technical solution of the present invention is that in step 2, the specific implementation process of determining the segmentation area and obtaining the segmentation pipeline set to be segmented includes the following steps: S21, obtain all visible pipeline sets C in the drawing pipe ; S22, taking the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the left by the segmentation threshold value to obtain the segmentation line PL1; S23, also with the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the right by the segmentation threshold value to obtain the segmentation line PL2; S24, the area between the segmentation lines PL1 and PL2 is the threshold segmentation area range, and all visible pipeline sets C are detected. pipe Whether it intersects with the threshold segmentation area range, all intersecting pipelines are obtained as the segmentation pipeline set.
[0009] A further improvement of the technical solution of the present invention is that in step 3, the specific implementation process of traversing the segmentation pipeline set to obtain the intersection of the segmentation threshold interval and the segmentation pipeline includes the following steps: S31, determine the intersection of the split pipeline Pipe1 and the split line PL1, and add them to the split intersection set L point Similarly, the intersection of the split pipeline Pipe1 and the split line PL2 is also added to the split intersection set L point ; S32, calculate the distance D from the starting point of the segmented pipeline Pipe1 to the cable tunnel or pipeline gallery baseline. When D is less than the segmentation threshold, it proves that the starting point of the segmented pipeline Pipe1 is within the segmentation threshold range, and this starting point is added to the segmentation intersection set L point , use the same method to determine whether the end point is within the segmentation threshold range; S33, split intersection set L point Sort the starting points of the pipeline Pipe1 by distance from small to large to get a new set of segmentation intersections LN point ; S34, calculate LN according to the proportionality of the two sides of similar triangles point The vertical z-direction value of each intersection point; S35, traverse all the segmentation pipeline sets, repeat S31-S34, and calculate the intersection point set of each segmentation pipeline.
[0010] A further improvement of the technical solution of the present invention is that in step 3, according to the segmentation intersection set LNpoint, the principle of segmenting the pipeline to obtain the projection pipeline set includes the following contents: (1) Split the intersection set LN point If the starting point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the pipeline is copied and the first point is used as the end point of the copied pipeline. (2) Split the intersection set LN point If the end point of the segmentation pipeline Pipe1 is within the segmentation threshold, then the segmentation intersection set LN point The penultimate point is used as the pipeline starting point, and the changed pipeline is used as the pipeline to be projected within the threshold range and added to the projection pipeline set; (3) Split the intersection set LN point If there are other points in the list, the pipeline is copied, the previous intersection point is used as the starting point of the copied pipeline, and this point is used as the end point of the copied pipeline; if the list position of this intersection point is an even number, the copied pipeline is a projection pipeline within the threshold range and is added to the projection pipeline set; (4) If the end point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the segmentation intersection set LN point The last point is used as the starting point of the split pipeline Pipe1.
[0011] A further improvement of the technical solution of the present invention is that in step 4, the method for determining the projection pipeline set pattern includes: S41, calculating the inclination angle angle1 of the projected pipeline segment, the inclination angle angle2 of the cable tunnel or pipeline gallery at the intersection with the projected pipeline segment, and the absolute value of the difference between angle2 and angle1 is the intersection angle angle of the projected pipeline segment and the cable tunnel or pipeline gallery; S42, angle is compared with a control style threshold angle. If angle is smaller than the threshold angle, the pipeline is set to display pipeline style 1; if angle is larger than the threshold angle, the pipeline is set to display pipeline style 0.
[0012] A further improvement of the technical solution of the present invention is that in step 5, the pipeline style is obtained according to the threshold angle and assigned to the corresponding projected pipeline segment, and the pipeline segment is projected and displayed on the longitudinal section.
[0013] Due to the adoption of the above technical solution, the technical progress achieved by the present invention is: 1. The present invention determines the separation range of the cable tunnel or pipe gallery through the projection range threshold, can directly find the underground pipelines that affect the cable tunnel or pipe gallery, and divide the affected pipelines according to the projection area determined by the projection range, can clearly see the relationship diagram between the underground pipeline and the cable tunnel or pipe gallery, take precautions in advance, and reduce unnecessary pipeline interference.
[0014] 2. The control style intersection angle threshold in the present invention is based on the different intersection angles between the cable tunnel or pipe gallery and the underground pipeline. Different styles are displayed on the longitudinal section. Designers can quickly locate pipelines with different impacts according to the styles, ensuring a more reasonable layout of the cable tunnel or pipe gallery, which is more in line with actual engineering needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. Figure 1 It is a schematic diagram of the overall process of the method for segmenting underground pipelines based on threshold values and projecting them onto longitudinal sections provided in an embodiment of the present invention; Figure 2 is a threshold range area diagram in an embodiment of the present invention; Figure 3 is a flow chart of calculating the intersection of the segmentation pipeline set in an embodiment of the present invention; Figure 4 is a flow chart of obtaining a projection pipeline set in an embodiment of the present invention; Figure 5 1 is a schematic diagram of a projection pipeline pattern 1 in an embodiment of the present invention; Figure 6 It is a schematic diagram of projection pipeline style 0 in an embodiment of the present invention. DETAILED DESCRIPTION
[0016] It should be noted that the terms "including" and "having" and any variations thereof in the specification and claims of the present invention and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or apparatus.
[0017] The present invention is further described in detail below with reference to the accompanying drawings and embodiments: like Figure 1 As shown, the present invention provides a method for segmenting underground pipelines based on a threshold value and projecting them onto a longitudinal section, comprising the following steps: Step 1, obtain the necessary parameter values for segmenting the pipeline and projecting it on the longitudinal section; Required parameter values include: the designed cable tunnel or duct gallery or duct gallery name, the projection range threshold, and the crossing angle threshold that controls the style.
[0018] Necessary parameter values are obtained from the database, where the cable tunnel or pipe gallery baseline is used as the center of the segmentation area, the projection range threshold determines the size of the segmentation area, and the intersection angle threshold can determine the display style of the pipeline segment after longitudinal section projection.
[0019] Step 2: determine the segmentation area and obtain the pipeline set to be segmented; Specifically, dividing lines on both sides parallel to the center line of the cable tunnel or pipe gallery instance are drawn according to the projection range threshold. The area between the dividing lines is the threshold segmentation area range. All pipelines in the graph are traversed to find pipelines that intersect with the threshold segmentation area, which is the segmented pipeline set.
[0020] like Figure 2 As shown, the specific implementation process of determining the segmentation area and obtaining the pipeline set to be segmented is as follows: S21, obtain all visible pipeline sets C in the drawing pipe ; S22, taking the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the left by the segmentation threshold value to obtain the segmentation line PL1; S23, also with the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the right by the segmentation threshold value to obtain the segmentation line PL2; S24, the area between the segmentation lines PL1 and PL2 is the threshold segmentation area range, and all visible pipeline sets C are detected. pipe Whether it intersects with the threshold segmentation area range, all intersecting pipelines are obtained as the segmentation pipeline set.
[0021] Step 3, separating the pipelines according to the segmentation control strategy; Specifically, the segmentation control strategy is: find the intersection of the segmentation line and the segmentation pipeline, use the intersection to segment the segmentation pipeline, and the pipeline segment within the segmentation area is the projected segmentation pipeline segment.
[0022] like Figure 3 As shown, the specific implementation process of traversing the segmentation pipeline set to obtain the intersection of the segmentation threshold interval and the segmentation pipeline includes the following steps: S31, determine the intersection of the split pipeline Pipe1 and the split line PL1, and add them to the split intersection set L point Similarly, the intersection of the split pipeline Pipe1 and the split line PL2 is also added to the split intersection set L point ; S32, calculate the distance D from the starting point of the segmented pipeline Pipe1 to the cable tunnel or pipeline gallery baseline. When D is less than the segmentation threshold, it proves that the starting point of the segmented pipeline Pipe1 is within the segmentation threshold range, and this starting point is added to the segmentation intersection set L point , use the same method to determine whether the end point is within the segmentation threshold range; S33, split intersection set L point Sort the starting points of the pipeline Pipe1 by distance from small to large to get a new set of segmentation intersections LN point ; S34, calculate LN according to the proportionality of the two sides of similar triangles point The vertical z-direction value of each intersection point; S35, traverse all the segmentation pipeline sets, repeat S31-S34, and calculate the intersection point set of each segmentation pipeline.
[0023] like Figure 4 As shown, according to the segmentation intersection set LNpoint, the principles of segmenting this pipeline to obtain the projection pipeline set include the following: (1) Split the intersection set LN point If the starting point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the pipeline is copied and the first point is used as the end point of the copied pipeline. (2) Split the intersection set LN point If the end point of the segmentation pipeline Pipe1 is within the segmentation threshold, then the segmentation intersection set LN point The penultimate point is used as the pipeline starting point, and the changed pipeline is used as the pipeline to be projected within the threshold range and added to the projection pipeline set; (3) Split the intersection set LN point If there are other points in the list, the pipeline is copied, the previous intersection point is used as the starting point of the copied pipeline, and this point is used as the end point of the copied pipeline; if the list position of this intersection point is an even number, the copied pipeline is a projection pipeline within the threshold range and is added to the projection pipeline set; (4) If the end point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the segmentation intersection set LN point The last point is used as the starting point of the split pipeline Pipe1.
[0024] Step 4: Determine the style of the projection segmentation pipeline segment; Specifically, the determination method is to "obtain the angle of intersection between the pipeline segment and the center line of the cable tunnel or pipeline gallery, compare it with the control style intersection angle threshold, and determine the display style of the projected segmented pipeline segment on the longitudinal section; like Figure 5 , 6 As shown, the projection pipeline set style determination method includes: S41, calculating the inclination angle angle1 of the projected pipeline segment, the inclination angle angle2 of the cable tunnel or pipeline gallery at the intersection with the projected pipeline segment, and the absolute value of the difference between angle2 and angle1 is the intersection angle angle of the projected pipeline segment and the cable tunnel or pipeline gallery; S42, angle is compared with the control style threshold angle. If angle is less than the threshold angle, the pipeline setting displays pipeline style 1 (such as Figure 5 As shown, angle is greater than the threshold angle, the pipeline is set to display pipeline style 0 (such as Figure 6 as shown).
[0025] Step 5. Assign the corresponding display style to the projected segmented pipeline segment, and ensure that the pipeline segment projection is displayed on the longitudinal section.
[0026] Specifically, the pipeline style is obtained according to the threshold angle and assigned to the corresponding projected pipeline segment, and the pipeline segment is projected and displayed on the longitudinal section.
[0027] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for segmenting underground pipelines based on thresholds and projecting them onto longitudinal sections, characterized in that: The following steps are involved: Step 1, obtaining the necessary parameter values for segmenting the pipeline and projecting it on the longitudinal section; The necessary parameter values include the name of the designed cable tunnel or pipe gallery, the projection range threshold, and the crossing angle threshold of the control style; Step 2, determine the segmentation area and obtain the segmentation pipeline set to be segmented; Draw dividing lines on both sides parallel to the center line of the cable tunnel or pipe gallery instance according to the projection range threshold. The area between the dividing lines is the threshold segmentation area range. Traverse all underground pipelines in the figure and find underground pipelines that intersect with the threshold segmentation area, which is the segmented pipeline set. Step 3, dividing the underground pipelines according to the division control method; The segmentation control method is as follows: obtaining the intersection of the segmentation line and the segmentation pipeline, using the intersection to segment the segmentation pipeline, and the pipeline segment within the segmentation area is the projected segmentation pipeline segment; Step 4, determine the style of the projection segmentation pipeline segment; The determination method is: obtain the intersection angle between the projected segmented pipeline segment and the center line of the cable tunnel or pipeline gallery, compare it with the intersection angle threshold of the control style, and determine the display style of the projected segmented pipeline segment on the longitudinal section; Step 5, modify the projection segmentation pipe line segment style and project it to the longitudinal section; Assign the corresponding display style to the projected split pipe line segment and ensure that the projected split pipe line segment is projected and displayed on the longitudinal section.
2. The method for segmenting underground pipelines based on threshold value and projecting them onto longitudinal sections according to claim 1, characterized in that: In step 1, the necessary parameter values of the scheme are obtained from the database: the cable tunnel or pipeline gallery baseline is used as the segmentation area center, the projection range threshold determines the segmentation area size, and the intersection angle threshold can determine the display style of the pipeline segment after longitudinal section projection.
3. The method for segmenting underground pipelines based on threshold value and projecting them onto longitudinal sections according to claim 1, characterized in that: In step 2, the specific implementation process of determining the segmentation area and obtaining the segmentation pipeline set to be segmented includes the following steps: S21, obtain all visible pipeline sets C in the drawing pipe ; S22, taking the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the left by the segmentation threshold value to obtain the segmentation line PL1; S23, also with the cable tunnel or pipe gallery baseline as the center, the baseline is translated to the right by the segmentation threshold value to obtain the segmentation line PL2; S24, the area between the segmentation lines PL1 and PL2 is the threshold segmentation area range, and all visible pipeline sets C are detected. pipe Whether it intersects with the threshold segmentation area range, all intersecting pipelines are obtained as the segmentation pipeline set.
4. The method for segmenting underground pipelines based on threshold value and projecting them onto longitudinal sections according to claim 1, characterized in that: In step 3, the specific implementation process of traversing the segmentation pipeline set to obtain the intersection of the segmentation threshold interval and the segmentation pipeline includes the following steps: S31, determine the intersection of the split pipeline Pipe1 and the split line PL1, and add them to the split intersection set L point Similarly, the intersection of the split pipeline Pipe1 and the split line PL2 is also added to the split intersection set L point ; S32, calculate the distance D from the starting point of the segmented pipeline Pipe1 to the cable tunnel or pipeline gallery baseline. When D is less than the segmentation threshold, it proves that the starting point of the segmented pipeline Pipe1 is within the segmentation threshold range, and this starting point is added to the segmentation intersection set L point , use the same method to determine whether the end point is within the segmentation threshold range; S33, split intersection set L point Sort the starting points of the pipeline Pipe1 by distance from small to large to get a new set of segmentation intersections LN point ; S34, calculate LN according to the proportionality of the two sides of similar triangles point The vertical z-direction value of each intersection point; S35, traverse all the segmentation pipeline sets, repeat S31-S34, and calculate the intersection point set of each segmentation pipeline.
5. The method for segmenting underground pipelines based on threshold value and projecting them onto longitudinal sections according to claim 1, characterized in that: In step 3, according to the segmentation intersection set LNpoint, the principles for segmenting the pipeline to obtain the projection pipeline set include the following: (1) Split the intersection set LN point If the starting point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the pipeline is copied and the first point is used as the end point of the copied pipeline. (2) Split the intersection set LN point If the end point of the segmentation pipeline Pipe1 is within the segmentation threshold, then the segmentation intersection set LN point The penultimate point is used as the pipeline starting point, and the changed pipeline is used as the pipeline to be projected within the threshold range and added to the projection pipeline set; (3) Split the intersection set LN point If there are other points in the list, the pipeline is copied, the previous intersection point is used as the starting point of the copied pipeline, and this point is used as the end point of the copied pipeline; if the list position of this intersection point is an even number, the copied pipeline is a projection pipeline within the threshold range and is added to the projection pipeline set; (4) If the end point of the segmentation pipeline Pipe1 is not within the segmentation threshold range, the segmentation intersection set LN point The last point is used as the starting point of the split pipeline Pipe1.
6. The method for segmenting underground pipelines based on threshold value and projecting them on longitudinal sections according to claim 1, characterized in that: In step 4, the method for determining the projection pipeline set style includes: S41, calculating the inclination angle angle1 of the projected pipeline segment, the inclination angle angle2 of the cable tunnel or pipeline gallery at the intersection with the projected pipeline segment, and the absolute value of the difference between angle2 and angle1 is the intersection angle angle of the projected pipeline segment and the cable tunnel or pipeline gallery; S42, angle is compared with a control style threshold angle. If angle is smaller than the threshold angle, the pipeline is set to display pipeline style 1; if angle is larger than the threshold angle, the pipeline is set to display pipeline style 0.
7. The method for segmenting underground pipelines based on threshold value and projecting them onto longitudinal sections according to claim 1, characterized in that: In step 5, the pipeline style is obtained according to the threshold angle and assigned to the corresponding projected pipeline segment, and the pipeline segment is projected and displayed on the longitudinal section.
