Pipeline generation method, device and equipment, medium and program product
By obtaining relevant information about the pipeline system and pipe diameter on the pipeline system settings and style settings pages, the pipeline connection method is automatically generated, which solves the problem of difficulty in automatically generating the correct connection method in the existing technology, and improves the efficiency and accuracy of pipeline modeling.
Patent Information
- Application Number
- CN202510295123.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-06-27
AI Technical Summary
The existing pipeline generation methods are difficult to automatically generate the correct connection method based on the pipeline system and pipe diameter size, resulting in low modeling efficiency and inaccurate design.
By obtaining the pipe diameter partition and its materials and connection methods corresponding to the pipeline system name on the pipeline system settings page, and obtaining the target material and connection methods based on the target pipeline system name and pipe diameter on the pipeline style setting page, and finally generating a three-dimensional pipeline model in the drawing operation.
It realizes the automatic generation of correct pipeline connection methods based on the pipeline system and pipe diameter size, which improves the efficiency of pipeline modeling and design accuracy.
Smart Images

Figure CN120217466A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a pipeline generation method, device, equipment, medium and program product. Background Art
[0002] In building information modeling, pipeline system modeling is one of the important links in the architecture, engineering and construction industries. Pipeline modeling not only needs to reflect the position, elevation layout and material of the pipeline, but also needs to accurately represent the high-precision geometric occupancy expression and connection method of pipeline connectors, which is an important step to ensure the usability and reliability of the pipeline system in design and construction.
[0003] Currently, existing pipeline generation methods usually use tables or external files to define connection method rules in advance and dynamically apply the data to the pipeline three-dimensional model through corresponding interfaces. Although it can handle the basic layout of different materials and pipelines, there are still great limitations in the implementation effect of automatically generating correct connection methods based on the pipeline system and pipe diameter size, which directly affects the modeling efficiency and design accuracy. Summary of the Invention
[0004] The present invention provides a pipeline generation method, device, equipment, medium and program product, which can automatically generate correct pipeline connection methods based on the pipeline system and pipe diameter size, and can improve the pipeline modeling efficiency.
[0005] According to one aspect of the present invention, a pipeline generation method is provided, including:
[0006] Responding to an editing operation of the pipeline system by the user on the pipeline system setting page, obtaining at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each pipe diameter partition;
[0007] Responding to a selection operation of the pipeline drawing tool by the user, presenting a pipeline style setting page to the user, and responding to an input operation of the pipeline system name and pipe diameter by the user on the pipeline style setting page, obtaining a target pipeline system name and a target pipe diameter;
[0008] According to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each pipe diameter partition, obtaining a target pipeline material and a target pipeline connection method;
[0009] Responding to a drawing operation of the target pipeline by the user, obtaining pipeline line parameters, and generating a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material and the target pipeline connection method.
[0010] According to another aspect of the present invention, there is provided a pipeline generation device, comprising:
[0011] A pipeline system editing module, configured to obtain at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions, in response to an editing operation of the pipeline system by the user on the pipeline system setting page;
[0012] A pipeline style setting module, configured to display a pipeline style setting page in response to a selection operation of the pipeline drawing tool by the user, and obtain a target pipeline system name and a target pipe diameter in response to an input operation of the pipeline system name and the pipe diameter by the user on the pipeline style setting page;
[0013] A connection method obtaining module, configured to obtain a target pipeline material and a target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions;
[0014] A pipeline model generation module, configured to obtain pipeline line parameters in response to a drawing operation of the target pipeline by the user, and generate a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material, and the target pipeline connection method.
[0015] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0016] At least one processor; and
[0017] A memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the pipeline generation method according to any embodiment of the present invention.
[0019] According to another aspect of the present invention, there is provided a computer-readable storage medium, the computer-readable storage medium storing a computer program, and the computer program is used to implement the pipeline generation method according to any embodiment of the present invention when executed by a processor.
[0020] According to another aspect of the present invention, there is provided a computer program product, comprising a computer program, and the computer program implements the pipeline generation method according to any embodiment of the present invention when executed by a processor.
[0021] In the technical solution of the embodiment of the present invention, in response to the user's editing operation on the pipeline system in the pipeline system setting page, at least one pipe diameter partition corresponding to each pipeline system name, as well as the pipeline material and pipeline connection method corresponding to each pipe diameter partition are obtained; in response to the user's selection operation on the pipeline drawing tool, the pipeline style setting page is displayed to the user, and in response to the user's input operation on the pipeline system name and pipe diameter in the pipeline style setting page, the target pipeline system name and target pipe diameter are obtained; according to the target pipeline system name, target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, as well as the pipeline material and pipeline connection method corresponding to each pipe diameter partition, the target pipeline material and target pipeline connection method are obtained; in response to the user's drawing operation on the target pipeline, the pipeline line parameters are obtained, and according to the pipeline line parameters, target pipe diameter, target pipeline material and target pipeline connection method, a three-dimensional pipeline model of the target pipeline is generated; by pre-configuring multiple pipe diameter partitions corresponding to different pipeline system names, as well as the pipeline material and pipeline connection method corresponding to each pipe diameter partition, when performing pipeline modeling later, only the corresponding pipeline system and pipe diameter need to be selected to realize the automatic generation of the three-dimensional pipeline model, which can improve the pipeline modeling efficiency.
[0022] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Brief Description of the Drawings
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0024] Figure 1 is a flowchart of a pipeline generation method provided in Embodiment 1 of the present invention;
[0025] Figure 2 is a schematic diagram of a pipeline system setting page provided in Embodiment 1 of the present invention;
[0026] Figure 3 is a schematic diagram of a pipeline style setting page provided in Embodiment 1 of the present invention;
[0027] Figure 4 is a schematic diagram of a three-dimensional pipeline model provided in Embodiment 1 of the present invention;
[0028] Figure 5 is a schematic diagram of a pipeline material configuration page provided in Embodiment 1 of the present invention;
[0029] Figure 6 It is a schematic diagram of the connection method configuration page provided in the first embodiment of the present invention;
[0030] Figure 7 It is a schematic diagram of the data structure of the pipeline connector geometry library provided in the first embodiment of the present invention;
[0031] Figure 8 It is a schematic diagram of the geometric modeling style corresponding to the elbow provided in the first embodiment of the present invention;
[0032] Figure 9 It is a schematic diagram of the geometric modeling style corresponding to the tee provided in the first embodiment of the present invention;
[0033] Figure 10 It is a schematic diagram of the geometric modeling style corresponding to the cross provided in the first embodiment of the present invention;
[0034] Figure 11 It is a schematic diagram of the geometric modeling style corresponding to the reducer provided in the first embodiment of the present invention;
[0035] Figure 12 It is a schematic diagram of the geometric modeling style corresponding to the U-bend provided in the first embodiment of the present invention;
[0036] Figure 13 It is a schematic diagram of the geometric modeling style corresponding to the snap bend provided in the first embodiment of the present invention;
[0037] Figure 14 It is a schematic diagram of the structure of a pipeline generation device provided in the second embodiment of the present invention;
[0038] Figure 15 It is a schematic diagram of the structure of an electronic device for implementing the pipeline generation method of the embodiments of the present invention. Detailed implementation manners
[0039] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0040] It should be noted that the terms "first", "second", "target", etc. in the specification, claims and above-mentioned drawings of the present invention are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present invention described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0041] Embodiment 1
[0042] Figure 1 The following is a flowchart of a pipeline generation method provided for Embodiment 1 of the present invention. This embodiment is applicable to the situation of three-dimensional modeling of a pipeline system. This method can be executed by a pipeline generation device, which can be implemented in the form of hardware and / or software. Typically, the pipeline generation device can be configured in an electronic device, such as a computer device or a server, etc. As Figure 1 shown, the method includes:
[0043] S110. In response to the user's editing operation on the pipeline system in the pipeline system setting page, obtain at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each said pipe diameter partition.
[0044] In this embodiment, for the pipeline system, a combination configuration of multiple materials and connection methods is supported. By way of example, the pipeline system setting page can be as Figure 2 shown. The user can customize and set the pipeline system name, system code, and pipeline color of each pipeline system. Different pipeline systems correspond to specific colors. The system code is the unique identifier of the pipeline system. The types of pipeline systems can include domestic water supply, hot water supply, hot water return, reclaimed water, sewage, etc. Secondly, the user can customize and set multiple pipe diameter partitions corresponding to each pipeline system. The pipe diameter partition can be a pipe diameter range composed of a pipe diameter starting value and a pipe diameter less than value. In addition, for different pipe diameter partitions, independent pipeline materials and pipeline connection methods are supported to be set respectively. If the rules and content in the pipeline system setting are modified, it is supported to automatically refresh the geometric modeling expressions of the pipeline materials and connection methods of each pipeline and connector according to the modified rules.
[0045] Specifically, when the user edits the pipeline system on the pipeline system setting page, the user is supported to directly input the parameter values of each parameter of the pipeline system; or, when it is detected that the user selects a certain field, the user can be shown optional candidate field values, and the final field value corresponding to the field can be determined according to the user's selection operation on the candidate field values.
[0046] Typically, in this embodiment, a pipeline material library and a pipeline connection method library can be preset. Each record in the pipeline material library includes the pipeline material and the corresponding pipe diameter value list. Each pipe diameter value list can include multiple groups of pipe diameter values, and each group of pipe diameter values can include parameter values such as nominal diameter, outer diameter, inner diameter, and wall thickness. Each record in the pipeline connection method library can include the pipeline connection method and the corresponding specific geometric modeling style. For example, the pipeline elbow corresponding to the pipeline flange connection is an elbow with a flange at the pipeline end point, the pipeline tee is a tee with a flange at the pipeline end point, the pipeline cross is a cross with a flange at the pipeline end point, the pipeline reducer is a reducer with a flange at the pipeline end point, the pipeline Z-bend is a Z-bend with a flange at the pipeline end point, and the pipeline buckle bend is a buckle bend with a flange at the pipeline end point. In the pipeline connection method library, each pipeline connection method can be bound to multiple different specific geometric modeling styles, providing a basis for generating the pipeline model.
[0047] Correspondingly, when the user edits the pipeline system, the user can add a pipeline system or edit an existing pipeline system to obtain multiple pipeline systems. Each pipeline system can include a pipeline system name, a system code, a system color, and multiple pipe diameter partitions, as well as the pipeline material and the pipeline connection method corresponding to each pipe diameter partition. When editing the pipeline material and the pipeline connection method, all optional pipeline materials and pipeline connection methods can be shown to the user based on the preset pipeline material library and pipeline connection method library for the user to select, and the final pipeline material and pipeline connection method can be determined according to the user's selection operation.
[0048] S120. In response to the user's selection operation on the pipeline drawing tool, show the pipeline style setting page to the user, and in response to the user's input operations on the pipeline system name and pipe diameter on the pipeline style setting page, obtain the target pipeline system name and the target pipe diameter.
[0049] Among them, the pipeline drawing tool supports freely drawing pipelines in a three-dimensional coordinate system environment. On the pipeline style setting page of the tool, the user can select the pipeline system to which the drawn pipeline belongs and the size of the pipe diameter value. For example, the pipeline style setting page can be as Figure 3As shown in the figure. The user can click on the input box of the system name. After the client detects the user's click action, it can display the pre-set names of each pipeline system in the form of a drop-down menu. Then, the user can select the pipeline system name to be used from the drop-down menu and can input or select the pipe diameter value to be used in the input box of the pipe diameter. Finally, after the user has selected the pipeline system name and the pipe diameter, the user can click the button to draw the pipeline to start the specific pipeline drawing operation. The client can determine the selected pipeline system name and the pipe diameter as the target pipeline system name and the target pipe diameter.
[0050] S130. Obtain the target pipeline material and the target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and the pipeline connection method corresponding to each pipe diameter partition.
[0051] Specifically, the client can search from the multiple pipe diameter partitions corresponding to each pipeline system name, and the pipeline material and the pipeline connection method corresponding to each pipe diameter partition, to obtain the pipe diameter partitions corresponding to the target pipeline system name, and the pipeline material and the pipeline connection method corresponding to each pipe diameter partition. Then, it can further search based on the target pipe diameter partition in the search results to obtain the pipeline material and the pipeline connection method corresponding to the target pipe diameter partition as the target pipeline material and the target pipeline connection method.
[0052] S140. In response to the user's drawing operation on the target pipeline, obtain the pipeline line parameters, and generate a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material, and the target pipeline connection method.
[0053] Specifically, when the user draws the target pipeline, the user can select the positions of the starting point and the ending point of the pipeline. The client can determine the starting point position and the ending point position set by the user as the pipeline line parameters, and can determine the pipeline line based on the starting point position and the ending point position. Then, based on the preset connector deployment rules, if it is determined that pipeline connectors need to be deployed, the client can determine the types of pipeline connectors to be used and the deployment positions of the pipeline connectors. Furthermore, it can perform a matching search in the pipe diameter value list corresponding to the target pipe material according to the target pipe diameter to obtain the outer diameter value, inner diameter value, wall thickness value, etc. corresponding to the target pipe diameter. Further, it can determine the geometric modeling style associated with the type of pipeline connector to be used currently according to the geometric modeling styles associated with the pipeline connectors corresponding to the target pipeline connection method. Finally, based on the determined geometric modeling style and deployment position of the pipeline connector, the outer diameter value, inner diameter value, and wall thickness value corresponding to the target pipe diameter, and the system color corresponding to the target pipeline system name, it can call the corresponding modeling function to perform 3D modeling on the current pipeline line to obtain a 3D pipeline model.
[0054] In another case, if it is determined that no pipeline connectors need to be deployed, it can directly perform 3D modeling on the current pipeline line based on the outer diameter value, inner diameter value, and wall thickness value corresponding to the target pipe diameter, and the system color corresponding to the target pipeline system name to obtain a 3D pipeline model. For example, the 3D pipeline model can be as Figure 4 shown, where DN32 represents a nominal diameter of 32 millimeters and DN65 represents a nominal diameter of 65 millimeters.
[0055] The technical solution of the embodiment of the present invention responds to the user's editing operation on the pipeline system in the pipeline system setting page, obtains at least one pipe diameter partition corresponding to each pipeline system name, and the pipe material and pipeline connection method corresponding to each pipe diameter partition; responds to the user's selection operation on the pipeline drawing tool, displays the pipeline style setting page to the user, and responds to the user's input operation on the pipeline system name and pipe diameter in the pipeline style setting page to obtain the target pipeline system name and the target pipe diameter; obtains the target pipe material and the target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipe material and pipeline connection method corresponding to each pipe diameter partition; responds to the user's drawing operation on the target pipeline, obtains the pipeline line parameters, and generates a 3D pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipe material, and the target pipeline connection method; by pre-configuring multiple pipe diameter partitions corresponding to different pipeline system names, and the pipe material and pipeline connection method corresponding to each pipe diameter partition, then when performing pipeline modeling, only need to select the corresponding pipeline system and pipe diameter, and the automatic generation of the 3D pipeline model can be realized, which can improve the pipeline modeling efficiency.
[0056] In an alternative implementation of this embodiment, in response to a user's editing operation on the pipeline system in the pipeline system settings page, obtaining at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each said pipe diameter partition may include:
[0057] In response to a user's editing operation on the system name field of the current pipeline system in the pipeline system settings page, obtain the current pipeline system name corresponding to the current pipeline system;
[0058] In response to a user's editing operation on the pipe diameter partition field of the current pipeline system, obtain at least one pipe diameter partition corresponding to the current pipeline system name;
[0059] In response to a user's selection operation on the pipe material field associated with each pipe diameter partition corresponding to the current pipeline system name, according to the pipeline material library, display each candidate pipeline material to the user, and in response to the user's selection operation on the candidate pipeline material, obtain the pipeline material corresponding to each pipe diameter partition;
[0060] In response to a user's selection operation on the connection method field associated with each pipe diameter partition corresponding to the current pipeline system name, according to the pipeline connection method library, display each candidate pipeline connection method to the user, and in response to the user's selection operation on the candidate pipeline connection method, obtain the pipeline connection method corresponding to each pipe diameter partition.
[0061] In this embodiment, the editing of the pipeline system may include adding, deleting, modifying, and querying the pipeline system. Among them, still taking Figure 2 the pipeline system settings page shown as an example, the parameters of each pipeline system are composed of a pipeline system name, a system code, a system color, a pipe diameter partition, a pipeline material, and a pipeline connection method. The pipeline system name, system code, and pipe diameter partition can be manually input by the user. As for the system color, pipeline material, and pipeline connection method, the user selects from the candidate items given by the client. Typically, the candidate items for the pipeline material and pipeline connection method can be each data record preset in the pipeline material library and the pipeline connection method library.
[0062] Optionally, before, in response to a user's selection operation on the pipe material field associated with each pipe diameter partition corresponding to the current pipeline system name, according to the pipeline material library, displaying each candidate pipeline material to the user, it may further include:
[0063] In response to a user's editing operation on the pipe material field in the pipeline material configuration page, obtain the current pipeline material, and in response to the user's editing operation on the pipe diameter value corresponding to the current pipeline material, obtain the pipe diameter value list corresponding to the current pipeline material;
[0064] Generate a pipeline material library according to the current pipeline material and the corresponding pipe diameter value list;
[0065] Among them, the pipe diameter values include nominal diameter values, outer diameter values, inner diameter values, and wall thickness values.
[0066] Exemplarily, the pipeline material configuration page can be as Figure 5 shown. In the pipeline material configuration page, the user can customize and add pipeline material fields, as well as the list of pipe diameter values corresponding to each pipeline material, that is, the values of the outer diameter, inner diameter, and wall thickness corresponding to the pipeline material. The pipeline materials can include multiple levels and are displayed in a multi-level display form. For example, the pipeline materials include welded steel pipes, and the welded steel pipes further include ordinary welded steel pipes and thickened welded steel pipes. The client supports the custom expansion of pipeline material types and levels to support different project requirements.
[0067] Among them, each pipeline material can correspond to multiple groups of pipe diameter values. Correspondingly, when generating a three-dimensional pipeline model, according to the determined target pipeline material and target pipe diameter, in the list of pipe diameter values corresponding to the target pipeline material, the outer diameter value, inner diameter value, and wall thickness value corresponding to the target pipe diameter can be found, and the three-dimensional pipeline model can be built based on the search results. When searching for matching data items in the list of pipe diameter values, the target pipe diameter can be matched and detected with each nominal diameter value. If it is detected that the target pipe diameter is equal to a certain nominal diameter value, the outer diameter value, inner diameter value, and wall thickness value corresponding to the nominal diameter value can be used as the matching data item.
[0068] Optionally, before presenting each candidate pipeline connection method to the user according to the pipeline connection method library in response to the user's selection operation on the connection method field associated with each pipe diameter partition corresponding to the current pipeline system name, it may further include:
[0069] In response to the user's editing operation on the connection method field in the connection method configuration page, obtain the current pipeline connection method, and in response to the user's editing operation on the pipeline connector corresponding to the current pipeline connection method, present each candidate pipeline connector and the corresponding candidate geometric styling styles to the user according to the pipeline connector geometry library;
[0070] In response to the user's selection operation on the candidate pipeline connector and the candidate geometric styling style, obtain the target pipeline connector corresponding to the current pipeline connection method, and the target geometric styling style corresponding to the target pipeline connector;
[0071] Generate a pipeline connection method library according to the current pipeline connection method, the target pipeline connector, and the target geometric styling style.
[0072] Exemplarily, the connection method configuration page can be as Figure 6As shown, the user can customize and edit the connection method field on the connection method configuration page, set multiple corresponding pipe connectors for each pipe connection method, and set the geometric modeling styles used for each pipe connector. Each pipe connection method can be bound to multiple specific geometric modeling styles, providing a basis for pipe generation. Among them, the pipe connection methods can include clamp, hot melt, flange, welding, thread, socket, screw thread, bonding, threading, rubber seal, electrofusion, crimping, groove and / or asbestos cement, and the pipe connectors can include elbow, tee, cross, reducer, Z-bend and / or buckle bend. It can be understood that both the pipe connection method and the pipe connector support custom expansion. For each pipe connector, corresponding deployment rules can be preset to set the deployment timing and location of the pipe connector.
[0073] In this embodiment, a pipe connector geometry library can be preset to store all different pipe connectors and their corresponding geometric modeling styles. Thus, when it is detected that the user edits the pipe connector field and the geometric modeling style field, the client can read the stored information in the pipe connector geometry library, use each pipe connector in the stored information as a candidate pipe connector, and use each geometric modeling style in the stored information as a candidate geometric modeling style, and display them to the user in the form of a drop-down menu or a pop-up window. Then, according to the user's selection operation, the target pipe connector and the target geometric modeling style that the user needs to use can be determined. The geometric modeling style can be a two-dimensional plan view of the pipe connector.
[0074] Optionally, before responding to the user's editing operation on the pipe connector corresponding to the current pipe connection method and displaying each candidate pipe connector and its corresponding candidate geometric modeling styles to the user according to the pipe connector geometry library, it can also include:
[0075] Responding to the user's editing operation on the connector field in the connector configuration page, obtaining the current pipe connector, and responding to the user's editing operation on the geometric modeling style corresponding to the current pipe connector, and displaying each candidate geometric modeling style corresponding to the current pipe connector to the user according to the preset mapping relationship between the pipe connector and the geometric modeling style;
[0076] Responding to the user's selection operation on the candidate geometric modeling style, obtaining the current geometric modeling style corresponding to the current pipe connector, and generating a pipe connector geometry library according to the current pipe connector and the corresponding current geometric modeling style;
[0077] Among them, the geometric modeling style is associated with a geometric modeling function for generating a three-dimensional geometric model.
[0078] Exemplarily, the data structure of the pipe connector geometry library can be as Figure 7As shown, each pipe connector is bound to several specific geometric styling patterns. In this embodiment, the mapping relationship between the pipe connector and the geometric styling pattern can be preset, that is, multiple geometric styling patterns that can be used are preset for each pipe connector; then, through the connector configuration page, when it is detected that the user performs an editing operation on the current pipe connector, several geometric styling patterns that can be used by the current pipe connector can be found from the preset mapping relationship as candidate geometric styling patterns for the user to select. Finally, one or more geometric styling patterns selected by the user can be determined, and the mapping relationship between the current pipe connector and each geometric styling pattern selected by the user can be generated to obtain the pipe connector geometric shape library.
[0079] For example, the geometric styling patterns corresponding to elbows, tees, crosses, reducers, U-bends, and buckle bends can be respectively as Figure 8 , 9 , 10, 11, 12, and 13 shown. It should be noted that each geometric styling pattern is associated with a geometric styling function for generating a three-dimensional geometric model. When a certain geometric styling pattern needs to be used, its associated geometric styling function can be called to generate the corresponding three-dimensional geometric model. Among them, the independent variables of the geometric styling function are the pipe diameter value and the included angle of the pipe direction vector.
[0080] In this embodiment, the underlying basic function is the pipe connector geometric shape library. The upstream function of the pipe connector geometric shape library is the pipe connection method library. The peer function of the pipe connection method library is the pipe material library. The upstream function of the pipe connection method library is the pipe system setting. The upstream function of the pipe system setting is the pipe drawing tool. The upstream function of the pipe drawing tool is to generate pipes and pipe connectors. Each custom library can be preset by developers so that the user of the client can directly call it. In addition, it also supports editing operations such as adding or modifying custom libraries by the user. When the finally drawn pipes and connectors are generated, the client can trace back to the underlying geometric model data in the most downstream function (pipe connector geometric shape library) according to the functional logic and automatically generate them based on the predetermined rules in the pipe system setting.
[0081] The solution of this embodiment adopts a system modular design, and all functions are divided into several independent modules. The advantage is that it has strong scalability and can flexibly add new materials, new connection methods, and rules according to project requirements; secondly, through predefined rules, attribute assignment and connection method selection can be automatically completed, reducing manual intervention and improving the modeling efficiency.
[0082] Embodiment 2
[0083] Figure 14 It is a schematic structural diagram of a pipe generation device provided by Embodiment 2 of the present invention. AsFigure 14 As shown in Figure 14 , the device includes: a pipeline system editing module 210, a pipeline style setting module 220, a connection method obtaining module 230, and a pipeline model generation module 240; among them,
[0084] The pipeline system editing module 210 is configured to, in response to a user's editing operation on the pipeline system in the pipeline system setting page, obtain at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions;
[0085] The pipeline style setting module 220 is configured to, in response to a user's selection operation on the pipeline drawing tool, display a pipeline style setting page to the user, and in response to the user's input operation on the pipeline system name and pipe diameter in the pipeline style setting page, obtain a target pipeline system name and a target pipe diameter;
[0086] The connection method obtaining module 230 is configured to obtain a target pipeline material and a target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions;
[0087] The pipeline model generation module 240 is configured to, in response to a user's drawing operation on the target pipeline, obtain pipeline line parameters, and generate a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material, and the target pipeline connection method.
[0088] The technical solution of the embodiment of the present invention, in response to a user's editing operation on the pipeline system in the pipeline system setting page, obtains at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each pipe diameter partition; in response to a user's selection operation on the pipeline drawing tool, displays a pipeline style setting page to the user, and in response to the user's input operation on the pipeline system name and pipe diameter in the pipeline style setting page, obtains a target pipeline system name and a target pipe diameter; obtains a target pipeline material and a target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions; in response to a user's drawing operation on the target pipeline, obtains pipeline line parameters, and generates a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material, and the target pipeline connection method; by pre-configuring multiple pipe diameter partitions corresponding to different pipeline system names, and the pipeline material and pipeline connection method corresponding to each pipe diameter partition, and then when performing pipeline modeling, only need to select the corresponding pipeline system and pipe diameter, the automatic generation of the three-dimensional pipeline model can be realized, which can improve the pipeline modeling efficiency.
[0089] Optionally, the pipeline system editing module 210 is specifically configured to, in response to a user's editing operation on the system name field of the current pipeline system in the pipeline system settings page, obtain the current pipeline system name corresponding to the current pipeline system;
[0090] In response to a user's editing operation on the pipe diameter partition field of the current pipeline system, obtain at least one pipe diameter partition corresponding to the current pipeline system name;
[0091] In response to a user's selection operation on the pipe material fields associated with each pipe diameter partition corresponding to the current pipeline system name, display various candidate pipe materials to the user according to the pipe material library, and in response to the user's selection operation on the candidate pipe materials, obtain the pipe materials corresponding to each pipe diameter partition;
[0092] In response to a user's selection operation on the connection method fields associated with each pipe diameter partition corresponding to the current pipeline system name, display various candidate pipeline connection methods to the user according to the pipeline connection method library, and in response to the user's selection operation on the candidate pipeline connection methods, obtain the pipeline connection methods corresponding to each pipe diameter partition.
[0093] Optionally, the pipeline system editing module 210 is further configured to, in response to a user's editing operation on the pipe material field in the pipe material configuration page, obtain the current pipe material, and in response to the user's editing operation on the pipe diameter value corresponding to the current pipe material, obtain the pipe diameter value list corresponding to the current pipe material;
[0094] Generate a pipe material library based on the current pipe material and the corresponding pipe diameter value list;
[0095] Wherein, the pipe diameter values include nominal diameter values, outer diameter values, inner diameter values, and wall thickness values.
[0096] Optionally, the pipeline system editing module 210 is further configured to, in response to a user's editing operation on the connection method field in the connection method configuration page, obtain the current pipeline connection method, and in response to the user's editing operation on the pipeline connectors corresponding to the current pipeline connection method, display various candidate pipeline connectors and the corresponding candidate geometric modeling styles to the user according to the pipeline connector geometric shape library;
[0097] In response to the user's selection operation on the candidate pipeline connectors and candidate geometric modeling styles, obtain the target pipeline connectors corresponding to the current pipeline connection method, and the target geometric modeling styles corresponding to the target pipeline connectors;
[0098] Generate a pipeline connection method library based on the current pipeline connection method, the target pipeline connectors, and the target geometric modeling styles.
[0099] Optionally, the pipeline system editing module 210 is further configured to, in response to a user's editing operation on a connector field in the connector configuration page, obtain the current pipeline connector, and in response to the user's editing operation on the geometric styling corresponding to the current pipeline connector, display each candidate geometric styling corresponding to the current pipeline connector to the user according to the preset mapping relationship between the pipeline connector and the geometric styling;
[0100] In response to the user's selection operation on the candidate geometric styling, obtain the current geometric styling corresponding to the current pipeline connector, and generate a pipeline connector geometric shape library according to the current pipeline connector and the corresponding current geometric styling;
[0101] Among them, the geometric styling is associated with a geometric styling function for generating a three-dimensional geometric styling.
[0102] Optionally, the pipeline connection methods include clamp, hot melt, flange, welding, thread, socket, screw thread, bonding, threading, rubber seal, electrofusion, press fitting, groove and / or asbestos cement, and the pipeline connectors include elbows, tees, crosses, reducers, Z-bends and / or buckle bends.
[0103] The pipeline generation device provided by the embodiments of the present invention can execute the pipeline generation method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.
[0104] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0105] Embodiment III
[0106] Figure 15 FIG. shows a schematic structural diagram of an electronic device 30 that can be used to implement the embodiments of the present invention. The electronic device 30 is intended to represent various forms of digital computers, such as, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 30 can also represent various forms of mobile devices, such as, personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0107] As Figure 15As shown, the electronic device 30 includes at least one processor 31 and a memory communicatively connected to the at least one processor 31, such as a Read-Only Memory (ROM) 32, a Random Access Memory (RAM) 33, etc. Among them, the memory stores computer programs executable by the at least one processor. The processor 31 can execute various appropriate actions and processes according to the computer programs stored in the read-only memory 32 or the computer programs loaded from the storage unit 38 into the random access memory 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An Input / Output (I / O) interface 35 is also connected to the bus 34.
[0108] Multiple components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disc, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0109] The processor 31 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit, a graphics processing unit, various dedicated artificial intelligence computing chips, various processors running machine learning model algorithms, a digital signal processor, and any appropriate processor, controller, microcontroller, etc. The processor 31 executes the various methods and processes described above, such as the pipeline generation method.
[0110] In some embodiments, the pipeline generation method can be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as the storage unit 38. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the pipeline generation method described above can be executed. Alternatively, in other embodiments, the processor 31 can be configured to execute the pipeline generation method by any other appropriate means (e.g., by means of firmware).
[0111] The various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays, application specific integrated circuits, application specific standard products, systems on a chip, programmable logic devices loaded, computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, a special purpose computer, or other programmable data processing device, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine, or entirely on the remote machine or server.
[0113] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disc read-only memory, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device 30 having: a display device (e.g., a cathode ray tube or a liquid crystal display) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device 30. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0115] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by digital data communication in any form or medium (e.g., a communication network). Examples of communication networks include: local area networks, wide area networks, blockchain networks, and the Internet.
[0116] The computing system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server.
[0117] This embodiment may also include a computer program product including a computer program which, when executed by a processor, implements the pipeline generation method provided by any embodiment of the present invention.
[0118] It should be understood that various forms of the processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0119] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A pipeline generation method, characterized in that: include: In response to the user's editing operation on the pipeline system in the pipeline system setting page, obtaining at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions; In response to the user's selection operation on the pipeline drawing tool, a pipeline style setting page is displayed to the user, and in response to the user's input operation on the pipeline system name and pipe diameter in the pipeline style setting page, a target pipeline system name and a target pipe diameter are obtained; Obtaining a target pipeline material and a target pipeline connection method according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each of the pipeline system names, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions; In response to the user's drawing operation on the target pipeline, pipeline line parameters are acquired, and a three-dimensional pipeline model of the target pipeline is generated according to the pipeline line parameters, the target pipe diameter, the target pipeline material and the target pipeline connection method.
2. The method according to claim 1, characterized in that In response to the user's editing operation on the pipeline system in the pipeline system setting page, at least one pipe diameter partition corresponding to each pipeline system name, and the pipeline material and pipeline connection method corresponding to each of the pipe diameter partitions are obtained, including: In response to a user editing operation on a system name field of a current pipeline system in a pipeline system setting page, obtaining a current pipeline system name corresponding to the current pipeline system; In response to a user editing operation on a pipe diameter partition field of the current pipe system, obtaining at least one pipe diameter partition corresponding to the name of the current pipe system; In response to the user's selection operation on the pipe material field associated with each pipe diameter partition corresponding to the current pipe system name, each candidate pipe material is displayed to the user according to the pipe material library, and in response to the user's selection operation on the candidate pipe material, the pipe material corresponding to each pipe diameter partition is obtained; In response to the user's selection operation on the connection method field associated with each pipe diameter partition corresponding to the current pipe system name, each candidate pipe connection method is displayed to the user according to the pipe connection method library, and in response to the user's selection operation on the candidate pipe connection method, the pipe connection method corresponding to each pipe diameter partition is obtained.
3. The method according to claim 2, characterized in that In response to the user's selection operation on the pipe material field associated with each pipe diameter partition corresponding to the current pipe system name, before displaying each candidate pipe material to the user according to the pipe material library, the method further includes: In response to a user editing operation on a pipeline material field in a pipeline material configuration page, the current pipeline material is acquired, and in response to a user editing operation on a pipe diameter value corresponding to the current pipeline material, a pipe diameter value list corresponding to the current pipeline material is acquired; Generate a pipeline material library based on the current pipeline material and the corresponding pipe diameter value list; Among them, the pipe diameter value includes the nominal diameter value, outer diameter value, inner diameter value and wall thickness value.
4. The method according to claim 2, characterized in that: In response to the user's selection operation on the connection method field associated with each pipe diameter partition corresponding to the current pipe system name, before displaying each candidate pipe connection method to the user according to the pipe connection method library, the method further includes: In response to a user's editing operation on a connection mode field in a connection mode configuration page, the current pipeline connection mode is acquired, and in response to a user's editing operation on a pipeline connector corresponding to the current pipeline connection mode, candidate pipeline connectors and corresponding candidate geometric modeling styles are displayed to the user according to a pipeline connector geometric shape library; In response to the user's selection operation on the candidate pipe connector and the candidate geometric modeling style, a target pipe connector corresponding to the current pipe connection mode and a target geometric modeling style corresponding to the target pipe connector are obtained; A pipeline connection method library is generated according to the current pipeline connection method, the target pipeline connector and the target geometric modeling style.
5. The method according to claim 4, characterized in that In response to the user's editing operation on the pipe connector corresponding to the current pipe connection mode, before displaying each candidate pipe connector and each corresponding candidate geometric modeling style to the user according to the pipe connector geometric shape library, the method further includes: In response to a user's editing operation on a connector field in a connector configuration page, the current pipe connector is acquired, and in response to a user's editing operation on a geometric modeling style corresponding to the current pipe connector, candidate geometric modeling styles corresponding to the current pipe connector are displayed to the user according to a preset mapping relationship between the pipe connector and the geometric modeling style; In response to the user's selection operation on the candidate geometric modeling style, the current geometric modeling style corresponding to the current pipe connector is obtained, and a pipe connector geometric shape library is generated according to the current pipe connector and the corresponding current geometric modeling style; The geometric modeling style is associated with a geometric modeling function for generating three-dimensional geometric modeling.
6. The method according to any one of claims 1 to 5, characterized in that The pipe connection methods include clamps, hot melt, flanges, welding, threads, sockets, screws, bonding, threading, rubber seals, electric fusion, crimping, grooves and / or asbestos cement. The pipe connectors include elbows, tees, crosses, reducers, U-bends and / or buckle bends.
7. A pipeline generating device, characterized in that: include: A pipeline system editing module, configured to obtain at least one pipe diameter partition corresponding to each pipeline system name, and a pipeline material and a pipeline connection method corresponding to each pipe diameter partition in response to a user's editing operation on the pipeline system in the pipeline system setting page; A pipeline style setting module, for displaying a pipeline style setting page to a user in response to a user's selection operation on a pipeline drawing tool, and for acquiring a target pipeline system name and a target pipe diameter in response to a user's input operation on a pipeline system name and a pipe diameter on the pipeline style setting page; A connection mode acquisition module, used for acquiring a target pipeline material and a target pipeline connection mode according to the target pipeline system name, the target pipe diameter, at least one pipe diameter partition corresponding to each of the pipeline system names, and the pipeline material and pipeline connection mode corresponding to each of the pipe diameter partitions; The pipeline model generation module is used to obtain pipeline line parameters in response to the user's drawing operation on the target pipeline, and generate a three-dimensional pipeline model of the target pipeline according to the pipeline line parameters, the target pipe diameter, the target pipeline material and the target pipeline connection method.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the pipeline generation method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the pipeline generation method according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The invention comprises a computer program, which implements the pipeline generation method according to any one of claims 1 to 6 when being executed by a processor.