A method for distinguishing interlinked pipes, electronic equipment and readable storage medium

By traversing and marking the interconnected pipelines in three-dimensional model design, the problem of difficulty in automatically distinguishing and coloring the interconnected pipelines in complex models in the prior art is solved, and an efficient design process and the effect of reducing design costs is achieved.

CN114676512BActive Publication Date: 2025-04-25ZHUHAI GREE PRECISION MOLD CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210126615.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-10
Publication Date
2025-04-25
Estimated Expiration
2042-02-10

AI Technical Summary

Technical Problem

When existing three-dimensional model design software processes complex models, it is difficult to automatically distinguish between pipes that are colored, resulting in designers having to repeat operations thousands of times, which is time-consuming and increasing design costs.

Method used

By obtaining all cylindrical surfaces in the target model body, selecting the first cylindrical surface for traversing the inter-pipe, filtering out the associated model edges and associated surfaces, forming a set of inter-pipe identifiers, marking the inter-pipes, and marking them with different colors in the model.

Benefits of technology

It realizes automatic distinction and color communication pipelines in complex three-dimensional models, reducing manual operation time, improving design efficiency, and reducing design costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114676512B_ABST
    Figure CN114676512B_ABST
Patent Text Reader

Abstract

This application relates to a method for distinguishing interconnected pipes, an electronic device, and a readable storage medium. The method includes: obtaining all N cylindrical surfaces in a target model; selecting a first cylindrical surface from the N cylindrical surfaces for interconnected pipe traversal; the interconnected pipe traversal involves obtaining associated model edges from the cylindrical surfaces and generating a set of traversed surface identifiers from the associated model edges; adding the set of traversed surface identifiers to a set of interconnected waterway identifiers; and marking the interconnected pipes corresponding to the set of interconnected waterway identifiers to obtain the first interconnected pipe. This application selects cylindrical surfaces in the target model for traversal and, by searching one by one the associated model edges within the cylindrical surfaces, can accurately filter out a group of interconnected pipes. Marking the set of interconnected waterway identifiers distinguishes different interconnected pipes, reducing execution time compared to manually searching and distinguishing interconnected pipes, thereby improving design efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of model design, and in particular to a method for distinguishing interconnected pipelines, an electronic device, and a readable storage medium. Background Art

[0002] The manufacturing industry, especially the mold-related industry, requires the use of 3D design software (such as UGNX) to design 3D models. Most 3D models contain pipes, such as water pipes, gas pipes or oil pipes. Pipelines are usually intricate and it is difficult to distinguish whether the design has errors or omissions with the naked eye, so designers usually paint different interconnected pipes with different colors to distinguish the interconnected pipes, thereby troubleshooting abnormalities such as pipe errors and omissions. However, the coloring function of UGNX in the prior art can only modify the color of one pipe surface at a time. When the model is more complex, there are as many as thousands of pipe surfaces that need to be colored. Therefore, designers need to repeat the operation thousands of times. Repeating the same coloring action is extremely time-consuming, which greatly increases the design cost of the 3D model.

[0003] Therefore, a method is needed to automatically select and distinguish interconnected pipes from a three-dimensional model. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present application provides a method for distinguishing interconnected pipes, an electronic device and a readable storage medium. The method can distinguish different interconnected pipes in a complex three-dimensional model and color the different interconnected pipes.

[0005] The first aspect of the present application provides a method for distinguishing interconnected pipes, comprising:

[0006] Get all N cylindrical surfaces in the target model body;

[0007] Selecting a first cylindrical surface from N cylindrical surfaces to perform inter-connected pipeline traversal; the inter-connected pipeline traversal is a process of obtaining associated model edges from the cylindrical surface, and obtaining a set of traversed surface identifiers from the associated model edges; wherein N is an integer greater than 0;

[0008] The traversed surface identifier set is added to the interconnected waterway identifier set, and the interconnected pipes corresponding to the interconnected waterway identifier set are marked to obtain a first interconnected pipe.

[0009] The step of selecting the first cylindrical surface from the N cylindrical surfaces to traverse the interconnected pipelines includes:

[0010] Traverse all M1 model edges in the first cylindrical surface, filter out V1 untraversed model edges from the M1 model edges, and add the edge identifiers of the V1 untraversed model edges to the traversed edge identifier set; filter all K1 valid associated faces of the V1 untraversed model edges, and traverse the K1 valid associated faces in a loop; wherein M1 is an integer greater than 2, V1 is an integer greater than or equal to 0, and K1 is an integer greater than or equal to 0;

[0011] The traversed edge identifier set includes edge identifiers of traversed model edges.

[0012] The step of obtaining all N cylindrical surfaces in the target model body includes:

[0013] Get all X model faces in the target model body;

[0014] Traversing the X model surfaces, determining whether the current model surface is a cylindrical surface and the surface identifier does not exist in the set of interconnected waterway identifiers, and if so, marking the current model surface as a cylindrical surface;

[0015] After the traversal of the X model surfaces is completed, N cylindrical surfaces are obtained, where N is an integer less than X.

[0016] Furthermore, after obtaining the first communicating pipeline, the method further includes:

[0017] Clearing the traversed edge identifier set and the traversed face identifier set;

[0018] Traverse all M2 model edges in the second cylindrical surface, filter out V2 untraversed model edges from the M2 model edges, and add the edge identifiers of the V2 untraversed model edges to the traversed edge identifier set; filter all K2 valid associated faces of the V2 untraversed model edges, and traverse the K2 valid associated faces in a loop; wherein M2 is an integer greater than 2, V2 is an integer greater than or equal to 0, and K2 is an integer greater than or equal to 0;

[0019] The second cylindrical surface is a cylindrical surface among N-1 cylindrical surfaces that do not include the first cylindrical surface.

[0020] The screening of all K1 valid associated faces of the V1 edge that does not traverse the model edge includes:

[0021] Traverse all S1 associated faces of the V1 untraversed model edges, and select the K1 valid associated faces from the S1 associated faces; wherein S1 is an integer greater than or equal to 1;

[0022] The valid associated face is a face whose face type is a cylindrical surface and whose face identifier does not exist in the traversed face identifier set.

[0023] The loop traversing the K1 valid association surfaces includes:

[0024] The first valid associated surface among the K1 valid associated surfaces is used as the current surface, all E1 model edges in the current surface are traversed, and F1 untraversed model edges are screened out from the E1 model edges; the edge identifiers of the F1 untraversed model edges are added to the traversed edge identifier set, all G1 valid associated surfaces of the F1 untraversed model edges are screened, and the G1 valid associated surfaces are added to the traversed surface identifier set; wherein E1 is an integer greater than 2, F1 is an integer greater than or equal to 0, and G1 is an integer greater than or equal to 0;

[0025] The untraversed model edge is the model edge whose edge identifier does not exist in the edge identifier set, and the current surface is the cylindrical surface currently being traversed among the N cylindrical surfaces.

[0026] Furthermore, after adding the G1 valid associated surfaces to the traversed surface identifier set, the method further includes:

[0027] Take the second valid associated surface among the K1 valid associated surfaces as the current surface, traverse all E2 model edges in the current surface, and filter out F2 untraversed model edges from the E2 model edges; add the edge identifiers of the F2 untraversed model edges to the traversed edge identifier set, filter all G2 valid associated surfaces of the F2 untraversed model edges, and add the G2 valid associated surfaces to the traversed surface identifier set; wherein E2 is an integer greater than 2, F2 is an integer greater than or equal to 0, and G2 is an integer greater than or equal to 0.

[0028] The interconnected pipeline traversal includes:

[0029] When the execution time of the interconnected pipeline traversal exceeds the preset screening time, the interconnected pipeline traversal ends;

[0030] The preset screening time is the maximum time required to traverse the interconnected pipelines.

[0031] Furthermore, after obtaining the second communicating pipeline, the method further comprises:

[0032] The first communicating pipes and the second communicating pipes are marked in the target model body using different colors.

[0033] A second aspect of the present application provides an electronic device, including:

[0034] Processor; and

[0035] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.

[0036] A third aspect of the present application provides a non-transitory machine-readable storage medium having executable code stored thereon. When the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as described above.

[0037] The technical solution provided by this application may have the following beneficial effects:

[0038] In practical applications, interconnected pipes are connected through cylindrical surfaces. Therefore, this application selects cylindrical surfaces in the target model body for traversal. During the traversal, the associated model edges in the cylindrical surface are selected for searching one by one. Since two unconnected pipes do not have associated model edges, a group of interconnected pipes can be accurately screened out when the traversal time is long enough. Marking the set of interconnected waterway identifiers can distinguish different interconnected pipes, which reduces the execution time compared to manually searching and distinguishing interconnected pipes, thereby improving the design efficiency of the target model body.

[0039] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.

[0041] Figure 1 It is a schematic flow chart of a method for distinguishing interconnected pipes according to an embodiment of the present application;

[0042] Figure 2 It is a schematic diagram of a flow chart of a method for traversing a pipeline in an embodiment of the present application;

[0043] Figure 3 It is a schematic diagram of the structure of the interconnected pipelines shown in the embodiment of the present application;

[0044] Figure 4 It is a schematic diagram of the structure of the model surface and the model edge shown in the embodiment of the present application;

[0045] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION

[0046] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.

[0047] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0048] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.

[0049] Embodiment 1

[0050] Three-dimensional model design usually involves distinguishing interconnected pipes. Manually searching for and distinguishing interconnected pipes takes a lot of time, making the design efficiency of the three-dimensional model low.

[0051] In view of the above problems, the present application embodiment provides a method for distinguishing interlinked pipes. Figure 1 and Figure 3 , Figure 1 is a flow chart of a method for distinguishing interconnected pipes according to an embodiment of the present application. Figure 3 It is a schematic diagram of the structure of the interconnected pipelines shown in the embodiment of the present application. Figure 3 There are two interconnected pipes, namely interconnected pipe 1 and interconnected pipe 2. The two interconnected pipes are independent of each other and cannot be connected by any cylindrical surface.

[0052] The specific method of distinguishing the interconnected pipelines is as follows:

[0053] A1. Obtain all face identifiers of the target model body.

[0054] All face identifiers of the target model body are obtained. For example, the target model body has k face identifiers in total. The same pipeline identification method needs to be looped k times, and the current loop number d is set to 0.

[0055] A2. Determine whether all model faces of the target model body have been traversed.

[0056] Add 1 to the current loop number d, d=d+1. Determine whether the current loop number d is greater than k. If so, execute A8, if not, execute A3.

[0057] A3. Determine whether the current surface is a cylindrical surface.

[0058] The current surface S corresponding to the current cycle number d d It may be a model surface randomly selected from the target model body, or it may be a model surface selected from the target model body in a fixed order, which depends on the actual situation and is not limited here.

[0059] When d=1, the current surface S1 is the initial surface.

[0060] Determine whether the current surface is a cylindrical surface. If so, execute A4; if not, return to A2.

[0061] A4. Determine whether the current surface identifier already exists in the connected waterway identifier set.

[0062] Determine the current face S d Whether the surface identifier of S already exists in the connected waterway identifier set. If so, it means that the current surface S d If it has been traversed, there is no need to traverse it again, and the process returns to A2. If not, the process goes to A5.

[0063] A5. Traverse the connected pipelines on the current page.

[0064] Traverse the current face S d All M model edges of the traversed edge identifier set are added to the traversed edge identifier set. All S associated faces of the M model edges are traversed, and the face identifiers of the S associated faces are added to the traversed face identifier set.

[0065] For example, the current surface S1 is traversed through the interconnected pipelines to obtain associated surfaces S3, S5, and S7.

[0066] A6. Add the traversed surface identifier set to the connected waterway identifier set.

[0067] The traversed surface identifier set is added to the connected waterway identifier set, the traversed surface identifier set newly added to the connected waterway identifier set is stored in an array, and marked in the connected waterway identifier set, to obtain an array Cd .

[0068] Exemplarily, the face identifiers of associated faces S3, S5 and S7 are added to the traversed face identifier set, the traversed face identifier set is added to the connected waterway identifier set, and the traversed face identifier set obtained in this cycle is marked as array C1 in the connected waterway identifier set, where C1 = {S1, S3, S5, S7}.

[0069] A7. Clear the traversed edge identifier set and the traversed face identifier set.

[0070] Clear the traversed edge identifier set and the traversed face identifier set to prevent them from affecting the next loop, and return to A2.

[0071] A8. End the method of distinguishing the connected pipelines.

[0072] In practical applications, interconnected pipes are connected through cylindrical surfaces. Therefore, the embodiment of the present application selects cylindrical surfaces in the target model body for traversal. During the traversal, the model edges associated with the cylindrical surfaces are selected for searching one by one. Since two unconnected pipes do not have associated model edges, a group of interconnected pipes can be accurately screened out when the traversal time is long enough. The connected waterway identifier set is marked to distinguish different connected pipes. Compared with manual search and distinction of connected pipes, the execution time is reduced, thereby improving the design efficiency of the target model body.

[0073] Embodiment 2

[0074] The connected pipeline traversal method traverses all model edges of the current face, and then traverses all model faces containing each model edge to obtain all model faces of a connected pipeline.

[0075] This application embodiment provides a method for traversing a similar pipeline. Figure 2 and Figure 4 , Figure 2 is a flow chart of a pipeline traversal method according to an embodiment of the present application. Figure 4 It is a schematic diagram of the structure of the model surface and model edge shown in the embodiment of the present application.

[0076] The specific method of traversing the same pipeline is as follows:

[0077] B1. Obtain all model edges of the current face according to the face identifier of the current face.

[0078] According to the current S d The identifier of the current face is used to obtain all model edges m, where m is an integer greater than 2, and the number of loops j=0.

[0079] When d=1, the current surface S1 is the initial surface; when d≠1, the current surface S d The associated face in the traversed face identifier set.

[0080] Exemplarily, the initial surface S1 is a cylindrical surface 2, the model edge 9, the model edge 10 and the model edge 11 of the cylindrical surface 2 are obtained, and the face identifier of the cylindrical surface 2 is added to the traversed face identifier set.

[0081] B2. Determine whether all model edges of the current face have been looped.

[0082] Let j=j+1, and determine whether j is greater than m. If yes, execute B10, if no, execute B3.

[0083] B3. Determine whether the edge identifier of the current edge exists in the traversed edge identifier set.

[0084] Determine whether the j-th model edge exists in the traversed edge identifier set. If yes, it means that the j-th model edge has been traversed, and return to B2. If no, it means that the j-th model edge needs to be traversed, and execute B4.

[0085] B4. Add the edge identifier of the current edge to the set of traversed edge identifiers.

[0086] Set the current face S d The edge identifier of the j-th model edge is added to the traversed edge identifier set to prevent subsequent loops from traversing this model edge again.

[0087] Exemplarily, the edge identifier of the current edge 10 is added to the set of traversed edge identifiers.

[0088] B5. Get all associated faces containing the current edge.

[0089] Get the total number n of associated faces containing the current j-th model edge, set the associated face loop identifier u to 0, and n to an integer greater than or equal to 1.

[0090] Exemplarily, the associated surface 7 and the associated surface 2 of the current edge 10 are obtained.

[0091] B6. Determine whether all associated faces of the current edge have been traversed.

[0092] Add 1 to the associated surface loop identifier, u=u+1, and determine whether the associated surface loop identifier u is greater than n. If so, it means that all associated surfaces containing the current edge have been traversed, and return to B2. If not, it means that other associated surfaces of the current edge need to be traversed, and execute B7.

[0093] For example, the association surface loop identifier is increased by 1, at which time u=1, n=2, and u<n. The first association surface, that is, association surface 7, is prepared to be traversed.

[0094] B7. Determine whether the associated surface is a cylindrical surface.

[0095] Determine whether the associated surface u is a cylindrical surface according to the surface identifier of the associated surface u. If yes, execute B8; if no, return to B6.

[0096] Exemplarily, the associated surface 7 is a cylindrical surface, and B8 is executed.

[0097] B8. Determine whether the associated surface has been traversed.

[0098] Check whether the face identifier of the associated face u exists in the traversed face identifier set and the connected waterway identifier set. If so, it means that the associated face u has been traversed, and execute B6. If not, it means that the associated face u has not been traversed, and execute B9.

[0099] Exemplarily, the face identifier of the associated face 7 does not exist in the traversed face identifier set and the connected waterway identifier set, indicating that the associated face 7 has not been traversed, and B9 is executed.

[0100] B9. Add the face identifier of the associated face to the traversed face identifier set.

[0101] Add the face identifier of the associated face u to the set of traversed face identifiers to prevent traversing the associated face u next time, and return to B6.

[0102] B10. Determine whether the execution time of the traversal of the same pipeline exceeds the preset screening time.

[0103] Determine whether the execution time of the same pipeline traversal exceeds the preset screening time. If yes, execute B12; if no, execute B11.

[0104] One cylindrical surface corresponds to only one interconnected pipeline. No matter how long it takes, it is impossible to traverse the interconnected pipeline from one cylindrical surface to another interconnected pipeline.

[0105] B11. Update the current page.

[0106] Update the current face using the cylindrical surface obtained from the traversed face identifier set and return B1.

[0107] For example, d=2, when the current face S d is S2.

[0108] B12. End the traversal of the connected pipelines.

[0109] An embodiment of the present application provides a method for traversing interconnected pipes, which obtains all model edges of the current face, traverses each untraversed model edge, traverses all model faces including the untraversed model edges, determines the face type and whether the face has been traversed for all model faces including the untraversed model edges, and adds the untraversed cylindrical surfaces to the traversed face identifier set. Through the interconnected pipe traversal, the entire interconnected pipe where the current face is located can be found, and the face identifiers of all model faces of the entire interconnected pipe can be stored. The interconnected pipe traversal can also prevent the re-traversal of the model edges or model faces that have been traversed, thereby reducing repeated operations and improving the efficiency of finding interconnected pipes.

[0110] Embodiment 3

[0111] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device and corresponding embodiments.

[0112] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.

[0113] See also Figure 5 , the electronic device 1000 includes a memory 1010 and a processor 1020 .

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

[0115] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.

[0116] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.

[0117] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0118] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0119] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0120] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.

[0121] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0122] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for distinguishing interconnected pipes, characterized in that: include: Get all N cylindrical surfaces in the target model body; Selecting a first cylindrical surface from N cylindrical surfaces to perform inter-connected pipeline traversal; the inter-connected pipeline traversal is a process of obtaining associated model edges from the cylindrical surface, and obtaining a set of traversed surface identifiers from the associated model edges; wherein N is an integer greater than 0; Adding the traversed surface identifier set to a connected waterway identifier set, marking the connected pipes corresponding to the connected waterway identifier set, and obtaining a first connected pipe; The step of selecting the first cylindrical surface from the N cylindrical surfaces to traverse the interconnected pipelines includes: Traverse all M1 model edges in the first cylindrical surface, filter out V1 untraversed model edges from the M1 model edges, and add the edge identifiers of the V1 untraversed model edges to the traversed edge identifier set; filter all K1 valid associated faces of the V1 untraversed model edges, and traverse the K1 valid associated faces in a loop; wherein M1 is an integer greater than 2, V1 is an integer greater than or equal to 0, and K1 is an integer greater than or equal to 0; The traversed edge identifier set includes edge identifiers of traversed model edges.

2. A method for distinguishing interconnected pipes according to claim 1, characterized in that: The step of obtaining all N cylindrical surfaces in the target model body includes: Get all X model faces in the target model body; Traversing the X model surfaces, determining whether the current model surface is a cylindrical surface and the surface identifier does not exist in the set of interconnected waterway identifiers, and if so, marking the current model surface as a cylindrical surface; After the traversal of the X model surfaces is completed, N cylindrical surfaces are obtained, where N is an integer less than X.

3. A method for distinguishing interconnected pipes according to claim 1, characterized in that: After obtaining the first communicating pipeline, the method further includes: Clearing the traversed edge identifier set and the traversed face identifier set; Traverse all M2 model edges in the second cylindrical surface, filter out V2 untraversed model edges from the M2 model edges, and add the edge identifiers of the V2 untraversed model edges to the traversed edge identifier set; filter all K2 valid associated faces of the V2 untraversed model edges, and traverse the K2 valid associated faces in a loop; wherein M2 is an integer greater than 2, V2 is an integer greater than or equal to 0, and K2 is an integer greater than or equal to 0; The second cylindrical surface is one of the N-1 cylindrical surfaces that does not include the first cylindrical surface.

4. A method for distinguishing interconnected pipes according to claim 1, characterized in that: The screening of all K1 valid associated faces of the V1 line that do not traverse the model edge includes: Traverse all S1 associated faces of the V1 untraversed model edges, and select the K1 valid associated faces from the S1 associated faces; wherein S1 is an integer greater than or equal to 1; The valid associated face is a face whose face type is a cylindrical surface and whose face identifier does not exist in the traversed face identifier set.

5. A method for distinguishing interconnected pipes according to claim 1, characterized in that: The loop traversing the K1 valid association surfaces includes: The first valid associated surface among the K1 valid associated surfaces is used as the current surface, all E1 model edges in the current surface are traversed, and F1 untraversed model edges are screened out from the E1 model edges; the edge identifiers of the F1 untraversed model edges are added to the traversed edge identifier set, all G1 valid associated surfaces of the F1 untraversed model edges are screened, and the G1 valid associated surfaces are added to the traversed surface identifier set; wherein E1 is an integer greater than 2, F1 is an integer greater than or equal to 0, and G1 is an integer greater than or equal to 0; The untraversed model edge is the model edge whose edge identifier does not exist in the edge identifier set, and the current surface is the cylindrical surface currently being traversed among the N cylindrical surfaces.

6. A method for distinguishing interconnected pipes according to claim 5, characterized in that: After adding the G1 valid associated surfaces to the traversed surface identifier set, the method further includes: Take the second valid associated surface among the K1 valid associated surfaces as the current surface, traverse all E2 model edges in the current surface, and filter out F2 untraversed model edges from the E2 model edges; add the edge identifiers of the F2 untraversed model edges to the traversed edge identifier set, filter all G2 valid associated surfaces of the F2 untraversed model edges, and add the G2 valid associated surfaces to the traversed surface identifier set; wherein E2 is an integer greater than 2, F2 is an integer greater than or equal to 0, and G2 is an integer greater than or equal to 0.

7. A method for distinguishing interconnected pipes according to claim 1, characterized in that: The interconnected pipeline traversal includes: When the execution time of the interconnected pipeline traversal exceeds the preset screening time, the interconnected pipeline traversal ends; The preset screening time is the maximum time required to traverse the interconnected pipelines.

8. A method for distinguishing interconnected pipes according to claim 3, characterized in that: After obtaining the second communicating pipeline, the method further includes: The first communicating pipes and the second communicating pipes are marked in the target model body with different colors.

9. An electronic device, characterized in that: include: processor; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 8.

10. A non-transitory machine-readable storage medium, characterized in that: An executable code is stored thereon, and when the executable code is executed by a processor of an electronic device, the processor is caused to execute the method as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automatic pipeline grouping method based on E3D software

    CN112948907A