Pipeline layout and treatment methods, devices, equipment and storage media

By obtaining the centerline and number of layout lines of the pipeline group, adjusting the position of the main pipeline and combining it with the width value, the problem of low pipeline layout efficiency in traditional methods is solved, and more efficient pipeline layout and space utilization are achieved.

CN115906344BActive Publication Date: 2025-11-14JIULING (JIANGSU) DIGITAL INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111166406.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-11-14
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

Traditional methods result in low efficiency in pipeline layout in underground parking garages, making it difficult to achieve a reasonable pipeline layout.

Method used

By obtaining the centerline and number of layout lines of the pipeline group, the position of the main pipeline is adjusted, and the position of the pipeline group is adjusted in combination with the width value, so as to realize the classified layout of the main pipelines within the pipeline group.

Benefits of technology

It improves the efficiency of pipeline layout, optimizes the occupancy rate of pipelines in space, and enhances the pipeline layout effect in underground parking garages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906344B_ABST
    Figure CN115906344B_ABST
Patent Text Reader

Abstract

This application relates to a pipeline layout processing method, apparatus, equipment, and storage medium, belonging to the technical field of pipeline installation in building construction. The pipeline layout processing method includes: obtaining a pipeline group to be processed and calculating the centerline of each pipeline group, wherein each pipeline group includes at least one main pipeline; obtaining the number of arrangement lines for each main pipeline, wherein the main pipelines are perpendicular to the arrangement lines and arranged between the two endpoints of the arrangement lines; adjusting the position of the main pipelines within the pipeline group according to the centerline and the number of arrangement lines of the main pipelines to obtain an adjusted pipeline group; obtaining the width value of the pipeline group and adjusting the position of each pipeline group according to the width value. The pipeline layout processing method provided by this application can improve the efficiency of pipeline layout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer-aided building design technology, and in particular to a pipeline layout processing method, apparatus, equipment and storage medium. Background Technology

[0002] With social development and the increasing scarcity of urban land, making full use of above-ground and underground space and pursuing intensive development has become a trend. Underground parking garages play a crucial role in solving public parking problems in urban centers and private parking issues in residential areas. Therefore, it is necessary to rationally plan the layout of underground parking garages. Underground parking garages contain numerous professional pipelines designed to meet fire safety and operational requirements; therefore, how to manage these pipelines to achieve a rational arrangement is a critical concern.

[0003] In traditional techniques, the layout range for each pipeline is calculated, and designers then arrange each pipeline according to that range. However, this traditional method results in low pipeline layout efficiency. Summary of the Invention

[0004] Therefore, it is necessary to provide a pipeline layout processing method, apparatus, equipment, and storage medium to address the above-mentioned technical problems and improve the efficiency of pipeline layout.

[0005] In a first aspect, embodiments of this application provide a pipeline layout processing method, the method comprising:

[0006] Obtain the pipeline groups to be processed and calculate the centerline of each pipeline group, wherein each pipeline group includes at least one main pipeline.

[0007] Obtain the number of layout lines for each main pipeline. The main pipelines are perpendicular to the layout lines and are arranged between the two endpoints of the layout lines.

[0008] Adjust the position of the main pipeline within the pipeline group according to the number of center lines and main pipeline layout lines to obtain the adjusted pipeline group;

[0009] Obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0010] In one embodiment, calculating the centerline of each pipeline group includes:

[0011] Detect the number of main pipelines in the pipeline group;

[0012] If there is only one main pipeline, then the centerline of the main pipeline is determined as the centerline of the pipeline group;

[0013] If there are multiple main pipelines, select any reference point outside the custom boundary and calculate the sum of the projected distances from the reference point to each main pipeline. Divide the sum of the distances by the number of main pipelines in the pipeline group to obtain the center point of the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the center line of the pipeline group.

[0014] In one embodiment, adjusting the position of the main pipeline within the pipeline group according to the number of centerlines and main pipeline layout lines includes:

[0015] Project each main pipeline onto the center line to obtain the projected line segment of the main pipeline on the center line and the projected distance of the main pipeline.

[0016] Calculate the distance between every two projected line segments in the direction parallel to the center line;

[0017] Determine the positional relationship between each pair of main lines relative to the center line, including whether they are on the same side or opposite sides;

[0018] The main pipelines are paired up according to the interval distance and positional relationship to obtain at least one pairing group. The position of the main pipelines in the pairing group is adjusted according to the projection distance.

[0019] In one embodiment, adjusting the position of the main pipeline in the pairing group according to the projection distance includes any of the following:

[0020] Select the same side position relationship, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line.

[0021] Select the opposite side position relationship, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0022] In one embodiment, adjusting the position of the main pipeline within the pipeline group according to the number of centerlines and main pipeline layout lines further includes:

[0023] Calculate the number of main pipelines within the pipeline group;

[0024] The position information of the main pipeline within the pipeline group relative to the centerline is detected. The position information includes the first side of the centerline and the second side of the centerline.

[0025] Adjusting the position of the main pipeline based on the quantity, centerline, and location information. In one embodiment, further adjusting the position of the main pipeline based on the quantity, centerline, and location information includes:

[0026] On the first side, the main pipelines within the pipeline group are arranged in descending order of quantity;

[0027] On the second side, the main pipelines within the pipeline group are arranged in descending order of quantity;

[0028] Among them, the larger the number of pipelines in a pipeline group, the closer the main pipeline is to the center line.

[0029] In one embodiment, adjusting the position of each pipeline group based on the width value includes:

[0030] Select the pipeline group to be adjusted from each pipeline group according to the preset conditions;

[0031] For each pipeline group to be adjusted, calculate the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups;

[0032] Move the pipeline group whose sum of ratios is closest to 1 to the same space.

[0033] In one embodiment, selecting the pipeline group to be adjusted from each pipeline group according to preset conditions includes:

[0034] Detect whether there is an intersection of the projected line segments of each pipeline group in the direction parallel to the pipeline group, and select the pipeline group whose projected line segments do not intersect;

[0035] For pipeline groups where the selected projection line segments do not intersect, check whether the new layout range of the main pipeline in each pipeline group is equal to the original layout range. The new layout range indicates the layout range generated by the connection of the main pipeline to other components.

[0036] Pipeline groups whose projected line segments do not intersect and whose new layout range for each main pipeline is equal to the original layout range are selected as pipeline groups to be adjusted.

[0037] Secondly, embodiments of this application provide a pipeline layout processing device, which includes:

[0038] The calculation module is used to obtain the pipeline groups to be processed and calculate the centerline of each pipeline group, wherein the pipeline group includes at least one main pipeline.

[0039] The acquisition module is used to acquire the number of layout lines for each main pipeline. The main pipelines are perpendicular to the layout lines and are arranged between the two endpoints of the layout lines.

[0040] The first adjustment module is used to adjust the position of the main pipeline within the pipeline group according to the number of layout lines of the center line and the main pipeline, so as to obtain the adjusted pipeline group.

[0041] The second adjustment module is used to obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0042] Thirdly, embodiments of this application provide a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, it implements the pipeline routing processing method as described in the first aspect of the embodiments.

[0043] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the pipeline routing processing method of the first aspect of the embodiments.

[0044] The beneficial effects of the technical solutions provided in this application include at least the following:

[0045] The pipeline layout processing method, apparatus, equipment, and storage medium provided in this application first obtain the pipeline groups to be processed and calculate the centerline of each pipeline group. Each pipeline group includes at least one main pipeline. Then, the number of arrangement lines of each main pipeline is obtained. The position of the main pipelines within the pipeline group is adjusted according to the centerline and the number of arrangement lines of the main pipelines to obtain the adjusted pipeline group. Finally, the width value of the pipeline group is obtained, and the position of each pipeline group is adjusted according to the width value. This realizes the classified layout of pipeline groups and the main pipelines within the pipeline groups, thereby improving the pipeline layout efficiency. Attached Figure Description

[0046] Figure 1 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of this application;

[0047] Figure 2 A flowchart illustrating a pipeline layout method provided in this application embodiment;

[0048] Figure 3 The technical process for calculating the centerline of each pipeline group is provided in the embodiments of this application;

[0049] Figure 4 A schematic diagram of the main pipeline and centerline within a pipeline group provided in this application embodiment;

[0050] Figure 5 This is a schematic diagram of the main pipeline within the pipeline group before processing, as described in an embodiment of this application.

[0051] Figure 6 The technical process provided in this application embodiment for adjusting the position of the main pipeline in the pairing group according to the projection distance;

[0052] Figure 7 This is a schematic diagram of the main pipeline within the pipeline group after processing, as described in an embodiment of this application.

[0053] Figure 8 The technical process provided in this application for adjusting the position of the main pipeline within a pipeline group based on the number of center lines and main pipeline layout lines;

[0054] Figure 9 A schematic diagram of the main pipeline within the pipeline group before adjustment, provided in an embodiment of this application;

[0055] Figure 10 A schematic diagram of the adjusted main pipeline within the pipeline group provided in an embodiment of this application;

[0056] Figure 11 The technical process for adjusting the position of each pipeline group based on the width value provided in the embodiments of this application;

[0057] Figure 12 The technical process provided in this application embodiment for selecting the pipeline to be adjusted from each pipeline group according to preset conditions;

[0058] Figure 13 This is a schematic diagram of the pipeline assembly before processing provided in the embodiments of this application;

[0059] Figure 14 This is a schematic diagram of the processed pipeline assembly provided in an embodiment of this application;

[0060] Figure 15 This is a structural block diagram of the pipeline layout processing device provided in the embodiments of this application. Detailed Implementation

[0061] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] The pipeline layout method provided in this application can be applied to Figure 1 The computer equipment shown. (For example...) Figure 1As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The computer device's database stores pipelines and their attribute information. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a pipeline routing processing method.

[0064] Those skilled in the art will understand that Figure 1 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0065] It should be noted that the pipeline layout processing method provided in this application can be executed by a pipeline layout processing device, which can be implemented as part or all of a computer device through software, hardware, or a combination of software and hardware. The execution subject of the following method embodiments is described using a computer device as an example.

[0066] This embodiment describes a process executed by computer equipment before pipeline layout. This embodiment can perform a process before pipeline layout for all pipelines on the same plane. The above pipeline layout processing method can be applied to pipeline layout methods in underground garages, as well as pipeline layout methods in ground garages. Of course, it can also be applied to other application scenarios involving pipeline layout in the construction industry. This embodiment does not limit the application scenario.

[0067] In one embodiment, such as Figure 2 As shown, a pipeline layout processing method is provided, which can be applied to... Figure 1 Taking a computer device as an example, the explanation includes the following steps:

[0068] S100: Obtain at least one pipeline group to be processed and calculate the centerline of each pipeline group.

[0069] Pipeline groups include custom boundaries, and each custom boundary contains at least one main pipeline. Optionally, the custom boundary can be rectangular.

[0070] Optionally, the main pipelines within the pipeline group are of the same type and have the same layout range. The types of main pipelines include, but are not limited to, water pipes, air ducts, electrical pipes, or user-defined types.

[0071] It should be noted that the pipeline layout in the underground parking garage is used as an example to explain the corresponding steps. The pipeline layout area can be the entire underground parking garage area or a part of the underground parking garage area. Pipelines on the same plane within the area to be laid can be called main pipelines, and pipelines perpendicular to this plane are still called pipelines. Both main pipelines and pipelines can be water supply and drainage pipelines, compressed air pipelines, hydrogen pipelines, oxygen pipelines, acetylene pipelines, heating pipelines, gas pipelines, fuel oil pipelines, refrigeration pipelines, and other engineering pipelines.

[0072] S200: Obtain the number of layout lines for each main pipeline.

[0073] The main pipeline is perpendicular to the layout line and is arranged between the two endpoints of the layout line. Therefore, obtaining the number of layout lines of the main pipeline is the same as obtaining the number of layout ranges of the main pipeline.

[0074] S300. Adjust the position of the main pipeline within the pipeline group according to the number of center lines and main pipeline layout lines to obtain the adjusted pipeline group.

[0075] S400: Obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0076] It should be noted that the adjustment of the position of the main pipeline within the pipeline group can be based on the center line, or based on the center line and the number of main pipeline layout lines. Alternatively, the position of the main pipeline within the pipeline group can be adjusted first based on the center line, and then adjusted again based on the center line and the number of main pipeline layout lines.

[0077] Optionally, the width value of a pipeline group can be the width value of a custom boundary, or it can be the external occupancy A of each pair of adjacent pipeline groups multiplied by 2, plus the sum of the widths B of all main pipelines within each pipeline group, and the difference between this result and the number of all main pipelines C minus 1 within each pipeline group multiplied by the intra-group spacing D between each pair of main pipelines within each pipeline group, to obtain the occupancy information of each pipeline group. That is, the width value of a pipeline group is equal to A*2+B+(C-1)*D.

[0078] The pipeline layout processing method, apparatus, equipment, and storage medium provided in this application first obtain the pipeline groups to be processed and calculate the centerline within each pipeline group. Then, the number of arrangement lines for each main pipeline is obtained. The position of each main pipeline is adjusted according to the centerline. The position of the main pipeline is adjusted again according to the centerline and the number of arrangement lines for the main pipeline, resulting in an adjusted pipeline group. Finally, the width value of the pipeline group is obtained, and the position of each pipeline group is adjusted according to the width value. This method can adjust the position of the main pipelines in the pipeline group according to the centerline and arrangement lines of the main pipelines, and can also adjust the position of the pipeline group according to the width value of the pipeline group, thereby realizing the classified layout of pipeline groups and the main pipelines within the pipeline groups, thus improving the pipeline layout efficiency.

[0079] In one embodiment, such as Figure 3 As shown, the steps for calculating the centerline of each pipeline group in S200 above can be achieved through the following steps:

[0080] S201, Detect the number of main pipelines in the pipeline group.

[0081] S202. If there is only one main pipeline, then the centerline of the main pipeline shall be determined as the centerline of the pipeline group.

[0082] S203. If there are multiple main pipelines, select any reference point outside the custom boundary and calculate the sum of the projected distances from the reference point to each main pipeline. Divide the sum of the distances by the number of main pipelines in the pipeline group to obtain the center point of the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the center line of the pipeline group.

[0083] by Figure 4 Taking the main line in the middle as an example, according to Figure 4 The data information for the main pipeline is as follows: The centerline of the pipeline group is calculated as: (3560+1041+542) / 3=1714.

[0084] In one embodiment, such as Figure 4 As shown, the step of adjusting the position of each main pipeline according to the centerline in S300 above can be achieved through the following steps:

[0085] S301. Project each main pipeline onto the center line to obtain the projection line segment of the main pipeline on the center line and the projection distance of the main pipeline.

[0086] The projection distance is the parallel distance between each main pipeline and the centerline.

[0087] S302. Calculate the distance between every two projected line segments in the direction parallel to the center line.

[0088] S303. Determine the positional relationship between each pair of main lines relative to the center line. The positional relationship includes whether they are on the same side or opposite sides.

[0089] S304. Pair the main pipelines in pairs according to the interval distance and positional relationship to obtain at least one pairing group, and adjust the position of the main pipelines in the pairing group according to the projection distance.

[0090] It should be noted that after projecting the main pipeline onto the center line, it is also necessary to determine whether there is any overlap between the projected line segments. If there is overlap, the distance between the two projected line segments in the direction parallel to the center line is not calculated.

[0091] by Figure 5 For example, Figure 5 If the projections of main line 1 and main line 2 onto the center line do not intersect, the distance between the two main lines can be calculated. If the projections of main line 1 and main line 4 onto the red center line intersect, the distance between these two main lines is not calculated.

[0092] Simultaneously, the positional relationship between each pair of main pipelines relative to the centerline is determined. This positional relationship includes whether they are on the same side or opposite sides. Specifically, it involves determining whether the direction of the connecting pipeline at the port with the minimum connection distance between non-intersecting pipelines is on the same side or opposite side of the centerline. The calculated interval distances and positional relationships are summarized in Table 1.

[0093] Table 1. Spacing and Location Relationship of Main Pipelines

[0094] Main Line 1 Main Line 2 Main Line 3 Main Line 4 Main Line 5 Main Line 1 1040 on the same side 5677 same side 4988 on the same side Main Line 2 1040 on the same side 1537 on the same side 848 heterolateral Main Line 3 5677 same side 1537 on the same side 3030 opposite side Main Line 4 3030 opposite side 2341 Same side Main Line 5 4988 on the same side 848 heterolateral 2341 Same side

[0095] In one embodiment, such as Figure 6 As shown, adjusting the position of the main pipeline in the pairing group according to the projection distance in S304 above includes any of the following steps:

[0096] S3041. Select the positional relationship as same side, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line.

[0097] S3042. Select the opposite side position relationship, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0098] In practice, the process starts with increasing interval distances, simultaneously determining if they are on the same side. Results on the same side are considered optimized and grouped together. The optimized main lines are then removed, and the process continues. If no results are on the same side, pairing is done based on the minimum distance between opposite sides until the remaining data is odd or all pairs are matched. Two paired main lines are considered a single main line if their center lines are aligned within the group. When two main lines are determined to be on the same side, if the connecting line direction is upward, the lower main line is adjusted to the position of the upper main line; if the connecting line direction is downward, the upper main line is adjusted to the position of the lower main line. The same logic applies to left and right. Figure 5 Based on the data shown in the table and Table 1, main lines 1 and 2 are the smallest on the same side, so they are paired together. Since the direction of the pipe ends on the same side is upward, main line 1 is moved to the horizontal position of main line 2. The next smallest are main lines 2 and 3, but since main line 2 is already paired, it is not considered. Next, the smallest are main lines 4 and 5, which have not been paired, so main lines 4 and 5 are paired together. Since the direction of the pipe ends on the same side is downward, main line 5 is moved to a position parallel to main line 4. Main line 3 remains in a separate group and is not moved. Figure 7 As shown, this is the adjusted result. The centerline of the pipeline group remains unchanged, but the spacing within the main pipeline is updated synchronously. By pairing the main pipelines in pairs according to their spacing and positional relationships, at least one pairing group is obtained. The position of the main pipelines in the pairing group is adjusted according to the projected distance. This allows for the classification and adjustment of the main pipelines within the group, thereby improving the efficiency of pipeline layout.

[0099] In one embodiment, such as Figure 8 As shown, adjusting the position of the main pipeline within the pipeline group according to the number of center lines and main pipeline layout lines in S300 above can also be achieved through the following steps:

[0100] S311. Calculate the number of main pipelines within the pipeline group.

[0101] S312. Detect the position information of the main pipeline within the pipeline group relative to the centerline. The position information includes the first side of the centerline and the second side of the centerline.

[0102] S313. Adjust the position of the main pipeline according to the number of lines, center line, and location information.

[0103] In one embodiment, adjusting the position of the main pipeline according to the number of arrangement lines, the center line, and the position information in S313 includes: on the first side, arranging the main pipelines in the pipeline group in descending order of the number of arrangement lines; on the second side, arranging the main pipelines in the pipeline group in descending order of the number of arrangement lines; wherein, the main pipeline with a larger number of arrangement lines is closer to the center line, and the main pipeline with a smaller number of arrangement lines is farther away from the center line.

[0104] The main pipeline is arranged within the layout area.

[0105] Specifically, the system detects the position information of the main pipeline within the pipeline group relative to the centerline. This position information includes whether the main pipeline is located on the first side or the second side of the centerline. The process involves calculating the distance from the main pipeline to both ends of the group, determining the position of the main pipeline relative to the centerline based on the smaller distance (i.e., whether the main pipeline is located on the first or second side of the centerline), and then adjusting the main pipeline within that determined side. For example... Figure 9 and Figure 10 As shown, where Figure 9 This is a schematic diagram of the main pipeline within the pipeline group before adjustment. Figure 10 This is a schematic diagram of the main pipeline within the pipeline group after adjustment.

[0106] By placing the main pipelines with a larger coverage area closer to the center line of the group, and the main pipelines with a smaller coverage area further away from the center line, it is easier to make further adjustments to the pipelines later.

[0107] In one embodiment, such as Figure 11 As shown, the adjustment of the position of each pipeline group according to the width value in S400 above can be achieved through the following steps:

[0108] S401. Select the pipeline group to be adjusted from each pipeline group according to the preset conditions.

[0109] S402. For each pipeline group to be adjusted, calculate the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups.

[0110] S403. Move the pipeline group whose sum of ratios is closest to 1 to the same occupation area.

[0111] In one embodiment, such as Figure 12 As shown, the above-mentioned step S401, selecting the pipeline to be adjusted from each pipeline group according to preset conditions, can be achieved through the following steps:

[0112] S4011. Detect whether there is an intersection of the projected line segments of each pipeline group in the direction parallel to the pipeline group, and select the pipeline group whose projected line segments do not intersect.

[0113] S4012. For pipeline groups where the selected projection line segments do not intersect, check whether the new layout range of the main pipeline in each pipeline group is equal to the original layout range.

[0114] S4013. Select the pipeline group to be adjusted if the projected line segments do not intersect and the new layout range of each main pipeline in the pipeline group is equal to the original layout range.

[0115] The original layout range refers to the layout range of the main line itself, while the new layout range indicates the layout range generated by the connection of the main line to other components. The computer equipment can determine whether each main line is a restricted main line or a regular main line by using the main line's size information, original layout range and other attribute information, and the new layout range of the main line.

[0116] It should be noted that the types of main pipelines include restricted main pipelines and regular main pipelines. The computer device can determine whether the main pipeline is a restricted main pipeline or a regular main pipeline by performing calculations between the original layout range and the new layout range of the main pipeline. These calculations can include comparison processing, arithmetic operation processing, normalization processing, etc., but in this embodiment, the calculation processing can be comparison processing. The computer device can determine the size relationship between the new layout range and the original layout range of the main pipeline, and determine the type of main pipeline based on the determination result.

[0117] Pipeline groups whose projected line segments do not intersect and whose new layout range for each main pipeline is equal to its original layout range are selected as pipeline groups to be adjusted. Within each pipeline group to be adjusted, there may be only one non-intersecting pipeline group, or there may be multiple non-intersecting pipeline groups. For example, see [reference needed]. Figure 13 Pipeline group 4 has only one non-intersecting pipeline group, which is pipeline group 5; pipeline group 1 has multiple non-intersecting pipeline groups, namely pipeline group 2, pipeline group 6 and pipeline group 7.

[0118] For pipeline groups with only one non-intersecting pipeline group, similar groups can be merged. Within each similar group, the combination with the closest width ratio (or occupancy ratio) to 1 is selected, and the paired pipeline groups are removed from the set. Specifically, if only one pipeline group in the pipeline group to be processed contains only one non-intersecting pipeline group, then these two pipeline groups are paired. For example... Figure 13 As shown, pipeline group 4 only has a non-intersection with pipeline group 5. Therefore, pipeline group 4 and pipeline group 5 are paired.

[0119] The width ratios of the pipeline groups are shown in Table 2.

[0120] Table 2. Width Ratio of Pipeline Groups

[0121] Pipeline Group 1 Pipeline Group 2 Pipeline Group 3 Pipeline group 4 Pipeline Group 5 Pipeline group 6 Pipeline group 7 Pipeline Group 1 400 / 800 600 / 800 300 / 800 Pipeline Group 2 400 / 800 300 / 400 400 / 600 Pipeline Group 3 300 / 400 300 / 600 300 / 300 Pipeline group 4 600 / 600 Pipeline Group 5 400 / 600 600 / 600 600 / 600 300 / 600 Pipeline group 6 600 / 800 300 / 600 600 / 600 Pipeline group 7 300 / 800 300 / 300 300 / 600

[0122] For a pipeline group containing multiple non-intersecting pipeline groups, start with the pipeline group with the largest footprint (i.e., the pipeline group with the largest width), and sequentially search for combinations whose footprint ratios add up to 1 with those of its non-intersecting pipeline groups. Remove the paired pipeline groups from the set. For example, see [link to relevant documentation]. Figure 13According to Table 2, pipeline group 1 is currently the widest pipeline group. Among the occupancy ratio results in pipeline group 1, the sum of the occupancy ratios of pipeline group 1 and pipeline group 2 and the occupancy ratios of pipeline group 1 and pipeline group 7 is closest to 1. Therefore, pipeline group 1 is paired with pipeline group 7 and pipeline group 2. Repeat the process until all non-intersecting pipeline groups have been paired.

[0123] like Figure 14 As shown, after excluding pipeline groups 1, 7, 2, 4, and 5, only pipeline groups 3 and 6 remain. Therefore, pipeline groups 3 and 6 are paired up, and there are no other pipeline groups in the set, thus completing the operation.

[0124] After pairing, the paired pipeline groups can be moved to the same space. In some examples, the moved space is based on the pipeline group with the largest space in the pair; the largest pipeline group remains stationary, and the remaining pipeline groups are moved to its space. See also [link to relevant documentation] for some examples. Figure 14 For pipeline group 1, pipeline group 2, and pipeline group 7, pipeline group 1 remains stationary. Pipeline group 2 and pipeline group 7 are both moved to the area occupied by pipeline group 1. During the movement, the upper end of pipeline group 7 can be aligned with the upper end of pipeline group 1, and the upper end of pipeline group 2 can be aligned with the lower end of pipeline group 1; alternatively, the upper end of pipeline group 7 can be aligned with the upper end of pipeline group 1, and the lower end of pipeline group 2 can be aligned with the lower end of pipeline group 1; and the lower end of pipeline group 7 can be aligned with the lower end of pipeline group 1, and the lower end of pipeline group 2 can be aligned with the upper end of pipeline group 7, and so on.

[0125] By pairing and adjusting pipeline groups to the same horizontal position according to the ratio of their width values, the space utilization rate of pipeline layout can be improved, and the layout efficiency can be increased.

[0126] To facilitate understanding by those skilled in the art, this application provides a pipeline layout processing method using a computer device as the executing entity as an example. Specifically, the method includes:

[0127] (1) Obtain the pipeline group to be processed.

[0128] (2) Detect the number of main pipelines in the pipeline group.

[0129] (3) If there is only one main pipeline, the center line of the main pipeline shall be determined as the center line of the pipeline group.

[0130] (4) If there are multiple main pipelines, select any reference point outside the custom boundary and calculate the sum of the projected distances from the reference point to each main pipeline. Divide the sum of the distances by the number of main pipelines in the pipeline group to obtain the center point of the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the center line of the pipeline group.

[0131] (5) Project each main line onto the center line to obtain the projection line segment of the main line on the center line and the projection distance of the main line.

[0132] (6) Calculate the distance between every two projected line segments in the direction parallel to the center line.

[0133] (7) Determine the positional relationship between each pair of main lines and the center line. The positional relationship includes whether they are on the same side or opposite sides.

[0134] (8) Select the positional relationship as same side, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line.

[0135] (9) Select the opposite side position relationship and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0136] (10) Do not move the remaining unpaired main lines.

[0137] (11) Calculate the number of main pipelines within the pipeline group.

[0138] (12) Detect the position information of the main pipeline in the pipeline group relative to the center line. The position information includes the first side of the center line and the second side of the center line.

[0139] (13) On the first side, the main pipelines in the pipeline group are arranged in order of decreasing number of lines. On the second side, the main pipelines in the pipeline group are arranged in order of decreasing number of lines. The main pipelines in the pipeline group with the larger number of lines are closer to the center line.

[0140] (14) Check whether there is an intersection of the projected line segments of each pipeline group in the direction parallel to the pipeline group, and select the pipeline group whose projected line segments do not intersect.

[0141] (15) For pipeline groups where the selected projection lines do not intersect, check whether the new layout range of the main pipeline in each pipeline group is equal to the original layout range. The new layout range indicates the layout range generated by the connection of the main pipeline to other components.

[0142] (16) Select the pipeline group that has no intersection of projected line segments and whose new layout range of each main pipeline in the pipeline group is equal to the original layout range as the pipeline group to be adjusted.

[0143] (17) For each pipeline group to be adjusted, calculate the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups.

[0144] (18) Move the pipeline group whose sum of ratios is closest to 1 to the same horizontal line.

[0145] For details of the execution process of (1) to (18) above, please refer to the description of the above embodiments. The implementation principle and technical effect are similar, and will not be repeated here.

[0146] It should be understood that while the steps in the flowchart above are shown sequentially as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart above may include multiple steps or stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps.

[0147] In one embodiment, such as Figure 15 As shown, a pipeline layout processing device is provided, including: a calculation module 11, an acquisition module 12, a first adjustment module 13, and a second adjustment module 14.

[0148] The calculation module 11 is used to obtain the pipeline groups to be processed and calculate the centerline of each pipeline group, wherein the pipeline group includes at least one main pipeline.

[0149] The acquisition module 12 is used to acquire the number of layout lines of each main pipeline. The main pipeline is perpendicular to the layout line and is arranged between the two endpoints of the layout line.

[0150] The first adjustment module 13 is used to adjust the position of the main pipeline in the pipeline group according to the number of center lines and main pipeline layout lines, so as to obtain the adjusted pipeline group.

[0151] The second adjustment module 14 is used to obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0152] The pipeline layout processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0153] In one embodiment, the calculation module 11 further includes a detection unit and a determination unit, wherein:

[0154] The detection unit is used to detect the number of main pipelines in the pipeline group.

[0155] The determination unit is used to determine the centerline of the pipeline group if there is only one main pipeline; if there are multiple main pipelines, any reference point outside the custom boundary is selected, and the sum of the projected distances from the reference point to each main pipeline is calculated. The center point of the pipeline group is obtained by dividing the sum of the distances by the number of main pipelines in the pipeline group, and the straight line passing through the center point and parallel to the main pipeline is determined as the centerline of the pipeline group.

[0156] In one embodiment, the first adjustment module 13 further includes a processing unit, a first calculation unit, a judgment unit, and an adjustment unit, wherein:

[0157] The processing unit is used to project each main pipeline onto the center line to obtain the projected line segment of the main pipeline on the center line and the projected distance of the main pipeline.

[0158] The first calculation unit is used to calculate the distance between every two projected line segments in the direction parallel to the center line;

[0159] The judgment unit is used to determine the positional relationship between each pair of main lines relative to the center line, including whether they are on the same side or opposite sides.

[0160] The first adjustment unit is used to pair the main pipelines in pairs according to the interval distance and positional relationship to obtain at least one pairing group, and adjust the position of the main pipelines in the pairing group according to the projection distance.

[0161] In one embodiment, the first adjustment unit is specifically used to: select the positional relationship as same side, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line; or, select the positional relationship as opposite side, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0162] In one embodiment, the first adjustment module 13 further includes: a second calculation unit, a detection unit, and a second adjustment unit, wherein:

[0163] The second calculation unit is used to calculate the number of main pipelines within the pipeline group.

[0164] The detection unit is used to detect the position information of the main pipeline within the pipeline group relative to the centerline. The position information includes being located on the first side of the centerline and being located on the second side of the centerline.

[0165] The second adjustment unit is used to adjust the position of the main pipeline according to the number of layout lines, the center line, and the location information.

[0166] In one embodiment, the second adjustment unit is specifically used to: on the first side, arrange the main pipelines in the pipeline group in descending order of the number of arrangement lines; on the second side, arrange the main pipelines in the pipeline group in descending order of the number of arrangement lines; wherein, the main pipelines in the pipeline group with a larger number of arrangement lines are closer to the center line.

[0167] In one embodiment, the second adjustment module 14 further includes: a selection unit, a third calculation unit, and a third adjustment unit, wherein:

[0168] The selection unit is used to select the pipeline group to be adjusted from each pipeline group according to preset conditions.

[0169] The third calculation unit is used to calculate the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups for each pipeline group to be adjusted.

[0170] The third adjustment unit is used to move pipeline groups whose sum of ratios is closest to 1 to the same occupational range.

[0171] In one embodiment, the selection unit is specifically used to: detect whether there is an intersection of the projected line segments of each pipeline group in the direction parallel to the pipeline group, and select the pipeline group whose projected line segments do not intersect;

[0172] For pipeline groups where the selected projection line segments do not intersect, check whether the new layout range of the main pipeline in each pipeline group is equal to the original layout range. The new layout range indicates the layout range generated by the connection of the main pipeline to other components.

[0173] Pipeline groups whose projected line segments do not intersect and whose new layout range for each main pipeline is equal to the original layout range are selected as pipeline groups to be adjusted.

[0174] The pipeline layout processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0175] Specific limitations regarding the pipeline layout processing device can be found in the limitations of the pipeline layout processing method described above, and will not be repeated here. Each module in the aforementioned pipeline layout processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0176] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0177] Obtain the pipeline groups to be processed and calculate the centerline of each pipeline group, wherein each pipeline group includes at least one main pipeline.

[0178] Obtain the number of layout lines for each main pipeline. The main pipelines are perpendicular to the layout lines and are arranged between the two endpoints of the layout lines.

[0179] Adjust the position of the main pipeline within the pipeline group according to the number of center lines and main pipeline layout lines to obtain the adjusted pipeline group;

[0180] Obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0181] In one embodiment, the processor further performs the following steps when executing the computer program:

[0182] The system detects the number of main pipelines in the pipeline group. If there is only one main pipeline, the centerline of the main pipeline is determined as the centerline of the pipeline group. If there are multiple main pipelines, any reference point outside the custom boundary is selected, and the sum of the projected distances from the reference point to each main pipeline is calculated. The center point of the pipeline group is obtained by dividing the sum of the distances by the number of main pipelines in the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the centerline of the pipeline group.

[0183] In one embodiment, the processor further performs the following steps when executing the computer program:

[0184] Project each main line onto the center line to obtain the projected line segment of the main line on the center line and the projected distance of the main line; calculate the interval distance between every two projected line segments in the direction parallel to the center line; determine the positional relationship between every two main lines relative to the center line, including whether they are on the same side or opposite sides; pair the main lines in pairs according to the interval distance and positional relationship to obtain at least one pairing group, and adjust the position of the main lines in the pairing group according to the projected distance.

[0185] In one embodiment, the processor further performs the following steps when executing the computer program:

[0186] Select the same side position relationship, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line.

[0187] Select the opposite side position relationship, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0188] In one embodiment, when the processor executes the computer program, it further performs the following steps: calculating the number of main pipelines within the pipeline group; detecting the position information of the main pipelines within the pipeline group relative to the centerline, the position information including being located on a first side of the centerline and a second side of the centerline; and adjusting the position of the main pipelines according to the number of pipelines, the centerline, and the position information.

[0189] In one embodiment, when the processor executes the computer program, it further performs the following steps: on the first side, the main pipelines in the pipeline group are arranged in descending order of the number of lines; on the second side, the main pipelines in the pipeline group are arranged in descending order of the number of lines; wherein the main pipelines in the pipeline group with a larger number of lines are closer to the center line.

[0190] In one embodiment, when the processor executes the computer program, it also performs the following steps: selecting a pipeline group to be adjusted from each pipeline group according to preset conditions; calculating the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups for each pipeline group to be adjusted; and moving the pipeline group whose sum of ratios is closest to 1 to the same occupational range.

[0191] In one embodiment, the processor further performs the following steps when executing the computer program:

[0192] Check whether the projected line segments of each pipeline group intersect in the direction parallel to the pipeline group, and select the pipeline groups whose projected line segments do not intersect. For the selected pipeline groups whose projected line segments do not intersect, check whether the new layout range of the main pipeline in each pipeline group is equal to the original layout range. The new layout range indicates the layout range generated by the connection of the main pipeline to other components. Select the pipeline groups whose projected line segments do not intersect and whose new layout range of each main pipeline in the pipeline group is equal to the original layout range as the pipeline groups to be adjusted.

[0193] The computer device provided in this embodiment is similar in principle and technical effect to the method embodiment described above, and will not be repeated here.

[0194] In one embodiment of this application, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, it performs the following steps:

[0195] Obtain the pipeline groups to be processed and calculate the centerline of each pipeline group. Each pipeline group includes at least one main pipeline. Obtain the number of layout lines for each main pipeline. The main pipelines are perpendicular to the layout lines and arranged between the two endpoints of the layout lines. Adjust the position of the main pipelines within the pipeline group according to the centerline and the number of layout lines of the main pipelines to obtain the adjusted pipeline group. Obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value.

[0196] In one embodiment of this application, the computer program, when executed by a processor, further performs the following steps:

[0197] The system detects the number of main pipelines in the pipeline group. If there is only one main pipeline, the centerline of the main pipeline is determined as the centerline of the pipeline group. If there are multiple main pipelines, any reference point outside the custom boundary is selected, and the sum of the projected distances from the reference point to each main pipeline is calculated. The center point of the pipeline group is obtained by dividing the sum of the distances by the number of main pipelines in the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the centerline of the pipeline group.

[0198] In one embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0199] Project each main line onto the center line to obtain the projected line segment of the main line on the center line and the projected distance of the main line; calculate the interval distance between every two projected line segments in the direction parallel to the center line; determine the positional relationship between every two main lines relative to the center line, including whether they are on the same side or opposite sides; pair the main lines in pairs according to the interval distance and positional relationship to obtain at least one pairing group, and adjust the position of the main lines in the pairing group according to the projected distance.

[0200] In one embodiment, when the computer program is executed by the processor, it further performs the following steps:

[0201] Select the same-side position relationship and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line with the other main line; select the opposite-side position relationship and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line with the other main line.

[0202] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: calculating the number of main pipelines within the pipeline group; detecting the position information of the main pipelines within the pipeline group relative to the centerline, the position information including being located on a first side of the centerline and a second side of the centerline; and adjusting the position of the main pipelines according to the number of pipelines, the centerline, and the position information.

[0203] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: on the first side, the main pipelines in the pipeline group are arranged in descending order of the number of lines; on the second side, the main pipelines in the pipeline group are arranged in descending order of the number of lines; wherein the main pipelines in the pipeline group with a larger number of lines are closer to the center line.

[0204] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: selecting a pipeline group to be adjusted from each pipeline group according to preset conditions; calculating the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups for each pipeline group to be adjusted; and moving the pipeline group whose sum of ratios is closest to 1 to the same occupational range.

[0205] In one embodiment, when the computer program is executed by the processor, it further performs the following steps: detecting whether there is an intersection of the projected line segments of each pipeline group in the direction parallel to the pipeline group, and selecting pipeline groups whose projected line segments do not intersect; for the selected pipeline groups whose projected line segments do not intersect, detecting whether the new arrangement range of the main pipeline in each pipeline group is equal to the original arrangement range, wherein the new arrangement range indicates the arrangement range generated by the connection of the main pipeline to other components; and selecting the pipeline groups whose projected line segments do not intersect and whose new arrangement range of each main pipeline in the pipeline group is equal to the original arrangement range as pipeline groups to be adjusted.

[0206] The computer-readable storage medium provided in this embodiment is similar in principle and technical effect to the method embodiment described above, and will not be repeated here.

[0207] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M ​​forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0208] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0209] The above embodiments merely illustrate several implementation methods of the present invention, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the protection scope of the present invention. Therefore, the protection scope of this invention patent should be determined by the appended claims.

Claims

1. A pipeline layout method, characterized in that, The method includes: Obtain the pipeline groups to be processed and calculate the centerline of each pipeline group, wherein each pipeline group includes at least one main pipeline; Obtain the number of arrangement lines for each of the main pipelines, wherein the main pipelines are perpendicular to the arrangement lines and arranged between the two endpoints of the arrangement lines; The position of the main pipeline within the pipeline group is adjusted according to the number of arrangement lines of the center line and the main pipeline to obtain the adjusted pipeline group; Obtain the width value of the pipeline group, and adjust the position of each pipeline group according to the width value; The step of adjusting the position of the main pipeline within the pipeline group according to the number of arrangement lines of the centerline and the main pipeline to obtain the adjusted pipeline group includes: Project each of the main pipelines onto the center line to obtain the projected line segment of the main pipeline on the center line and the projected distance of the main pipeline. Calculate the distance between every two projected line segments in the direction parallel to the center line; Determine the positional relationship between any two main pipelines relative to the centerline, wherein the positional relationship includes being on the same side or on opposite sides; The main pipelines are paired up in pairs according to the interval distance and the positional relationship to obtain at least one pairing group. The position of the main pipelines in the pairing group is adjusted according to the projection distance to obtain the adjusted pipeline group.

2. The method according to claim 1, characterized in that, The calculation of the centerline of each of the pipeline groups includes: Detect the number of main pipelines in the pipeline group; If there is only one main pipeline, then the centerline of the main pipeline is determined as the centerline of the pipeline group; If there are multiple main pipelines, select any reference point outside the custom boundary, and calculate the sum of the projected distances from the reference point to each main pipeline. Divide the sum of the distances by the number of main pipelines in the pipeline group to obtain the center point of the pipeline group. The straight line passing through the center point and parallel to the main pipeline is determined as the center line of the pipeline group.

3. The method according to claim 1, characterized in that, The step of adjusting the position of the main pipeline in the pairing group according to the projection distance includes any one of the following: Select the positional relationship as same side, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one first pairing group, and move the main line with the smaller projection distance in the first pairing group to the horizontal line of the other main line; Select the positional relationship as opposite sides, and pair the main lines in pairs according to the interval distance from small to large to obtain at least one second pairing group, and move the main line with the smaller projection distance in the second pairing group to the horizontal line of the other main line.

4. The method according to claim 1, characterized in that, The step of adjusting the position of the main pipeline within the pipeline group according to the centerline and the number of arrangement lines of the main pipeline further includes: Calculate the number of main pipelines within the pipeline group; Detect the position information of the main pipeline within the pipeline group relative to the centerline, the position information including being located on a first side of the centerline and being located on a second side of the centerline; The position of the main pipeline is adjusted according to the number of layout lines, the center line, and the position information.

5. The method according to claim 4, characterized in that, Adjusting the position of the main pipeline according to the number of layout lines, the center line, and the position information includes: In the first side, the main pipelines in the pipeline group are arranged in descending order of the number of layout lines; In the second side, the main pipelines in the pipeline group are arranged in descending order of the number of layout lines; In particular, the main pipeline in a pipeline group with a larger number of arrangement lines is closer to the center line.

6. The method according to claim 1, characterized in that, The step of adjusting the position of each pipeline group according to the width value includes: Select the pipeline group to be adjusted from each of the pipeline groups according to the preset conditions; For each pipeline group to be adjusted, calculate the ratio of the width value of any pipeline group to the width value of the remaining pipeline groups; Move the pipeline group whose sum of the ratios is closest to 1 to the same occupancy range.

7. The method according to claim 6, characterized in that, The step of selecting the pipeline group to be adjusted from each of the pipeline groups according to preset conditions includes: Detect whether the projected line segments of each pipeline group intersect in the direction parallel to the pipeline group, and select the pipeline group whose projected line segments do not intersect; For pipeline groups where the selected projection line segments do not intersect, it is detected whether the new arrangement range of the main pipeline in each pipeline group is equal to the original arrangement range. The new arrangement range indicates the arrangement range generated by the connection of the main pipeline to other components. The pipeline group in which the projected line segments do not intersect and the new arrangement range of each main pipeline in the pipeline group is equal to the original arrangement range is selected as the pipeline group to be adjusted.

8. A pipeline layout processing device, characterized in that, The device includes: A calculation module is used to acquire pipeline groups to be processed and calculate the centerline of each pipeline group, wherein the pipeline group includes at least one main pipeline. The acquisition module is used to acquire the number of arrangement lines of each of the main pipelines, wherein the main pipelines are perpendicular to the arrangement lines and are arranged between the two endpoints of the arrangement lines; The first adjustment module is used to adjust the position of the main pipeline within the pipeline group according to the center line and the number of arrangement lines of the main pipeline, so as to obtain the adjusted pipeline group; The second adjustment module is used to obtain the width value of the pipeline group and adjust the position of each pipeline group according to the width value; The step of adjusting the position of the main pipeline within the pipeline group according to the number of arrangement lines of the centerline and the main pipeline to obtain the adjusted pipeline group includes: Project each of the main pipelines onto the center line to obtain the projected line segment of the main pipeline on the center line and the projected distance of the main pipeline. Calculate the distance between every two projected line segments in the direction parallel to the center line; Determine the positional relationship between any two main pipelines relative to the centerline, wherein the positional relationship includes being on the same side or on opposite sides; The main pipelines are paired up in pairs according to the interval distance and the positional relationship to obtain at least one pairing group. The position of the main pipelines in the pairing group is adjusted according to the projection distance to obtain the adjusted pipeline group.

9. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, implements the pipeline routing processing method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Pipeline deepening method based on BIM model

    CN105260541A

  • Pipeline arrangement model generation method and device, computer equipment and storage medium

    CN113158281A