Building pipeline connecting method and device

By obtaining the spatial distribution map and angle of pipelines in the building, projecting and numbering pipelines, and determining the connection method according to the positional relationship, it realizes efficient connection of multi-section pipelines, solving the problem of low manual connection efficiency in the existing technology, and improving construction efficiency and science sex.

CN119066820APending Publication Date: 2024-12-03CHENGDU XUMI YUNTU ARCHITECTURAL DESIGN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411030222.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

In the prior art, designers manually connect multi-section pipelines with low efficiency, resulting in low efficiency and increased costs during construction.

Method used

By obtaining the spatial distribution map of the multi-section pipelines in the target building, determine the angle of the connecting pipes, and project the pipelines to the same plane to determine the distance between each section of pipeline, number according to the minimum distance, connect the adjacent pipelines numbered in sequence, according to The pipeline position relationship determines the connection method and uses the connection pipe for connection.

Benefits of technology

It improves the efficiency of multi-section pipeline connections, reduces costs, improves the scientific nature of connections, and solves the problem of low manual connection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119066820A_ABST
    Figure CN119066820A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of buildings, and provides a building pipeline connecting method and device. The method comprises the steps that a spatial distribution diagram of multiple sections of pipelines in a target building is obtained, and the angle of a selected connecting pipe is determined; projecting a plurality of sections of pipelines in the spatial distribution map to the same plane to determine the distance between the sections of pipelines; numbering each section of pipeline according to the distance between each section of pipeline, the distance between two sections of pipelines with adjacent numbers being the minimum of the distances between the two sections of pipelines and all the pipelines; according to the sequence of the serial numbers from small to large, sequentially connecting two sections of pipelines with adjacent serial numbers according to the following method: for any two sections of pipelines with adjacent serial numbers, determining the connection mode of the two sections of pipelines according to the spatial positions of the two sections of pipelines, and connecting the two sections of pipelines by using a connecting pipe according to the connection mode. By adopting the technical means, the problem that in the prior art, the efficiency is low when a designer manually connects multiple sections of pipelines is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of building technology, and in particular to a method and device for connecting building pipelines. Background Art

[0002] In order to meet the living needs of people, all buildings with people need to arrange various pipes, such as water supply pipes, drainage pipes, electrical pipes and heating pipes. In order to improve the efficiency and scientificity of pipe layout, it is necessary to design the layout of the pipes and the connection of different pipe sections at the beginning of construction to ensure that all pipes can operate normally. To design pipes, it is necessary to draw pipelines on the design drawings (pipelines represent pipes). At present, designers often draw pipelines manually based on their own experience. Because there are many types of pipes in a building, and each pipe has many sections, the connection of different sections of pipelines on the design drawings is very cumbersome, and the efficiency of manual connection is extremely low. Summary of the invention

[0003] In view of this, the embodiments of the present application provide a building pipeline connection method, device, electronic device and computer-readable storage medium to solve the problem of low efficiency of designers manually connecting multiple pipeline sections in the prior art.

[0004] In a first aspect of an embodiment of the present application, a method for connecting building pipelines is provided, comprising: obtaining a spatial distribution map of multiple pipeline sections in a target building, and determining the angle of a selected connecting pipe; projecting the multiple pipeline sections in the spatial distribution map onto the same plane to determine the distance between each pipeline section; numbering each pipeline section according to the distance between each pipeline section, wherein the distance between two pipeline sections with adjacent numbers is the smallest of the distances between the two pipeline sections and all pipelines; and connecting two pipeline sections with adjacent numbers in order from small to large according to the following method: for any two pipeline sections with adjacent numbers, determining a connection method of the two pipeline sections according to the spatial positions of the two pipeline sections, and connecting the two pipeline sections using a connecting pipe according to the connection method.

[0005] According to a second aspect of an embodiment of the present application, a building pipeline connection device is provided, including: an acquisition module, configured to acquire a spatial distribution map of multiple pipeline sections in a target building, and determine the angle of a selected connecting pipe; a determination module, configured to project multiple pipeline sections in the spatial distribution map onto the same plane to determine the distance between each pipeline section; a numbering module, configured to number each pipeline section according to the distance between each pipeline section, wherein the distance between two pipeline sections with adjacent numbers is the smallest of the distances between the two pipeline sections and all pipelines; a connection module, configured to connect two pipeline sections with adjacent numbers in order from small to large according to the following method: for any two pipeline sections with adjacent numbers, determine the connection method of the two pipeline sections according to the spatial positions of the two pipeline sections, and connect the two pipeline sections using a connecting pipe according to the connection method.

[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0007] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0008] Compared with the prior art, the embodiments of the present application have the following beneficial effects: obtaining a spatial distribution diagram of multiple pipelines in a target building, and determining the angle of the selected connecting pipe; projecting multiple pipelines in the spatial distribution diagram onto the same plane to determine the distance between each pipeline segment; numbering each pipeline segment according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest of the distances between the two pipeline segments and all pipelines; connecting two pipeline segments with adjacent numbers in order from small to large according to the following method: for any two pipeline segments with adjacent numbers, determining the connection method of the two pipeline segments according to the spatial positions of the two pipeline segments, and connecting the two pipeline segments using a connecting pipe according to the connection method. The above-mentioned technical means can solve the problem of low efficiency of manually connecting multiple pipeline segments by designers in the prior art, thereby improving the efficiency of connecting multiple pipeline segments, reducing costs, and improving the scientific nature of connecting multiple pipeline segments. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0010] Figure 1 It is a flow chart of a building pipeline connection method provided in an embodiment of the present application;

[0011] Figure 2 It is a flow chart of another method for connecting building pipelines provided in an embodiment of the present application;

[0012] Figure 3 It is a structural schematic diagram of a building pipeline connection device provided in an embodiment of the present application;

[0013] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0014] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0015] A building pipeline connection method and device according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.

[0016] Figure 1 It is a flow chart of a building pipeline connection method provided in an embodiment of the present application. Figure 1 The building pipeline connection method can be executed by a computer or a server, or by software on a computer or a server. Figure 1 As shown, the building pipeline connection method includes:

[0017] S101, obtaining a spatial distribution diagram of multiple pipeline sections in a target building, and determining the angle of the selected connecting pipe;

[0018] S102, projecting multiple pipeline segments in the spatial distribution map onto the same plane to determine the distance between each pipeline segment;

[0019] S103, numbering each pipeline segment according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest distance between the two pipeline segments and all pipelines;

[0020] S104, connecting two pipeline sections with adjacent numbers in order from small to large according to the following method: for any two pipeline sections with adjacent numbers, determining the connection method of the two pipeline sections according to the spatial positions of the two pipeline sections, and connecting the two pipeline sections using a connecting pipe according to the connection method.

[0021] Each time the connection is to the same type of pipeline, so the spatial distribution diagram is about the distribution of the spatial position of one type of pipeline. If the spatial distribution diagram is about the distribution of the spatial positions of multiple types of pipelines, then the spatial distribution diagram can be divided into distribution diagrams corresponding to various types of pipelines according to the type of pipeline, and then the same type of pipelines can be connected according to the distribution diagrams corresponding to various types of pipelines. The connecting pipe is used to connect two sections of pipelines. The angle of the connecting pipe is fixed. Common angles of the connecting pipe are 30, 45, 60, etc. Project the multiple sections of pipelines in the spatial distribution diagram to the same plane to obtain the distance between a section of pipeline and other pipelines. According to the distance between each section of pipeline, each section of pipeline is numbered. For example, if pipeline No. 1, then the pipeline closest to pipeline No. 1 is No. 2, and the pipeline closest to pipeline No. 2 except No. 1 is No. 3... In order from small to large, connect the two sections of pipelines with adjacent numbers. First connect No. 1 and No. 2, then connect No. 2 and No. 3... For any two pipelines with adjacent numbers, the connection method of the two pipelines is determined according to the spatial positions of the two pipelines, and then the two pipelines are connected using a connecting pipe according to the connection method.

[0022] According to the technical solution provided in the embodiment of the present application, a spatial distribution map of multiple pipelines in the target building is obtained, and the angle of the selected connecting pipe is determined; the multiple pipelines in the spatial distribution map are projected onto the same plane to determine the distance between each pipeline segment; each pipeline segment is numbered according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest of the distances between the two pipeline segments and all pipelines; two pipeline segments with adjacent numbers are connected in sequence in the order of numbers from small to large according to the following method: for any two pipeline segments with adjacent numbers, the connection method of the two pipeline segments is determined according to the spatial positions of the two pipeline segments, and the two pipeline segments are connected using a connecting pipe according to the connection method. The above-mentioned technical means can solve the problem of low efficiency of designers manually connecting multiple pipeline segments in the prior art, thereby improving the efficiency of connecting multiple pipeline segments, reducing costs, and improving the scientific nature of connecting multiple pipeline segments.

[0023] Furthermore, the connection method of the two pipeline sections is determined according to the spatial positions of the two pipeline sections, including: judging the positional relationship of the two pipeline sections according to the spatial positions of the two pipeline sections; when the two pipeline sections are collinear and at different heights, determining the connection method to be the first method; when the two pipeline sections are horizontal and at the same height, determining the connection method to be the second method; when the two pipeline sections are horizontal and at different heights, determining the connection method to be the third method.

[0024] The positional relationships between the two pipeline sections include being collinear and at different heights, being horizontal and at the same height, and being horizontal and at different heights. The connection modes selected for each positional relationship are the first mode, the second mode, and the third mode.

[0025] Collinearity is a special level, and the embodiments of the present application distinguish collinearity from levels.

[0026] When the connection method is the first method, the two pipeline sections are connected using a connecting pipe according to the first method: a first distance and a first length are calculated according to an angle and a height difference between the two pipeline sections; a position of one of the two pipeline sections is adjusted based on the first distance; and the two pipeline sections are connected using a connecting pipe of a first length.

[0027] Two pipeline sections are collinear and at different heights. At this time, the height difference between the two pipeline sections is determined, and the first distance and the first length can be calculated using trigonometric functions based on the angle and the height difference. In the triangle composed of the height difference, the first distance and the first length, the height difference is the opposite side of the angle, the first length is the hypotenuse of the triangle, and the first distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipeline sections to adjust the original vertical distance between the two pipeline sections (project the two pipeline sections onto the same plane, and the distance between the adjacent ports of the two pipeline sections is the vertical distance) to the first distance, and use a connecting pipe of the first length to connect the two adjusted pipeline sections. To adjust the position of any one of the two pipeline sections is to adjust the position of the one with the larger number. If the position of the one with the smaller number is adjusted, a chain reaction of the previously connected pipelines will be caused.

[0028] When the connection method is the second method, the two pipeline sections are connected using a connecting pipe according to the second method: a second distance and a second length are calculated according to the angle and the horizontal distance between the two pipeline sections; a position of one of the two pipeline sections is adjusted based on the second distance; and the two pipeline sections are connected using a connecting pipe of a second length.

[0029] The two pipeline sections are horizontal and at the same height. At this time, the horizontal distance between the two pipeline sections is determined (the distance between the two segments is the horizontal distance, and the distance between the two endpoints is the vertical distance). The second distance and the second length can be calculated using trigonometric functions based on the angle and the horizontal distance. In the triangle composed of the horizontal distance, the second distance and the second length, the horizontal distance is the opposite side of the angle, the second length is the hypotenuse of the triangle, and the second distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipeline sections to adjust the original vertical distance between the two pipeline sections (the distance between the adjacent ports of the two pipeline sections is the vertical distance) to the second distance, and use a connecting pipe of the second length to connect the two pipeline sections after the adjustment. To adjust the position of any one of the two pipeline sections is to adjust the position of the one with the larger number. If the position of the one with the smaller number is adjusted, a chain reaction of the previously connected pipelines will be caused.

[0030] When the connection method is the third method, the two sections of pipeline are connected using a connecting pipe according to the third method: a third distance and a third length are calculated according to the angle and the height difference between the two sections of pipeline; the position of one section of the two sections of pipeline is adjusted based on the third distance; the pipeline whose position is adjusted is raised to a plane at the same height as the other section of pipeline using a connecting pipe of the third length; after the two sections of pipeline are on the plane at the same height, a fourth distance and a fourth length are calculated according to the angle and the horizontal distance between the two sections of pipeline; the position of one section of the two sections of pipeline is adjusted based on the fourth distance; and the two sections of pipeline are connected using a connecting pipe of the fourth length.

[0031] If two sections of pipeline are horizontal and at different heights, first adjust the two sections of pipeline to the same height, and then connect the two sections of pipeline on the same plane. Therefore, the implementation of the third method is actually to implement the first and second methods in sequence. First adjust the two sections of pipeline to the same height: calculate the third distance and the third length according to the angle and the height difference between the two sections of pipeline. In the triangle composed of the height difference, the third distance and the third length, the height difference is the opposite side of the angle, the third length is the hypotenuse of the triangle, and the third distance is a right angle side that constitutes the angle. Adjust the position of one of the two sections of pipeline to adjust the original vertical distance between the two sections of pipeline to the third distance, and use the third length of the connecting pipe to raise the adjusted pipeline to the plane at the same height as the other section of pipeline.

[0032] Then connect the two pipelines on the same plane: calculate the fourth distance and the fourth length according to the angle and the horizontal distance of the two pipelines. In the triangle composed of the horizontal distance, the fourth distance and the fourth length, the horizontal distance is the opposite side of the angle, the fourth length is the hypotenuse of the triangle, and the fourth distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipelines to adjust the original vertical distance between the two pipelines (the distance between the adjacent ports of the two pipelines is the vertical distance) to the fourth distance, and use the connecting pipe of the fourth length to connect the two pipelines that have been adjusted and raised to the same height.

[0033] Furthermore, for any two adjacently numbered pipelines, a connection method of the two pipeline sections is determined according to the spatial positions of the two pipeline sections, and the two pipeline sections are connected using a connecting pipe according to the connection method, including: making the following judgments according to the spatial positions of the two pipeline sections: judging whether the two pipeline sections are collinear and whether the two pipeline sections are at the same height; if they are collinear and at different heights, determining the connection method to be the first method, and connecting the two pipeline sections using a connecting pipe according to the first method; judging whether the two pipeline sections are parallel and whether the two pipeline sections are at the same height; if they are horizontal and at the same height, determining the connection method to be the second method, and connecting the two pipeline sections using a connecting pipe according to the second method; if they are horizontal and at different heights, determining the connection method to be the third method, and connecting the two pipeline sections using a connecting pipe according to the third method.

[0034] According to the first method, a connecting pipe is used to connect two pipelines that are collinear and at different heights. According to the second method, a connecting pipe is used to connect two pipelines that are horizontal and at the same height. According to the third method, a connecting pipe is used to connect two pipelines that are horizontal and at different heights. The positional relationship of two pipelines also includes collinear and at the same height and non-parallel. These two types of pipelines are not processed.

[0035] Figure 2 FIG. 1 is a flow chart of another method for connecting building pipelines provided in an embodiment of the present application. Figure 2 As shown, the method includes:

[0036] Execute the following loop:

[0037] S201, determining whether i is equal to N, where i is the number of the pipeline, the initial value of i is 1, and N is the number of segments of the pipeline;

[0038] S202, when i is equal to N, it is determined that all pipelines have been connected, and the loop ends;

[0039] S203, when i is less than N, determining the positional relationship between the i-th pipeline section and the i+1-th pipeline section based on the spatial positions of the i-th pipeline section and the i+1-th pipeline section;

[0040] S204, when the i-th pipeline section and the i+1-th pipeline section are collinear and at different heights, determine that the connection mode is the first mode, connect the two pipeline sections using a connecting pipe according to the first mode, and update i with a value of i plus 1;

[0041] S205, when the i-th pipeline section and the i+1-th pipeline section are horizontal and at the same height, determine that the connection mode is the second mode, connect the two pipeline sections using a connecting pipe according to the second mode, and update i with the value of i plus 1;

[0042] S206, when the i-th pipeline section and the i+1-th pipeline section are horizontal and at different heights, determine that the connection method is the third method, use a connecting pipe to connect the two pipeline sections according to the third method, and update i with the value of i plus 1.

[0043] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0044] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

[0045] Figure 3 Schematic diagram of a building pipeline connection device provided in an embodiment of the present application. Figure 3 As shown, the building pipeline connection device includes:

[0046] The acquisition module 301 is configured to acquire a spatial distribution diagram of multiple sections of pipelines in a target building and determine the angle of the selected connecting pipe;

[0047] The determination module 302 is configured to project multiple pipeline segments in the spatial distribution map onto the same plane to determine the distance between each pipeline segment;

[0048] The numbering module 303 is configured to number each pipeline segment according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest distance between the two pipeline segments and all pipelines;

[0049] The connection module 304 is configured to connect two pipeline sections with adjacent numbers in order from small to large according to the following method: for any two pipeline sections with adjacent numbers, the connection method of the two pipeline sections is determined according to the spatial positions of the two pipeline sections, and the two pipeline sections are connected using a connecting pipe according to the connection method.

[0050] According to the technical solution provided in the embodiment of the present application, a spatial distribution map of multiple pipelines in the target building is obtained, and the angle of the selected connecting pipe is determined; the multiple pipelines in the spatial distribution map are projected onto the same plane to determine the distance between each pipeline segment; each pipeline segment is numbered according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest of the distances between the two pipeline segments and all pipelines; two pipeline segments with adjacent numbers are connected in sequence in the order of numbers from small to large according to the following method: for any two pipeline segments with adjacent numbers, the connection method of the two pipeline segments is determined according to the spatial positions of the two pipeline segments, and the two pipeline segments are connected using a connecting pipe according to the connection method. The above-mentioned technical means can solve the problem of low efficiency of designers manually connecting multiple pipeline segments in the prior art, thereby improving the efficiency of connecting multiple pipeline segments, reducing costs, and improving the scientific nature of connecting multiple pipeline segments.

[0051] In some embodiments, the connection module 304 is also configured to determine the positional relationship between the two pipeline sections according to the spatial positions of the two pipeline sections; when the two pipeline sections are collinear and at different heights, the connection method is determined to be the first method; when the two pipeline sections are horizontal and at the same height, the connection method is determined to be the second method; when the two pipeline sections are horizontal and at different heights, the connection method is determined to be the third method.

[0052] The positional relationships between the two pipeline sections include being collinear and at different heights, being horizontal and at the same height, and being horizontal and at different heights. The connection modes selected for each positional relationship are the first mode, the second mode, and the third mode.

[0053] Collinearity is a special level, and the embodiments of the present application distinguish collinearity from levels.

[0054] In some embodiments, the connection module 304 is also configured to connect the two pipeline sections using a connecting pipe according to the first method when the connection method is the first method: calculate the first distance and the first length according to the angle and the height difference between the two pipeline sections; adjust the position of one of the two pipeline sections based on the first distance; and connect the two pipeline sections using a connecting pipe of the first length.

[0055] Two pipeline sections are collinear and at different heights. At this time, the height difference between the two pipeline sections is determined, and the first distance and the first length can be calculated using trigonometric functions based on the angle and the height difference. In the triangle composed of the height difference, the first distance and the first length, the height difference is the opposite side of the angle, the first length is the hypotenuse of the triangle, and the first distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipeline sections to adjust the original vertical distance between the two pipeline sections (project the two pipeline sections onto the same plane, and the distance between the adjacent ports of the two pipeline sections is the vertical distance) to the first distance, and use a connecting pipe of the first length to connect the two adjusted pipeline sections. To adjust the position of any one of the two pipeline sections is to adjust the position of the one with the larger number. If the position of the one with the smaller number is adjusted, a chain reaction of the previously connected pipelines will be caused.

[0056] In some embodiments, the connection module 304 is also configured to connect the two pipeline sections using a connecting pipe according to the second method when the connection method is the second method: calculate the second distance and the second length based on the angle and the horizontal distance between the two pipeline sections; adjust the position of one of the two pipeline sections based on the second distance; and connect the two pipeline sections using a connecting pipe of a second length.

[0057] The two pipeline sections are horizontal and at the same height. At this time, the horizontal distance between the two pipeline sections is determined (the distance between the two segments is the horizontal distance, and the distance between the two endpoints is the vertical distance). The second distance and the second length can be calculated using trigonometric functions based on the angle and the horizontal distance. In the triangle composed of the horizontal distance, the second distance and the second length, the horizontal distance is the opposite side of the angle, the second length is the hypotenuse of the triangle, and the second distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipeline sections to adjust the original vertical distance between the two pipeline sections (the distance between the adjacent ports of the two pipeline sections is the vertical distance) to the second distance, and use a connecting pipe of the second length to connect the two pipeline sections after the adjustment. To adjust the position of any one of the two pipeline sections is to adjust the position of the one with the larger number. If the position of the one with the smaller number is adjusted, a chain reaction of the previously connected pipelines will be caused.

[0058] In some embodiments, the connection module 304 is also configured to connect the two pipeline sections using a connecting pipe according to the third method when the connection method is the third method: calculate a third distance and a third length based on the angle and the height difference between the two pipeline sections; adjust the position of one of the two pipeline sections based on the third distance; use a connecting pipe of a third length to lift the adjusted pipeline to a plane at the same height as the other pipeline section; after the two pipeline sections are on the plane at the same height, calculate a fourth distance and a fourth length based on the angle and the horizontal distance between the two pipeline sections; adjust the position of one of the two pipeline sections based on the fourth distance; and connect the two pipeline sections using a connecting pipe of a fourth length.

[0059] If two sections of pipeline are horizontal and at different heights, first adjust the two sections of pipeline to the same height, and then connect the two sections of pipeline on the same plane. Therefore, the implementation of the third method is actually to implement the first and second methods in sequence. First adjust the two sections of pipeline to the same height: calculate the third distance and the third length according to the angle and the height difference between the two sections of pipeline. In the triangle composed of the height difference, the third distance and the third length, the height difference is the opposite side of the angle, the third length is the hypotenuse of the triangle, and the third distance is a right angle side that constitutes the angle. Adjust the position of one of the two sections of pipeline to adjust the original vertical distance between the two sections of pipeline to the third distance, and use the third length of the connecting pipe to raise the adjusted pipeline to the plane at the same height as the other section of pipeline.

[0060] Then connect the two pipelines on the same plane: calculate the fourth distance and the fourth length according to the angle and the horizontal distance of the two pipelines. In the triangle composed of the horizontal distance, the fourth distance and the fourth length, the horizontal distance is the opposite side of the angle, the fourth length is the hypotenuse of the triangle, and the fourth distance is a right-angled side that constitutes the angle. Adjust the position of one of the two pipelines to adjust the original vertical distance between the two pipelines (the distance between the adjacent ports of the two pipelines is the vertical distance) to the fourth distance, and use the connecting pipe of the fourth length to connect the two pipelines that have been adjusted and raised to the same height.

[0061] In some embodiments, the connection module 304 is also configured to make the following judgments based on the spatial positions of the two pipeline sections: determine whether the two pipeline sections are collinear and whether the two pipeline sections are at the same height; if they are collinear and at different heights, determine that the connection method is the first method, and use a connecting pipe to connect the two pipeline sections according to the first method; determine whether the two pipeline sections are parallel and whether the two pipeline sections are at the same height; if they are horizontal and at the same height, determine that the connection method is the second method, and use a connecting pipe to connect the two pipeline sections according to the second method; if they are horizontal and at different heights, determine that the connection method is the third method, and use a connecting pipe to connect the two pipeline sections according to the third method.

[0062] According to the first method, a connecting pipe is used to connect two pipelines that are collinear and at different heights. According to the second method, a connecting pipe is used to connect two pipelines that are horizontal and at the same height. According to the third method, a connecting pipe is used to connect two pipelines that are horizontal and at different heights. The positional relationship of two pipelines also includes collinear and at the same height and non-parallel. These two types of pipelines are not processed.

[0063] In some embodiments, the connection module 304 is further configured to execute the following loop: determine whether i is equal to N, where i is the number of the pipeline, the initial value of i is 1, and N is the number of segments of the pipeline; when i is equal to N, determine that all pipelines have been connected and end the loop; when i is less than N, determine the positional relationship between the i-th segment of the pipeline and the i+1-th segment of the pipeline based on the spatial position of the i-th segment of the pipeline and the i+1-th segment of the pipeline; when the i-th segment of the pipeline and the i+1-th segment of the pipeline are collinear and at different heights, determine that the connection method is the first method, use a connecting pipe to connect the two segments of the pipeline according to the first method, and update i with the value of i plus 1; when the i-th segment of the pipeline and the i+1-th segment of the pipeline are horizontal and at the same height, determine that the connection method is the second method, use a connecting pipe to connect the two segments of the pipeline according to the second method, and update i with the value of i plus 1; when the i-th segment of the pipeline and the i+1-th segment of the pipeline are horizontal and at different heights, determine that the connection method is the third method, use a connecting pipe to connect the two segments of the pipeline according to the third method, and update i with the value of i plus 1.

[0064] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0065] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0066] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.

[0067] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0068] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.

[0069] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0070] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0071] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A building pipeline connection method, characterized in that: include: Obtain the spatial distribution map of multiple pipelines in the target building and determine the angle of the connecting pipe to be selected; Projecting multiple pipeline segments in the spatial distribution map onto the same plane to determine the distance between each pipeline segment; Number each pipeline section according to the distance between each pipeline section, wherein the distance between two pipeline sections with adjacent numbers is the smallest distance between the two pipeline sections and all pipelines; In order of increasing numbers, connect two adjacent pipelines in the following manner: For any two pipelines with adjacent numbers, the connection method of the two pipelines is determined according to the spatial positions of the two pipelines, and the two pipelines are connected using the connecting pipe according to the connection method.

2. The method according to claim 1, characterized in that Determining a connection method of the two pipeline sections according to the spatial positions of the two pipeline sections includes: Determining the positional relationship between the two pipeline sections according to the spatial positions of the two pipeline sections; When the two pipeline sections are collinear and at different heights, the connection mode is determined to be the first mode; When the two sections of pipeline are horizontal and at the same height, the connection mode is determined to be the second mode; When the two sections of pipeline are horizontal and located at different heights, the connection mode is determined to be the third mode.

3. The method according to claim 2, characterized in that The method further comprises: When the connection method is the first method, the two pipeline sections are connected using the connecting pipe according to the first method: Calculate a first distance and a first length according to the angle and the height difference between the two sections of the pipeline; adjusting the position of one of the two pipeline sections based on the first distance; The two sections of pipeline are connected using the connecting pipe of the first length.

4. The method according to claim 2, characterized in that: The method further comprises: When the connection method is the second method, the two pipeline sections are connected using the connecting pipe according to the second method: Calculate a second distance and a second length according to the angle and the horizontal distance between the two sections of the pipeline; adjusting the position of one of the two pipeline sections based on the second distance; The two sections of pipeline are connected using the connecting pipe of the second length.

5. The method according to claim 2, characterized in that: The method further comprises: When the connection method is the third method, the two pipeline sections are connected using the connecting pipe according to the third method: Calculate a third distance and a third length according to the angle and the height difference between the two sections of the pipeline; adjusting the position of one of the two pipeline sections based on the third distance; Using the connecting pipe of the third length to raise the pipeline to be adjusted to a plane at the same height as the other section of the pipeline; After the two sections of pipeline are on a plane at the same height, a fourth distance and a fourth length are calculated according to the angle and the horizontal distance between the two sections of pipeline; adjusting the position of one of the two pipeline sections based on the fourth distance; The two sections of pipeline are connected using the connecting pipe of the fourth length.

6. The method according to claim 1, characterized in that For any two pipelines with adjacent numbers, a connection method of the two pipelines is determined according to the spatial positions of the two pipelines, and the two pipelines are connected using the connecting pipe according to the connection method, including: The following judgment is made based on the spatial position of the two pipeline sections: Determine whether the two pipeline sections are collinear and whether the two pipeline sections are at the same height; if they are collinear and at different heights, determine that the connection method is the first method, and connect the two pipeline sections using the connecting pipe according to the first method; Determine whether the two pipeline sections are parallel and whether the two pipeline sections are at the same height; If they are horizontal and at the same height, the connection method is determined to be the second method, and the two sections of pipeline are connected using the connecting pipe according to the second method; If they are horizontal and at different heights, the connection method is determined to be the third method, and the two sections of pipeline are connected using the connecting pipe according to the third method.

7. The method according to claim 1, characterized in that The method further comprises: Execute the following loop: Determine whether i is equal to N, where i is the number of the pipeline, the initial value of i is 1, and N is the number of segments of the pipeline; When i is equal to N, it is determined that all pipelines have been connected, and the cycle ends; When i is less than N, the positional relationship between the i-th pipeline section and the i+1-th pipeline section is determined based on the spatial positions of the i-th pipeline section and the i+1-th pipeline section; When the i-th pipeline section and the i+1-th pipeline section are collinear and at different heights, the connection mode is determined to be the first mode, the two pipeline sections are connected using the connecting pipe according to the first mode, and i is updated by i plus 1; When the i-th pipeline section and the i+1-th pipeline section are horizontal and at the same height, the connection mode is determined to be the second mode, the two pipeline sections are connected using the connecting pipe according to the second mode, and i is updated with a value of i plus 1; When the i-th pipeline section and the i+1-th pipeline section are horizontal and at different heights, the connection mode is determined to be the third mode, the two pipeline sections are connected using the connecting pipe according to the third mode, and i is updated with a value of i plus 1.

8. A building pipeline connection device, characterized in that: include: An acquisition module is configured to acquire a spatial distribution diagram of multiple sections of pipelines in a target building and determine an angle of a selected connecting pipe; A determination module is configured to project the multiple pipeline segments in the spatial distribution map onto the same plane to determine the distance between the pipeline segments; A numbering module is configured to number each pipeline segment according to the distance between each pipeline segment, wherein the distance between two pipeline segments with adjacent numbers is the smallest distance between the two pipeline segments and all pipelines; The connection module is configured to connect two pipeline sections with adjacent numbers in order from small to large according to the following method: for any two pipeline sections with adjacent numbers, the connection method of the two pipeline sections is determined according to the spatial positions of the two pipeline sections, and the two pipeline sections are connected using the connecting pipe according to the connection method.

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

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