A pipeline design method, equipment and medium based on three-dimensional modeling platform
By automatically determining the pipe layout mode and path on the 3D modeling platform, and selecting pipe fitting types and standard parts, the traditional design problems of low efficiency and complex selection are solved, and efficient and accurate pipeline layout design is achieved.
Patent Information
- Application Number
- CN202410822307.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Traditional 3D modeling platforms require users to manually draw 3D sketches and make adjustments during pipeline design, resulting in low design efficiency, complicated operations when inserting standard parts, and prone to selection errors, affecting the integrity of the pipeline layout.
By starting the pipe routing command on the 3D modeling platform, the relative positional relationship between the picking point and the existing pipe fittings is determined, the pipe routing mode and path are automatically determined, the pipe fitting type is selected based on the angle, and the pipe fitting type is selected from the standard parts library according to the preset rules. Select the corresponding standard parts for pipe routing to achieve automated pipe routing.
It significantly improves the efficiency of pipeline design, reduces operational complexity and the possibility of selection errors, and ensures the accuracy and continuity of pipeline layout.
Smart Images

Figure CN118378397B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical digital data processing, and in particular to a pipeline design method, equipment and medium based on a three-dimensional modeling platform. Background Art
[0002] With the rapid development of industrial technology and the acceleration of urbanization, pipeline engineering, as an important part of infrastructure, faces more and more challenges in its design, construction and management. Traditional two-dimensional design methods can no longer meet the high requirements of modern pipeline engineering for accuracy, efficiency and visualization. Therefore, pipeline design methods based on three-dimensional modeling platforms have emerged and become a research hotspot and trend in the field of pipeline engineering.
[0003] However, when designing pipelines, traditional 3D modeling platforms usually require users to draw 3D sketch lines before laying out the pipes. This approach has some limitations. Users need to spend a lot of time drawing and adjusting sketch lines, and cannot obtain the shape information of pipe fittings in real time, which reduces design efficiency. In addition, when inserting standard parts, the model and specification of the standard parts need to be manually selected, which not only increases the complexity of the operation, but also easily leads to selection errors, affecting the overall layout of the pipeline. Summary of the invention
[0004] In order to solve the above problems, the present invention proposes a pipeline design method based on a three-dimensional modeling platform, comprising:
[0005] Starting a pipe layout command for designing a pipeline, and under the control of the pipe layout command, determining a pick-up point in a working view of a three-dimensional modeling platform;
[0006] Determine the in-place pipe fittings in the working view, and determine the pipe routing mode corresponding to the pipeline according to the relative position relationship between the pick-up point and the in-place pipe fittings; wherein the pipe routing mode includes a free pipe routing mode and a structured pipe routing mode;
[0007] When the pipe routing mode is the free pipe routing mode, determine the pipe routing path corresponding to the pipeline formed by the picking points, determine the type of pipe fittings to be added to the pipeline according to the angle between the pipe routing path and the in-place pipe fittings, and route the pipeline according to the type of pipe fittings;
[0008] In the case where the pipe routing mode is a structured pipe routing mode, a pipe routing path orthogonal to the pipe routing direction is determined according to the pipe routing direction of the in-place pipe fittings, and corresponding standard parts are selected from a preset standard parts library according to the pipe routing path and preset pipe routing rules to route the pipeline.
[0009] In an implementation of the present invention, determining the pipe layout mode corresponding to the pipeline according to the relative position relationship between the pick-up point and the in-place pipe fitting specifically includes:
[0010] Determine an end face of the in-place pipe and determine whether the pick-up point is located on the end face;
[0011] When the picking point is located at the end face or there is no existing pipe fitting in the working view, determining that the pipe routing mode corresponding to the pipeline is a free pipe routing mode;
[0012] In the case where the picking point is located at a position other than the end surface of the in-place pipe, it is determined that the pipe layout mode corresponding to the pipeline is a structured pipe layout mode.
[0013] In an implementation of the present invention, determining a pipe routing path corresponding to the pipeline formed by the picking points specifically includes:
[0014] Based on the location of the picking point, create a three-dimensional rectangular coordinate system;
[0015] When the pick-up point in the working view is a single point, a path formed by moving the pick-up point along any axial direction in the three-dimensional rectangular coordinate is used as a pipe routing path corresponding to the pipeline;
[0016] When there are two pick-up points in the working view, the pick-up points are connected and a connection direction corresponding to a connection line formed by the pick-up points is determined, and the connection direction is used as a pipe routing path corresponding to the pipeline.
[0017] In an implementation of the present invention, determining the type of pipe fittings to be added to the pipeline according to the angle between the pipe routing path and the existing pipe fittings specifically includes:
[0018] Determine the normal direction of the center point of the end face where the pick-up point is located, and the angle between the pipe routing path and the normal direction;
[0019] When the angle is 0, it is determined that the type of pipe to be added to the pipeline is a straight pipe;
[0020] In the case where the included angle is a specified angle, determining that the type of pipe fitting to be added to the pipeline is an elbow standard part, and selecting an elbow standard part matching the specified angle from a preset standard parts library;
[0021] When the included angle is other angles, the arc-shaped pipe fitting created based on the picking point is used as the pipe fitting type to be added to the pipeline.
[0022] In an implementation of the present invention, according to the pipe laying path and the preset pipe laying rules, corresponding standard parts are selected from a preset standard parts library to lay out the pipes, specifically including:
[0023] The pipe layout rules include hierarchical driven rules and non-hierarchical driven rules;
[0024] If the pipe routing rule is a level-driven rule, determine the level rule corresponding to the pipeline, select standard parts that meet the level rule from the standard parts library, and insert the standard parts to the location of the picking point according to the pipe routing path to realize the pipe routing of the pipeline; wherein the parameter ranges of standard parts corresponding to different level rules are different;
[0025] If the pipe routing rule is a non-level driven rule, a pipe routing window corresponding to the pipe routing rule is triggered, and in response to a standard part selection operation in the pipe routing window, corresponding standard parts are selected to route the pipeline.
[0026] In an implementation of the present invention, after laying the pipeline, the method further includes:
[0027] Determine whether there is a newly added pick-up point in the working view;
[0028] If yes, continue to lay out the pipeline in different pipe laying modes according to the newly added pick-up point until a pipeline with completed pipe laying is obtained;
[0029] If not, determine the latest currently in-place pipe fitting that has completed pipe laying, and add a straight pipe of a preset length as the next currently in-place pipe fitting after the currently in-place pipe fitting, so as to achieve continuous pipe laying of the pipeline through the currently in-place pipe fitting and the next in-place pipe fitting.
[0030] In one implementation of the present invention, a straight pipe of a preset length is added as a pipe after the current pipe in place and before the next pipe in place, and the method further includes:
[0031] Determine the path length of the pipe routing path and the pipe length corresponding to the currently in-place pipe;
[0032] The preset length is obtained according to the difference between the path length and the pipe length.
[0033] In one implementation of the present invention, laying out the pipeline specifically includes:
[0034] When the path length corresponding to the pipe routing path is greater than the parameter range corresponding to the standard part, or the curvature of the arc-shaped pipe fitting to be added to the pipeline is not within the preset range, a corresponding warning prompt is output.
[0035] An embodiment of the present invention provides a pipeline design device based on a three-dimensional modeling platform, the device comprising:
[0036] at least one processor;
[0037] and, a memory communicatively coupled to the at least one processor;
[0038] Wherein, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a pipeline design method based on a three-dimensional modeling platform as described in any of the above items.
[0039] An embodiment of the present invention provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0040] A pipeline design method based on a three-dimensional modeling platform as described in any of the above items.
[0041] The pipeline design method based on the three-dimensional modeling platform proposed by the present invention can bring the following beneficial effects:
[0042] In different pipe routing modes, pipes can be automatically routed according to the routing path, without the need to manually draw and adjust 3D sketch lines, significantly improving the efficiency of pipe design. During the routing process, the pipe fittings that need to be added to the pipeline can be automatically determined based on the preset routing rules or the angle between the routing path and the existing pipe fittings. There is no need to manually select the model and specification of standard parts, which reduces the complexity of operation. In addition, the automated selection method also reduces the possibility of selection errors and ensures the accuracy of the overall pipeline layout. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0044] Figure 1 A schematic diagram of a process flow of a pipeline design method based on a three-dimensional modeling platform provided in an embodiment of the present invention;
[0045] Figure 2 A schematic structural diagram of a pipeline design device based on a three-dimensional modeling platform provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0047] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0048] like Figure 1 As shown, an embodiment of the present invention provides a pipeline design method based on a three-dimensional modeling platform, comprising:
[0049] S101: Start a pipe layout command for designing pipelines, and under the control of the pipe layout command, determine a pick-up point in a working view of a 3D modeling platform.
[0050] After the 3D modeling platform has loaded the corresponding pipeline design module, the platform will respond to the user's selection of the "Pipe Routing" command in the menu bar or toolbar and start the pipe routing command for designing the pipeline. After starting the pipe routing command, the 3D modeling platform will enter the pipe routing mode. Based on the pipe routing mode, under the control of the pipe routing command, it is necessary to determine the pick-up point in the working view. The pick-up point is used as the starting point of the pipeline and can be used to control the shape and direction of the pipeline.
[0051] S102: Determine the existing pipe fittings in the working view, and determine the pipe routing mode corresponding to the pipeline according to the relative position relationship between the pick-up point and the existing pipe fittings; wherein the pipe routing mode includes a free pipe routing mode and a structured pipe routing mode.
[0052] The pipes that have been laid out in the current working view are called in-place pipes. In the process of pipeline design, the pick-up point will determine the shape, direction and specifications of the subsequent in-place pipes. The embodiment of the present invention provides two pipe laying modes, namely the free pipe laying mode and the structured pipe laying mode. In the free pipe laying mode, the pipe direction and pipe type of the pipes to be added subsequently are not fixed, and can be designed according to the actual pipe laying requirements. In the structured pipe laying mode, the pipe type and pipe direction need to follow certain pipe laying rules. The free pipe laying mode provides greater design freedom, while the structured pipe laying provides a more standardized pipe laying method. In the actual pipeline design process, it is necessary to select a suitable pipe laying mode according to the actual project requirements, which helps to improve the efficiency and quality of pipeline design. When determining the pipe laying mode, the key is to analyze the relative position relationship between the pick-up point and the in-place pipe. According to the relative position relationship, the pipe laying mode corresponding to the pipeline can be determined.
[0053] In one embodiment, for each existing pipe fitting, its end face is determined, and the end face generally refers to the plane of the starting end and the ending end of the pipe fitting. The pick point is compared with the end faces of all existing pipe fittings to determine whether the pick point is exactly located on a certain end face, or whether it is close enough to be considered to be located on an end face. If the pick point is located on a certain end face, or there is no existing pipe fitting in the working view, the pipe routing mode of the pipeline is the free routing mode. In this mode, the user can freely define the pipe path without being restricted by the existing pipe fitting layout. If the pick point is located at a position other than the end face of the existing pipe fitting, for example, on the side or inside of the pipe fitting, the pipe routing mode is the structured routing mode. In the structured routing mode, new pipe fittings need to be generated according to the layout and routing rules of the existing pipe fittings.
[0054] S103: When the pipe routing mode is the free pipe routing mode, determine the pipe routing path corresponding to the pipeline formed by the picking points, determine the type of pipe fittings to be added to the pipeline according to the angle between the pipe routing path and the existing pipe fittings, and route the pipeline according to the pipe fitting types.
[0055] When the pipe routing mode is the free routing mode, the corresponding routing path composed of the pick-up points needs to be determined, and the pick-up points are the starting points of the routing path. For each routing path, the angle between the routing path and the adjacent in-place pipe fittings needs to be calculated, which can be achieved by comparing the axial direction of the routing path and the normal direction of the in-place pipe fittings. According to the size of the angle and the preset pipe fitting type, the type of pipe fitting that needs to be added to the pipeline can be determined. Once the type of pipe fitting that needs to be added is determined, these pipe fittings will be automatically added to the routing path to realize the layout of the pipeline.
[0056] Specifically, a three-dimensional rectangular coordinate system is created based on the location of the pick point. When the pick point in the working view is a single point, the path formed by moving the pick point along any axial direction in the three-dimensional rectangular coordinate is used as the pipe routing path corresponding to the pipeline. When the pick point in the working view is two points, that is, when there are pick points on both end faces of the in-place pipe fitting, the pick points are connected and the connection direction corresponding to the connection line formed by the pick points is determined. It should be noted that one pipe fitting is arranged corresponding to one end face. Therefore, when the connection direction is used as the pipe routing path corresponding to the pipeline, it should be noted that the connection direction refers to the relative direction for different end faces.
[0057] After the pipe routing path is determined, the type of pipe fittings to be added to the pipeline can be determined based on the angle between the pipe routing path and the existing pipe fittings. The pipe fitting types here include standard parts, straight pipes, and arc-shaped pipe fittings with arbitrary bending angles. Specifically, determine the normal of the center point of the end face where the pick-up point is located. The normal is usually perpendicular to the end face. Then, calculate the angle between the pipe routing path and the normal. When the angle is 0, it means that the pipe routing path remains parallel to the end face. In this case, the type of pipe fitting added to the pipeline is a straight pipe. When the angle is a specified angle, it is necessary to select the corresponding elbow standard parts to arrange the pipeline. The specified angle includes , , , you need to select the elbow standard parts that match the specified angle from the preset standard parts library. The above standard parts usually have standardized sizes and connection interfaces, which are convenient for direct connection with other pipe fittings. When the angle is other angles, a non-standard pipe fitting is required to connect the end faces. In this case, the arc pipe fitting created based on the pick point can be used as the pipe fitting type to be added to the pipeline. The bending angle and radius of the arc pipe fitting can be determined according to the angle and space restrictions.
[0058] S104: When the pipe routing mode is a structured pipe routing mode, a pipe routing path orthogonal to the pipe routing direction is determined according to the pipe routing direction of the existing pipe fittings, and corresponding standard parts are selected from a preset standard parts library to route the pipeline according to the pipe routing path and preset pipe routing rules.
[0059] When the pipe layout mode is a structured pipe layout mode, the direction of the pipe fittings is determined according to the actual position of the pipe fittings in place, and then the pipe layout path with an orthogonal relationship is determined according to the direction of the pipe fittings. The orthogonal relationship means that the pipe layout path is perpendicular to the direction of the pipe fittings in place. Through this structured positional relationship, the intersection and interference between pipelines can be reduced, and the overall maintainability of the pipeline can be improved. When laying pipes, it is necessary to select appropriate standard parts from the preset standard parts library according to the pipe layout path and follow certain pipe layout rules. The selection of standard parts should be based on the preset pipe layout rules. The pipe layout rules include two types: grade-driven rules and non-grade-driven rules. Among them, grade-driven rules refer to the use of specified grade rules to prepare pipe layout data, which stipulates the pipe material, wall thickness grade, nominal pressure, temperature range, etc. Different pipe layout data corresponds to different grade rule names, and different grade rules correspond to different parameter ranges of standard parts. For example, the pipe wall thickness grade in grade rule 1 is in the range of [10,20], while the pipe wall thickness grade in grade rule 2 is in the range of [3.5,8]. By selecting different grade rules, it is equivalent to specifying the pipe parameters. Non-grade driven rules do not specify the range of pipe parameters, and users can freely select standard parts.
[0060] Therefore, when laying pipes according to the pipe laying rules, the pipe laying process needs to be adaptively adjusted according to the above two different pipe laying rules. If the pipe laying rule is a level-driven rule, determine the level rule corresponding to the pipeline. The standard parts library contains standard parts information of various specifications and parameters. After selecting standard parts that meet the level rules from the standard parts library, insert the standard parts to the location of the picking point, that is, the installation position of the standard parts, according to the pipe laying path (which may include the starting point, end point or turning point of the pipeline, etc.). Through the above process, the pipe laying of the pipeline can be realized. If the pipe laying rule is a non-level-driven rule, the standard parts at this time need to be selected by the user. The 3D modeling platform will trigger the pipe laying window corresponding to the pipe laying rule. The pipe laying window contains standard parts of various specifications and parameters. The platform server will respond to the user's selection operation of the standard parts in the pipe laying window and select the corresponding standard parts to lay the pipeline. It should be noted that in the structured piping mode, the type of standard parts added can be a tee or a cross. When a tee standard part is inserted, an outlet can be added to the in-place pipe fitting based on the tee standard part. When a four-way standard part is inserted, two outlets can be added to the in-place pipe fitting based on the four-way standard part.
[0061] After the current pipeline is routed through the above-mentioned route mode, it is necessary to determine whether there are new pick-up points in the working view. If there are new pick-up points, it means that there is still a need for routed pipes. At this time, it is necessary to continue to route the pipeline according to the route mode. The route process is the same as mentioned above. This process continues until all new pick-up points are processed, and the route with completed routed pipes can be obtained. If there are no new pick-up points, it means that the current route process has not stopped. During the route process, standard parts will not exist independently, but will be used in conjunction with straight pipes. Therefore, after the route of standard parts or other pipes is completed based on the route mode, it is necessary to determine the current in-place pipe fitting that has been routed the latest, and add a straight pipe of a preset length as the next in-place pipe fitting after the current in-place pipe fitting, so as to achieve continuous routed pipes for the pipeline through the current in-place pipe fitting and the next in-place pipe fitting. It should be noted that the length of the straight pipe needs to be determined based on the path length of the route path and the pipe fitting length corresponding to the current in-place pipe fitting. The difference between the two is the preset length corresponding to the final straight pipe.
[0062] In one embodiment, when laying pipes in pipelines, it is necessary to ensure that the pipes to be added are connectable with the existing pipes without space restrictions. Therefore, the spatial position and parameters of the pipes need to be detected when laying pipes. When the path length corresponding to the pipe laying path is greater than the parameter range corresponding to the standard parts, or the curvature corresponding to the arc-shaped pipes to be added to the pipeline is not within the preset range, a corresponding warning prompt is output. In this way, after receiving the warning prompt, the user can take corresponding solutions, such as adjusting the pipe laying path, laying pipes in sections, using other connectors, etc., to ensure the continuity and safety of the pipeline and reduce the construction risks caused by design errors.
[0063] When the pipe layout is completed, if the pipe parameters or pipe positions in the working view need to be modified, the 3D modeling platform in the embodiment of the present invention provides a batch editing function. After selecting the same type of pipes that need to be adjusted, the pipe layout results can be adjusted, the length and nominal diameter of the pipes can be modified, and the same type of pipes can be interrupted or merged.
[0064] The above are embodiments of the method proposed by the present invention. Based on the same idea, some embodiments of the present invention also provide devices and non-volatile computer storage media corresponding to the above methods.
[0065] Figure 2 The schematic diagram of the structure of a pipeline design device based on a three-dimensional modeling platform provided by an embodiment of the present invention. Figure 2 As shown, including:
[0066] at least one processor; and,
[0067] at least one processor is communicatively connected to a memory; wherein,
[0068] The memory stores instructions executable by at least one processor, the instructions being executed by at least one processor to enable the at least one processor to:
[0069] Start a pipe layout command for designing pipes, and under the control of the pipe layout command, determine the pick-up point in the working view of the 3D modeling platform;
[0070] Determine the existing pipe fittings in the working view, and determine the corresponding pipe routing mode of the pipeline according to the relative position relationship between the pick-up point and the existing pipe fittings; wherein the pipe routing mode includes a free pipe routing mode and a structured pipe routing mode;
[0071] When the pipe routing mode is the free routing mode, determine the routing path corresponding to the pipeline formed by the picked points, determine the type of pipe fittings to be added to the pipeline according to the angle between the routing path and the existing pipe fittings, and route the pipeline according to the pipe fitting types;
[0072] When the pipe routing mode is a structured pipe routing mode, a pipe routing path orthogonal to the pipe routing direction is determined according to the pipe routing direction of the existing pipe fittings, and corresponding standard parts are selected from a preset standard parts library to route the pipeline according to the pipe routing path and preset pipe routing rules.
[0073] An embodiment of the present invention provides a non-volatile computer storage medium storing computer executable instructions, wherein the computer executable instructions are configured as follows:
[0074] Start a pipe layout command for designing pipes, and under the control of the pipe layout command, determine the pick-up point in the working view of the 3D modeling platform;
[0075] Determine the existing pipe fittings in the working view, and determine the corresponding pipe routing mode of the pipeline according to the relative position relationship between the pick-up point and the existing pipe fittings; wherein the pipe routing mode includes a free pipe routing mode and a structured pipe routing mode;
[0076] When the pipe routing mode is the free routing mode, determine the routing path corresponding to the pipeline formed by the picked points, determine the type of pipe fittings to be added to the pipeline according to the angle between the routing path and the existing pipe fittings, and route the pipeline according to the pipe fitting types;
[0077] When the pipe routing mode is a structured pipe routing mode, a pipe routing path orthogonal to the pipe routing direction is determined according to the pipe routing direction of the existing pipe fittings, and corresponding standard parts are selected from a preset standard parts library to route the pipeline according to the pipe routing path and preset pipe routing rules.
[0078] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0079] The devices and media provided in the embodiments of the present invention correspond one-to-one to the methods, and therefore, the devices and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media will not be repeated here.
[0080] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0081] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0082] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0083] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0084] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0085] Memory may include non-permanent storage in a computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0086] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0088] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. A pipeline design method based on a 3D modeling platform. It is characterized in that The method comprises: Starting a pipe layout command for designing a pipeline, and under the control of the pipe layout command, determining a pick-up point in a working view of a three-dimensional modeling platform; Determine the in-place pipe fittings in the working view, and determine the pipe routing mode corresponding to the pipeline according to the relative position relationship between the pick-up point and the in-place pipe fittings; wherein the pipe routing mode includes a free pipe routing mode and a structured pipe routing mode; When the pipe routing mode is the free pipe routing mode, determine the pipe routing path corresponding to the pipeline formed by the picking points, determine the type of pipe fittings to be added to the pipeline according to the angle between the pipe routing path and the in-place pipe fittings, and route the pipeline according to the type of pipe fittings; In the case where the pipe routing mode is a structured pipe routing mode, a pipe routing path orthogonal to the pipe routing direction is determined according to the pipe routing direction of the in-place pipe fittings, and corresponding standard parts are selected from a preset standard parts library to route the pipeline according to the pipe routing path and preset pipe routing rules; Determining the pipe layout mode corresponding to the pipeline according to the relative position relationship between the pick-up point and the in-place pipe fitting specifically includes: Determine an end face of the in-place pipe and determine whether the pick-up point is located on the end face; When the picking point is located at the end face or there is no existing pipe fitting in the working view, determining that the pipe routing mode corresponding to the pipeline is a free pipe routing mode; When the picking point is located at a position other than the end face of the in-place pipe fitting, determining that the pipe layout mode corresponding to the pipeline is a structured pipe layout mode; Determining a pipe routing path corresponding to the pipeline formed by the picking points specifically includes: Based on the location of the picking point, create a three-dimensional rectangular coordinate system; When the pick-up point in the working view is a single point, a path formed by moving the pick-up point along any axial direction in the three-dimensional rectangular coordinate is used as a pipe routing path corresponding to the pipeline; When there are two pick-up points in the working view, the pick-up points are connected and a connection direction corresponding to a line formed by the pick-up points is determined, and the connection direction is used as a pipe routing path corresponding to the pipeline; Determining the type of pipe fittings to be added to the pipeline according to the angle between the pipe routing path and the existing pipe fittings, specifically including: Determine the normal direction of the center point of the end face where the pick-up point is located, and the angle between the pipe routing path and the normal direction; When the angle is 0, it is determined that the type of pipe to be added to the pipeline is a straight pipe; In the case where the included angle is a specified angle, determining that the type of pipe fitting to be added to the pipeline is an elbow standard part, and selecting an elbow standard part matching the specified angle from a preset standard parts library; When the included angle is other angles, the arc-shaped pipe fitting created based on the picking point is used as the pipe fitting type to be added to the pipeline; According to the pipe laying path and the preset pipe laying rules, corresponding standard parts are selected from a preset standard parts library to lay out the pipes, specifically including: The pipe layout rules include hierarchical driven rules and non-hierarchical driven rules; If the pipe routing rule is a level-driven rule, determine the level rule corresponding to the pipeline, select standard parts that meet the level rule from the standard parts library, and insert the standard parts to the location of the picking point according to the pipe routing path to realize the pipe routing of the pipeline; wherein the parameter ranges of standard parts corresponding to different level rules are different; If the pipe routing rule is a non-level driven rule, triggering a pipe routing window corresponding to the pipe routing rule, and in response to a standard part selection operation in the pipe routing window, selecting a corresponding standard part to route the pipeline; After laying the pipeline, the method further includes: Determine whether there is a newly added pick-up point in the working view; If yes, continue to lay out the pipeline in different pipe laying modes according to the newly added pick-up point until a pipeline with completed pipe laying is obtained; If not, determine the currently in-place pipe fitting that has completed the pipe layout the most recently, and add a straight pipe of a preset length as the next in-place pipe fitting after the currently in-place pipe fitting, so as to realize continuous pipe layout of the pipeline through the currently in-place pipe fitting and the next in-place pipe fitting; Adding a straight pipe of a preset length as a pipe after the current pipe in place and before the next pipe in place, the method further includes: Determine the path length of the pipe routing path and the pipe length corresponding to the currently in-place pipe; Obtaining a preset length according to a difference between the path length and the pipe length; The pipeline is laid, specifically including: When the path length corresponding to the pipe routing path is greater than the parameter range corresponding to the standard part, or the curvature of the arc-shaped pipe fitting to be added to the pipeline is not within the preset range, a corresponding warning prompt is output.
2. A pipeline design device based on a 3D modeling platform, It is characterized in that The device comprises: at least one processor; and, a memory communicatively coupled to the at least one processor; Wherein, the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the pipeline design method based on the three-dimensional modeling platform as described in claim 1.
3. A non-volatile computer storage medium storing computer executable instructions, It is characterized in that The computer executable instructions are configured to: A pipeline design method based on a three-dimensional modeling platform as described in claim 1.
