A method and system for automatic generation of a schematic axonometric view of a piping network system
Patent Information
- Application Number
- CN202611082415.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-21
- Publication Date
- 2026-10-09
AI Technical Summary
[0003]针对现有技术存在的轴测图生成过程中投影失真、环状结构闭合失真以及视觉碰撞导致图纸可读性差的问题,本申请通过一种管网系统轴测示意图的自动生成方法和系统,通过动态建模设计自动化模型/电子设计模型,确保连续平面方向到离散轴测方向的映射准确可控;同时,基于轴测映射规则的坐标递推、环网自适应闭合调整以及视觉碰撞的物理验证与自动处理,提升了轴测图的生成质量与效率
[0073]通过从三维模型、平面图等多种数据源提取拓扑,其中对于多个二维平面图,以立管为锚点进行跨平面融合,构建统一的三维拓扑结构;确保连续平面方向到离散轴测方向的映射准确可控,确保生成的管段长度规整以及角度统一,符合轴测制图标准,针对管网中的环状结构,建立了基于最小化调整量的闭合方程求解机制,在保证环网几何闭合精度的同时,最大程度保留了原始拓扑的几何特征,通过全面的视觉碰撞检测(节点重叠、边边交叉、边节点穿越)和多优先级的自动调整策略(局部偏移、长度调整、子树重排),有效解决了自动布局中的图面干涉问题,且支持用户动态调整管段长度,并能自动触发局部重布局与碰撞检测,既保证了设计灵活性,又维护了图纸的整体质量。
Smart Images

Figure CN122886111A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automated models for building information layout design and electronic design, specifically to a method and system for automatically generating isometric schematic diagrams of pipeline systems. Background Technology
[0002] Currently, in the field of building electromechanical design and construction, system isometric drawings (such as water supply and drainage, HVAC piping system diagrams) are important technical documents for expressing the spatial orientation, connection relationships, and equipment attributes of the piping network. Traditional isometric drawing generation methods mainly rely on manual drawing or automatic generation based on simple rules. Manual drawing is inefficient and prone to errors; existing automatic generation technologies usually directly map planar coordinates to isometric coordinates, lacking a deep understanding of the piping network topology and global optimization. Existing technologies often face the following problems when dealing with complex pipe networks: First, during isometric projection, the mapping of continuous planar directions to discrete isometric directions can easily lead to geometric deformation or ambiguity, resulting in uneven pipe segment lengths and chaotic angles after projection, causing the generated graphics to not conform to drafting standards; Second, for common ring structures in pipe networks, existing methods cannot guarantee their geometric closure in isometric drawings, leading to distorted graphic representation; Third, for pipe networks containing closed loops, existing methods often decompose the loops into tree structures, resulting in the loss of the loop closure relationship, which can easily cause visual collisions (such as node overlap and pipeline intersection) during automatic layout, affecting the readability and aesthetics of the drawings. Summary of the Invention
[0003] To address the problems of projection distortion, ring structure closure distortion, and poor readability caused by visual collisions in the generation of isometric drawings in existing technologies, this application proposes an automatic generation method and system for isometric schematic diagrams of pipeline systems. Through dynamic modeling and automated design of an electronic design model, the system ensures accurate and controllable mapping from continuous planar directions to discrete isometric directions. Simultaneously, coordinate recursion based on isometric mapping rules, adaptive ring network closure adjustment, and physical verification and automatic processing of visual collisions improve the generation quality and efficiency of isometric drawings.
[0004] This invention is achieved through the following technical solution:
[0005] The first aspect of this invention provides a method for automatically generating isometric schematic diagrams of a pipeline system, comprising the following specific steps:
[0006] Collect pipeline source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in a plane coordinate system.
[0007] Configure isometric mapping rules to map the original continuous planar direction of each pipe segment in the topology diagram to a finite number of discrete isometric directions, and obtain the isometric unit vector of each edge;
[0008] The step size of each edge is determined based on its attributes and the type of the pipeline system.
[0009] The isometric displacement vector is determined based on the isometric unit vector of each edge and the step size of each edge;
[0010] A topological order recursive topological graph is adopted, and the isometric coordinates of all nodes are generated based on the isometric unit vector;
[0011] Identify ring structures in the topology diagram. When a ring structure exists in the pipeline network topology diagram, perform ring network closure processing based on the isometric coordinates of the nodes.
[0012] Update the step size of the edge until the geometric closure error of all loops is less than the preset threshold.
[0013] Based on the updated edge step size, perform visual collision detection and automatic layout adjustment.
[0014] Furthermore, when the pipeline source data is three-dimensional model data:
[0015] Traverse the pipe segment data, delete the slope attribute of the pipe segment, and extract the starting point and ending point coordinates of the pipe segment;
[0016] Nodes are extracted based on the starting and ending coordinates of the pipe segment, and nodes whose starting and ending distances are less than the set tolerance are merged.
[0017] Merge continuous pipe segments with the same attributes into logical edges, and delete logical edges of intermediate pipe components that are expressed as bends or turns.
[0018] Extract the location coordinates and type identifier of the device entity, and match the device to the nearest node;
[0019] Identify pipe segments that differ in the Z-axis direction and / or entities marked as risers, and mark their corresponding logical edges as risers. In subsequent isometric mapping, the displacement vector of the riser is calculated by multiplying the unit vector of the Y-axis of the isometric coordinate system by the step size.
[0020] When the pipeline source data is plan view data:
[0021] For nodes whose distance to each other is less than the set tolerance, create logical edges between the corresponding nodes and match the device to the nearest node;
[0022] For scenarios containing multiple two-dimensional plane diagrams, the risers identified in each plane diagram are used as cross-plane connection points, and the topological structures of multiple two-dimensional planes are combined into a unified three-dimensional topological structure through the risers.
[0023] Furthermore, the configured isometric mapping rules map the original continuous planar orientation of each pipe segment in the topology diagram to a finite number of discrete isometric orientations, obtaining the isometric unit vector of each edge, including:
[0024] Configure a set of isometric mapping rules, where each mapping rule includes: a plane reference direction angle, an isometric output angle corresponding to the reference direction angle, and an isometric unit direction vector corresponding to the isometric output angle;
[0025] For the original orientation angle of each pipe segment in the topology diagram, perform an angle snapping process:
[0026] Standardize the original direction angle to a set range;
[0027] Calculate the circumferential difference between the standardized angle and the angle of each plane reference direction in the mapping rule set;
[0028] The plane reference direction angle with the smallest annular difference is selected as the matching reference.
[0029] Based on the matching benchmark, the isometric output angle and isometric unit direction vector of the pipe section are determined.
[0030] Furthermore, determining the step size for each edge includes:
[0031] Obtain the attributes and network system type of each edge, and make the following judgment: if there is an end device node among the nodes connected to an edge, and the end device node is only connected to the edge, then the edge is classified as the first type;
[0032] The remaining edges are classified into the second category;
[0033] The first type of edge uses a first preset step size, and the second type of edge uses a second preset step size.
[0034] Furthermore, the step of using a topologically ordered recursive topological graph to generate the isometric coordinates of all nodes based on the isometric unit vector includes:
[0035] Decompose the topological graph into at least one connected component;
[0036] Each connected component undergoes independent coordinate recursion. For each connected component, a root node is selected according to the following rules: the node with an in-degree of zero is selected first; if there is no node with an in-degree of zero in the connected component, the node with the smallest degree is selected as the root node.
[0037] Set the isometric coordinates of the selected root node to the preset origin coordinates;
[0038] Starting from the root node, traverse each node in the connected component in turn;
[0039] For the currently visited node A, for each of its unvisited adjacent nodes B, calculate the isometric coordinates of node B based on the isometric unit direction vector;
[0040] Mark node B, whose coordinates have been calculated, as visited;
[0041] Continue until all nodes in all connected components have obtained isometric coordinates, then output the isometric coordinates of all nodes.
[0042] Furthermore, the ring network closure process includes:
[0043] The algorithm for identifying all basic cycles in a topological graph is based on the spanning tree algorithm, where each back edge that is not on the spanning tree and its unique path on the spanning tree constitute a basic cycle.
[0044] Obtain the isometric unit direction vectors of each side of the ring and establish the ring closure equation;
[0045] When the step size of any edge on the ring is specified or modified, substitute that step size as a known quantity into the ring closure equation.
[0046] The goal is to minimize the step size adjustment of the remaining sides, and then solve for the step size of the remaining sides.
[0047] The solved step size is stored as the custom step size of each side on the basic ring, replacing the original initial step size, until the geometric closure error of all basic rings is less than the preset threshold.
[0048] Furthermore, the step size of the updated edges, and the execution of visual collision detection and automatic layout adjustment, include:
[0049] Based on the updated edge step size, the isometric coordinates of all nodes are recursively laid out, and collision detection is performed. The collision detection includes one or more of the following detection items:
[0050] Node overlap detection: Calculate the Euclidean distance between any two nodes. If the distance is less than the preset node overlap threshold, then the nodes are considered to overlap.
[0051] Edge-to-edge intersection detection: Determine whether any two line segments with non-shared endpoints have an internal intersection. If they do, they are determined to be edge-to-edge intersections.
[0052] Edge-node crossing detection: For any node and any edge that is not an endpoint of the node, calculate the vertical distance from the node to the line containing the edge. If the vertical distance is less than a preset crossing threshold, it is determined to be an edge-node crossing.
[0053] When a collision is detected, the adjustment strategy is executed in the following priority order:
[0054] First priority: Local offset, which moves the node that collides along the axial direction of one of its connecting edges, and then performs collision detection again after the movement;
[0055] Second priority: length adjustment. If the local offset cannot eliminate the collision, modify the step size of the pipe segment connected to the colliding node and recalculate the coordinates of all subsequent subtrees after that node.
[0056] Third priority: Subtree rearrangement. If length adjustment cannot eliminate collisions, then the entire subtree containing the colliding node is translated, rotated, or misaligned and broken apart.
[0057] Set a maximum number of iterations. After each adjustment attempt, re-evaluate the collision situation and select the layout with the fewest collisions and the smallest adjustment range as the optimal layout output.
[0058] Furthermore, after performing visual collision detection and automatic layout adjustment, it also includes:
[0059] Receive user instructions for adjusting the pipe section;
[0060] Based on the user's adjustment instructions, modify the custom step size attribute of the corresponding topology edge of the pipe segment;
[0061] Starting from the endpoint node of this topological edge, clear the calculated isometric coordinates of its successor nodes;
[0062] Starting from the endpoint node, recalculate the isometric coordinates of all subsequent nodes according to the original traversal order;
[0063] Visual collision detection and automatic layout adjustment are performed again on the modified pipe sections, and the isometric schematic diagram is updated in real time.
[0064] A second aspect of the present invention provides an automatic generation system for isometric schematic diagrams of pipeline systems, characterized in that it includes:
[0065] The acquisition module is used to acquire pipeline source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in the plane coordinate system.
[0066] The isometric mapping configuration module is used to configure isometric mapping rules;
[0067] The topology data processing module maps the original continuous planar orientation of each pipe segment in the topology graph to a finite number of discrete isometric orientations, obtaining the isometric unit vector of each edge; determines the step size of each edge based on its attributes and the type of the pipeline system; determines the isometric displacement vector based on the isometric unit vector and the step size of each edge; and generates the isometric coordinates of all nodes based on the isometric unit vector by recursively deriving the topology graph in topological order.
[0068] The ring network closure processing module is used to identify ring structures in the topology diagram. When a ring structure exists in the pipeline topology diagram, the ring network closure processing is performed based on the isometric coordinates of the nodes.
[0069] The step size update module is used to update the step size of the edges until the geometric closure error of all loops is less than a preset threshold.
[0070] The visual collision detection and automatic layout adjustment module is used to perform visual collision detection and automatic layout adjustment based on the updated edge step size.
[0071] The interactive adjustment module is used to receive user instructions to modify the side length and then perform visual collision detection and automatic layout adjustment again.
[0072] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0073] By extracting topology from multiple data sources such as 3D models and plan views, and using risers as anchor points for cross-plane fusion of multiple 2D plan views, a unified 3D topology structure is constructed. This ensures accurate and controllable mapping from continuous planar directions to discrete isometric directions, and guarantees that the generated pipe segment lengths are regular and angles are uniform, conforming to isometric drawing standards. For ring structures in the pipe network, a closed-form equation solution mechanism based on minimizing adjustment amounts is established. While ensuring the geometric closure accuracy of the ring network, the geometric features of the original topology are preserved to the greatest extent. Through comprehensive visual collision detection (node overlap, edge intersection, edge-node crossing) and multi-priority automatic adjustment strategies (local offset, length adjustment, subtree rearrangement), the problem of drawing interference in automatic layout is effectively solved. It also supports users to dynamically adjust pipe segment lengths and can automatically trigger local rearrangement and collision detection, ensuring both design flexibility and maintaining the overall quality of the drawings. Attached Figure Description
[0074] To more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. The following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort. In the drawings:
[0075] Figure 1 This is a flowchart of the method for automatically generating isometric schematic diagrams of pipeline systems in embodiments of the present invention;
[0076] Figure 2 This is a flowchart of the ring network closure process in an embodiment of the present invention;
[0077] Figure 3 This is a flowchart of visual collision detection and automatic layout adjustment in an embodiment of the present invention. Detailed Implementation
[0078] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of this invention are only for explaining this invention and are not intended to limit this invention.
[0079] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
[0080] Example 1, such as Figure 1 As shown, this embodiment provides an automatic method for generating isometric schematic diagrams of pipeline systems. The electronic design model generated by this method transforms complex pipeline source data into standardized and clear isometric schematic diagrams, solving problems such as projection distortion, ring structure closure distortion, and poor readability due to visual collisions in the existing isometric drawing generation process. Layout design is performed through dynamic modeling, and an automated model / electronic design model is designed. The model design ensures accurate and controllable mapping from continuous planar directions to discrete isometric directions. Simultaneously, coordinate recursion based on isometric mapping rules, adaptive ring network closure adjustment, and physical verification and automatic processing of visual collisions improve the generation quality and efficiency of isometric drawings. The method of this embodiment can be applied to graphical programming in industrial internet platforms / industrial application software (CAD) in related fields. Specifically, it includes the following steps:
[0081] S1. Collect pipeline network source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in the plane coordinate system. The source can include two-dimensional planar data and three-dimensional BIM model data. The topology graph consists of a set of nodes and a set of edges. Nodes correspond to physical entities in the pipeline network, such as pipe connection points, equipment interfaces, and pipe diameter change points; edges correspond to pipe segments in the pipe segment data. During the construction of the topology graph, not only are the adjacency relationships between nodes and edges established, but the original orientation angle of each edge in the original plane coordinate system is also extracted and recorded.
[0082] S2, configure the isometric mapping rules to map the original continuous plane direction of each pipe segment in the topology diagram to a finite number of discrete isometric directions, and obtain the isometric unit vector of each edge.
[0083] In isometric projection drawing standards, to avoid messy lines, the direction of pipe segments is usually restricted to a limited number of standard directions. However, the direction of pipe segments in the original pipeline network data is often continuous and arbitrary. Through preset mapping rules, the continuous original direction angles are snapped or normalized to preset discrete reference directions to generate the isometric unit vector corresponding to each edge. The isometric unit vector corresponding to each edge represents the standard direction of the pipe segment in the final generated isometric drawing.
[0084] S3, step size configuration and displacement vector calculation.
[0085] S31. Determine the step size of each edge based on its attributes and network type.
[0086] In the topology graph, the attributes of an edge include the type of device it connects, the pipe diameter, and its category. This embodiment does not use a uniform step size for all pipe segments; instead, it differentiates them based on the edge attributes to distinguish between main pipes and branches.
[0087] S32, determine the isometric displacement vector based on the isometric unit vector of each side and the step size of each side.
[0088] Once the isometric unit vector and step size are determined, the displacement increment of the pipe segment in the isometric coordinate system can be calculated using vector multiplication. This vector represents the coordinate offset required to move the pipe segment from its starting point to its ending point.
[0089] S4 uses a topological order recursive topological graph to generate the isometric coordinates of all nodes based on the isometric unit direction vector.
[0090] Since pipeline network topology typically presents a tree-like or network structure with loops, coordinate calculations must follow a specific order to avoid circular dependencies. Therefore, a topology sorting or traversal algorithm is used, starting from the selected root node and calculating the coordinates of each node sequentially based on the connections between nodes. For the current node, the coordinates of its adjacent nodes are equal to the current node's coordinates plus the isometric displacement vector of the connecting edge. Through this recursive method, the topology can be transformed into specific geometric coordinates, thereby allowing the spatial orientation of the pipeline network to be plotted on a two-dimensional plane.
[0091] S41, identify ring structures in the topology diagram. When a ring structure exists in the pipeline topology diagram, perform ring closure processing based on the isometric coordinates of the nodes.
[0092] Since the step size of each edge is determined independently, when calculating back to the starting point of the loop, there may be a situation where the geometric positions do not coincide, i.e., geometric closure error. First, all basic loops in the topology graph are identified, and then loop closure equations are established. If closure error exists, an optimization algorithm is used to fine-tune the step size of each edge on the loop, ensuring that the adjusted step size satisfies the closure condition while being as close as possible to the initially set step size value, thus guaranteeing the geometric accuracy of the graph. This process continues until the geometric closure error of all loops is less than a preset threshold, at which point the edge step size is updated. The adjusted step size is then updated as the final step size for that edge, and the coordinates of the relevant nodes are recalculated based on the adjusted step size. This ensures the correct geometric logic of the ring network in the isometric drawing, avoiding breaks or misalignments in the graphical representation.
[0093] S5 performs visual collision detection and automatic layout adjustment based on the updated edge step size.
[0094] Even if the topological logic is correct, the automatically generated layout may still exhibit visual interference, such as two unconnected pipe segments intersecting or overlapping on the graph, or nodes being too densely packed. Therefore, collision detection is performed on the entire graph. The detection includes various situations such as node overlap, edge-edge intersection, and edge-node crossing. Once a collision is detected, the layout will be automatically adjusted according to a preset strategy, such as fine-tuning point positions, changing pipe segment lengths, or moving the entire subtree structure.
[0095] S6, after completing visual collision detection and automatic layout adjustment, provides users with dynamic adjustment and local re-layout functions. It receives user adjustment instructions for pipe segments, modifies the custom step size attribute of the corresponding topology edge of the pipe segment according to the user's adjustment instructions, clears the calculated isometric coordinates of its successor nodes starting from the end node of the edge, and recalculates the isometric coordinates of all subsequent nodes according to the original traversal order starting from the end node. It performs visual collision detection and automatic layout adjustment on the modified pipe segment and updates the isometric schematic diagram in real time.
[0096] Through the synergistic effect of S1 to S6 described above, this embodiment achieves a fully automated design model for generating pipeline network isometric drawings. This ensures that the generated isometric drawings conform to engineering drawing standards and possess good readability and accuracy.
[0097] Example 2 is a further refinement of S1-S6 in Example 1.
[0098] S1. To address the issues of diverse data sources and heterogeneous formats in the pipeline network, a topology diagram is constructed:
[0099] Obtain pipeline source data;
[0100] Extract pipe segment data and pipe segment connection data from the pipeline source data to construct a topology map;
[0101] The topology graph contains nodes and edges. Nodes correspond to at least one of the following in the riser data: pipe connection point, equipment interface, and pipe diameter change point. Edges correspond to pipe segments in the pipe segment data.
[0102] In this embodiment, depending on the data source type, the following methods can be used to extract the topology graph:
[0103] Method 1: Extract from the floor plan;
[0104] The user selects pipeline and equipment objects in the floor plan. Execution:
[0105] Traverse each pipeline object in the plan view, obtain its start and end coordinates, round the coordinates according to the preset tolerance, and obtain candidate nodes; merge nodes whose distance is less than the tolerance, and assign a unique identifier to each merged node; for each pipeline object, create a logical edge between the corresponding start and end nodes to record the original geometric information (but not used for subsequent layout); for each device, read its geometric data, match the device to the nearest node, mark the node as "device node", and read the device type identifier; identify specific symbols or legends representing risers, create a pair of nodes and generate a logical edge marked as "riser" based on their position and associated plan view pipelines; generate a topology graph based on the logical edge and the node with the unique identifier; for scenarios containing multiple plan views, use the risers identified in each plan view as cross-planar connection points, and combine the topology of multiple plan views into a unified 3D topology structure through the risers; output a unified topology graph.
[0106] Method 2: Extract from 3D model / point cloud model;
[0107] Traverse the pipes in the model and perform the following operations:
[0108] The process iterates through all pipe segment entities to obtain the start and end coordinates of each entity; it ignores intermediate pipe fittings used to represent bends and turns, and merges continuous pipe segments with the same attribute into a single logical edge; it iterates through all equipment entities (such as sanitary ware, valves, and pumps), extracts node data based on the 3D pipe segment data, merges nodes whose distances are less than a set tolerance (i.e., the difference distance is within a set distance), and extracts their location coordinates and equipment type; it matches equipment to the nearest node, establishing associations between nodes and equipment, and between nodes and pipe segments; after obtaining the pipe segment data, it also includes ignoring the slope attribute of all pipe segments (pipe segments do not contain slope attributes); it identifies pipe segments with significant differences in the Z-axis direction or entities explicitly marked as "riseers," and marks their corresponding logical edges as "riseers"; it constructs and outputs a unified topology graph based on logical edges and nodes.
[0109] Method 3: Extract from data exchange files, referring to the 3D model extraction process;
[0110] Read the standard data exchange file, parse the entities such as pipes, fittings, and equipment, ignore the slope information, and identify the riser entities based on entity type labels or geometric coordinates; then establish a node-edge topology structure based on the connection relationship between entities, add labels to the edges of riser types; and output a unified topology graph.
[0111] Method 4: Manual input;
[0112] Users can create nodes and edges directly through the interactive interface, and can specify the type of edge (horizontal pipe or vertical pipe); the topology map is automatically generated based on the input.
[0113] Regardless of the data source used, the general outputs a unified topology graph structure: a set of nodes (including location coordinates, device type, and unique identifier) and a set of edges (including references to the two endpoint nodes, original direction information, and attribute labels, with edges of the "rise pipe" type having a special mark).
[0114] For logical edges marked with "riseer", the displacement vector is calculated by multiplying the Y-axis unit vector (0,1) of the isometric coordinate system by the step size of the edge in the subsequent step S4, without going through the planar angle snapping mapping in step S2.
[0115] S2, Configure isometric mapping rules to map the original continuous planar direction of each pipe segment in the topology diagram to a finite number of discrete isometric directions, obtaining the isometric unit vector of each edge, including the following steps:
[0116] S21, Configure the set of isometric mapping rules.
[0117] A set of mapping rules, either preset or user-defined, is provided. Each mapping rule defines the correspondence between the plane reference direction and the axonometric projection parameters, as shown in Table 1.
[0118] ;
[0119] The plane reference direction angle refers to a preset standard direction angle in a plane coordinate system, which can be set to: four-direction mode, eight-direction mode, sixteen-direction mode, or dynamic reference mode. Users can freely select the number of reference directions and specific angle values through the interface, and automatically reconstruct the mapping rules and re-execute the layout based on the selection. For example, in the eight-direction mode, the reference angle can be set to 0°, 45°, 90°, 135°, etc.; the isometric output angle refers to the angle corresponding to the reference direction on the isometric projection plane; the isometric unit direction vector is a two-dimensional vector used to directly participate in subsequent coordinate calculations.
[0120] S31, based on the attributes of each edge and the network type, determine the step size of each edge, including:
[0121] First, obtain the attributes and network type of each edge. Edge attributes mainly refer to the type information of the nodes it connects to, such as whether the edge connects to specific equipment (e.g., radiators, sprinkler heads, fan coil units, etc.). The network type refers to whether the network belongs to water supply and drainage, HVAC, or fire protection, etc. Different drafting standards may have different default ratio requirements for pipe segment lengths. Second, classify each edge. Identify whether the edge is a "branch pipe" connecting to end equipment. The determination condition is: if an edge connects to a node containing an end equipment node, and that end equipment node only connects to that edge (i.e., the node's degree is 1), then the edge is classified into the first category; the remaining edges are classified into the second category. The "end equipment node" referred to here is the water supply point, gas supply point, or equipment interface at the very end of the network, characterized by connecting only one inlet pipe and no outlet pipe. Correspondingly, edges connecting such nodes are usually end branch pipes, which are often short in physical length and carry specific equipment connection information. Finally, assign different step values based on the classification results. The first type of edge uses a first preset step size, and the second type of edge uses a second preset step size, with the first preset step size being smaller than the second preset step size. For the first type of edge (terminal branch pipe), and for the second type of edge (main pipe), this is used to visually distinguish between the main pipe and the branches.
[0122] S4 uses a topologically ordered recursive topology graph, generating the isometric coordinates of all nodes based on the isometric unit direction vector, including:
[0123] The topology graph is decomposed into one or more connected components. All connected components are identified using connectivity analysis algorithms (such as Depth-First Search (DFS) or Disjoint-Set Union). Each connected component represents an independent network subsystem, and subsequent coordinate calculations are performed independently on a per-component basis, without interference. This ensures that even with complex composite drawings, the layout can be unfolded independently, avoiding coordinate space conflicts caused by globally unified calculations.
[0124] For each connected component, coordinate recursion is performed independently, and a root node is selected for each component. Nodes with an in-degree of zero are preferentially chosen as the root node. If no node with an in-degree of zero exists in the connected component, the node with the smallest degree (representing an independent entity for each connected component) is selected as the root node. In a pipe network, an in-degree of zero typically indicates that the node is the source or logical starting point of the fluid (e.g., a water inlet pipe or a gas inlet). Calculations begin from such nodes, with the coordinate recursion direction aligned with the logical expansion direction of the fluid flow. If no node with an in-degree of zero exists in the connected component (e.g., in a ring network), the node with the smallest degree is selected as the root node. This typically corresponds to nodes with fewer connected branches, simplifying subsequent branch expansion calculations.
[0125] Set the isometric coordinates of the selected root node to the preset origin coordinates. For each independent connected component, initialize its root node coordinates to the preset origin coordinates, such as (0,0) or a user-specified coordinate position. Starting from the root node, traverse each node in the connected component sequentially. Coordinate calculation is performed according to the topological hierarchy, that is, first calculate the node closest to the root node, then calculate nodes at higher levels, ensuring the orderliness of the layout. For the currently traversed node A, for each unvisited adjacent node B, calculate the isometric coordinates of node B based on the isometric unit direction vector. Assume the coordinates of the current node A are PA, and its adjacent node B is connected via an edge... Connect. Read edges. Axonometric unit direction vector and step size According to the rules of vector operations, Node B, whose coordinates have been calculated, is marked as visited. Once node B is calculated and marked as "visited," subsequent traversals of edges connecting to B will skip the coordinate calculation for B. This continues until all nodes in all connected components have obtained isometric coordinates, at which point the isometric coordinates of all nodes are output. When the queue is empty and all connected components have been traversed, each node in the topology graph is assigned a unique isometric coordinate. At this point, the logical connections of the network have been completely transformed into a geometric layout on a two-dimensional plane, laying the foundation for subsequent ring network closure processing and collision detection. This achieves an ordered transformation from local to global, and from logical to geometric. The decomposition of connected components solves the multi-independence problem; the optimized root node selection strategy conforms to engineering cognitive habits; and the graph traversal and visited marking mechanism ensures the accuracy and consistency of coordinate calculations.
[0126] As an optional implementation, the traversal strategy that starts from the root node and sequentially traverses each node in the connected component can be:
[0127] A breadth-first search (BFS) strategy is used for node coordinate recursion and ring network closure. The BFS strategy can prioritize the processing of nodes on the same level and short loops, which is beneficial for maintaining the visual alignment of devices on the same level in the isometric drawing. It is suitable for pipe network systems with large width and shallow depth (such as large factories and commercial complexes).
[0128] A depth-first search (DFS) strategy is adopted. The DFS strategy prioritizes long pipelines and deep loops along the depth path, which helps maintain the visual continuity of long-distance pipeline networks and is suitable for narrow and deep pipeline systems (such as vertical risers in high-rise buildings and long-distance water transmission pipelines).
[0129] S41, as Figure 2 As shown, the ring network closure process includes the following steps:
[0130] The spanning tree algorithm identifies all fundamental cycles in the topological graph, where each back edge not on the spanning tree and its unique path on the spanning tree constitute a fundamental cycle.
[0131] A complex network may contain multiple nested loops, and directly searching for all loops is inefficient. This embodiment uses a spanning tree algorithm from graph theory (such as Depth-First Search (DFS) or Prim's algorithm) to efficiently identify basic cycles. First, a spanning tree is constructed for the topology graph. The spanning tree contains all nodes of the topology graph, but only contains n-1 edges (where n is the number of nodes) sufficient to connect all nodes. The remaining edges in the topology graph are called "back edges". For each back edge, there must exist a unique path in the spanning tree connecting the two endpoints of the back edge. This back edge and the unique path together form a "basic cycle". By traversing all back edges, all basic cycles in the topology graph can be identified without omission. These basic cycles are independent, indivisible loop units, and any complex ring network structure can be composed of basic cycles.
[0132] Obtain the isometric unit direction vectors of each side of the ring and establish the ring closure equation.
[0133] For each identified basic cycle, assume it contains m edges, numbered as follows: The isometric unit direction vectors corresponding to each edge are respectively (These vectors are already determined in S2, and their directions are fixed.) The step size for each edge is as follows: (These step sizes are initialized in S3 but can be adjusted). According to the geometric closure condition, the sum of the displacement vectors of all edges in the loop should be zero. Therefore, the loop closure equation can be expressed as: When the step size of any edge on the ring is specified or modified, that step size is substituted into the closed equation as a known quantity. The step sizes of the remaining edges are solved with the objective of minimizing the adjustment amount of the step sizes of the other edges. Since the closed equation has multiple solutions, an optimization objective is introduced: minimizing the step size adjustment amount.
[0134] To illustrate the solution process more intuitively, a specific triangular ring will be used as an example below:
[0135] Suppose there exists a basic cycle consisting of nodes A, B, and C, containing three edges: (A points to B), edge (B points to C), edge (C points to A).
[0136] Given:
[0137] 1. The isometric unit direction vectors of the three sides are respectively , , .
[0138] 2. The initial step sizes are respectively , , .
[0139] 3. The step size of edge E_AB is fixed by the user. .
[0140] Establish a closed equation: The unknown is and The goal is to minimize the amount of adjustment. The above closed-loop equation is satisfied. This is a quadratic optimization problem under linear constraints, and the solution is uniquely determined by the closed-loop equation. The adjustment is distributed on the two edges, ensuring that the geometry (edge order, concavity / convexity) at each vertex remains unchanged.
[0141] To illustrate the above solution process more intuitively, the following example uses a specific quadrilateral ring user interaction adjustment as an example:
[0142] Consider a quadrilateral ring A→B→C→D→A. The user extends the length of edge B→C in the interactive interface. Execute:
[0143] Will Update to the new value specified by the user.
[0144] Preserve the edges: Fixed and unchanging.
[0145] Substitute L_BC as a known quantity into the closed equation: To minimize To solve for the objective. , , .
[0146] The step size of all edges on the loop is updated, and the loop is precisely closed. This process embodies the core feature of the invention: after adjusting one edge, the entire loop adapts and changes adaptively, achieving closure by optimizing the allocation of adjustment amounts while keeping the orientation of each edge fixed.
[0147] To illustrate the solution process more intuitively, the following example uses a specific case of nested multi-ring processing:
[0148] Consider a complex network of pipes containing two rings sharing an edge: a large ring ABCDEFA containing a smaller ring BCDB. Process them in the following order:
[0149] First, process the small cycle BCDB: Using the method of this embodiment, if the user specifies or presets the step size of a certain edge, then solve for the step size of the remaining edges and update the small cycle.
[0150] Using the corrected step size of the small loop as a known condition, process the large loop ABCDEFA.
[0151] In the treatment of large loops, the isometric orientation of all edges is kept fixed, and the goal is to solve for the closing step size of the large loop by minimizing the adjustment amount.
[0152] This nested processing strategy can automatically guarantee the closure of any complex ring network, while the local geometric properties within each ring are maintained independently.
[0153] S5, such as Figure 3 As shown, after mapping the pipe segment direction, determining the step size, and completing the ring network closure process, although the pipe network topology is geometrically closed and the coordinates have been generated, visual interference, or "visual collision," easily occurs under two-dimensional plane projection due to the dense and complex routing of the pipelines. This collision is not a real conflict in physical space, but rather an overlap or intersection in the graphic representation, which seriously affects the clarity and readability of the drawings. Therefore, this embodiment provides a visual collision detection and multi-level automatic adjustment strategy, aiming to automatically eliminate drawing interference and optimize the layout effect.
[0154] Based on the updated edge step size, the isometric coordinates of all nodes are recursively laid out, and visual collision detection and automatic layout adjustment are performed, including the following steps:
[0155] Based on the updated edge step size, recursively lay out the isometric coordinates of all nodes and perform collision detection.
[0156] The first method is node overlap detection. It calculates the Euclidean distance between any two nodes. If this distance is less than a preset node overlap threshold, the nodes are considered to overlap. Nodes on a drawing are typically represented as dots or symbols with a certain diameter. If two nodes are too close together, they will be visually difficult to distinguish as two independent nodes.
[0157] The second method is edge-to-edge intersection detection. It determines whether any two line segments with non-shared endpoints have an internal intersection. If they do, it's considered an edge-to-edge intersection. In a topological graph, if two edges share endpoints (i.e., connect to the same node), their intersection is a valid connection.
[0158] The third method is edge-node traversal detection. For any node and any edge that is not an endpoint of the node, calculate the perpendicular distance from the node to the line containing the edge. If the perpendicular distance is less than a preset traversal threshold, it is determined to be an edge-node traversal.
[0159] When a collision is detected, the adjustment strategy is executed in the following priority order.
[0160] This embodiment innovatively proposes a multi-level priority adjustment strategy, the core logic of which is to eliminate collisions at the lowest cost while maintaining the stability of the original layout as much as possible. The specific priorities are as follows:
[0161] The first priority is local offset. An attempt is made to move the colliding node slightly along the axial direction of one of its connecting edges, and then re-perform collision detection. This adjustment method only changes the local position of a single node, without altering the axial direction of the pipe segment or the overall topology, minimizing the impact on the global layout. For example, for overlapping nodes, one node can be slightly moved along the axial direction of its connecting edge to increase the distance between the two nodes; for edge-node crossings, the node can be moved axially to the end of the edge or away from it to eliminate the crossing. If the local offset successfully eliminates the collision without introducing a new one, the adjustment is accepted and the current collision processing ends.
[0162] The second priority is length adjustment. If local offset cannot eliminate the collision, the step size of the pipe segment connected to the colliding node is modified, and the coordinates of all subsequent subtrees after that node are recalculated. This strategy increases the distance between nodes by changing the drawing length of the pipe segments. Since the change in step size will affect the coordinates of subsequent nodes, the coordinates of all subsequent subtrees after that node need to be recalculated. Although the impact is larger than that of local offset, it is still limited to the local subtree range and will not disrupt the overall layout structure of the entire pipe network. The system will attempt to increase or decrease the step size to find the optimal step size value that avoids collisions.
[0163] The third priority is subtree rearrangement. If collisions cannot be effectively eliminated by step size adjustment and local offset, the entire subtree containing the colliding node is treated as a rigid body, and one or a combination of the following operations are performed:
[0164] Overall translation or rotation: This involves shifting the entire subtree within a plane or rotating it around the root node to avoid collision zones. This method affects the relative positions of all nodes within the subtree and is the most costly adjustment method.
[0165] Displacement Break Expression: The colliding subtree is completely removed from the main structure, forming a displaced, independent area, thereby completely eliminating the collision. Simultaneously, prominent visual markers (such as break lines, wavy lines, double diagonal lines, or special annotations) are used at the break point to clearly indicate the connection relationship, ensuring the readability of the drawings and the integrity of the engineering semantics.
[0166] The maximum number of iterations is set, and the collision situation is re-evaluated after each adjustment attempt. The layout with the fewest collisions and the smallest adjustment range is selected as the optimal layout output. This embodiment can effectively solve the common drawing interference problem in automatic layout, ensuring that the generated isometric drawing not only conforms to topological logic but also has good visual clarity and aesthetics, greatly reducing the workload of manual adjustments in the later stages.
[0167] S6, the user-dynamic adjustment and partial layout reconfiguration interaction function, achieves efficient partial updates while ensuring interactive flexibility. After completing visual collision detection and automatic layout adjustment, the method in this embodiment further includes the following steps:
[0168] Receive user adjustment instructions for pipe segments. Adjustment instructions include: inputting length increments and / or directly dragging the pipe segment endpoints.
[0169] Users can select a pipe segment that needs adjustment through a graphical user interface. The adjustment can be done by precise numerical input or by intuitive graphical operation. The system receives these operation commands and converts them into an internally processable data format.
[0170] Based on user adjustment commands, the custom step size attribute of the corresponding topology edge for the pipe segment is modified. Internally, a topology graph data structure is maintained, and each edge has a "step size" attribute. When the user inputs a length increment, the original step size is directly added to the increment to obtain the new step size value; when the user drags the endpoint, the projected length of the dragged vector in the isometric unit direction is calculated and used as the new step size value.
[0171] Starting from the endpoint of the edge, clear the calculated isometric coordinates of its successor nodes. In the topology, there are dependencies between nodes; the coordinates of a downstream node depend on the coordinates of its upstream node. When the step size of an edge (the edge pointing from node A to node B) changes, the position of node B will inevitably change, causing the coordinates of all successor nodes of node B (i.e., all nodes in the subtree with node B as an ancestor) to become invalid.
[0172] Starting from the endpoint node, recalculate the isometric coordinates of all subsequent nodes according to the original traversal order. After clearing the coordinates of the successor nodes, use the endpoint node (node B) as the new starting point and re-execute the breadth-first traversal strategy. Since the coordinates of node B have been updated and its isometric unit vector remains unchanged, calculate the coordinates of its child nodes in sequence according to the new step size, and recursively push to the end of the entire subtree.
[0173] Visual collision detection and automatic layout adjustment are performed on the modified pipe sections, and the isometric schematic diagram is updated in real time. After the local coordinates are recalculated, the new layout may introduce new visual collisions in local areas.
[0174] If the pipe segment being adjusted by the user is a ring network structure, the ring network closure process will be automatically triggered after the modification step size is executed.
[0175] By taking the new step length of this side as a known quantity and substituting it into the closure equation of the ring, the step lengths of other sides on the ring are recalculated using an optimization algorithm, so that the adjusted ring network still maintains geometric closure.
[0176] Example 3:
[0177] This embodiment provides an automatic generation system for isometric schematic diagrams of pipeline systems. This device is used to implement the automatic generation methods for isometric schematic diagrams of pipeline systems described in Embodiments 1 and 2 above. The device adopts a modular architecture design, and through the collaborative work of various functional modules, achieves fully automated processing from raw data acquisition to high-quality isometric diagram output. It includes:
[0178] The acquisition module is used to acquire pipeline source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in the plane coordinate system.
[0179] The isometric mapping configuration module is used to configure isometric mapping rules;
[0180] The topology data processing module maps the original continuous planar orientation of each pipe segment in the topology graph to a finite number of discrete isometric orientations, obtaining the isometric unit vector of each edge; determines the step size of each edge based on its attributes and the type of the pipeline system; determines the isometric displacement vector based on the isometric unit vector and the step size of each edge; and generates the isometric coordinates of all nodes based on the isometric unit vector by recursively deriving the topology graph in topological order.
[0181] The ring network closure processing module is used to identify ring structures in the topology diagram. When a ring structure exists in the pipeline topology diagram, the ring network closure processing is performed based on the isometric coordinates of the nodes.
[0182] The step size update module is used to update the step size of the edges until the geometric closure error of all loops is less than a preset threshold.
[0183] The visual collision detection and automatic layout adjustment module is used to perform visual collision detection and automatic layout adjustment based on the updated edge step size.
[0184] The interactive adjustment module is used to receive user instructions to modify the side length and then perform visual collision detection and automatic layout adjustment again.
[0185] In terms of hardware implementation, the aforementioned modules can be integrated into one or more processors, such as Field-Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), or General-Purpose Central Processing Units (CPUs). Data flow between modules can be achieved through internal buses, shared memory, or message queues. Furthermore, the device may also include peripheral hardware such as memory, a display, and input devices. The memory stores topology data, mapping rules, and program instructions; the display shows the generated isometric drawing; and the input devices receive user interaction commands. The device architecture provided in this embodiment fully supports the execution of the above-described method embodiments. Through modular division of labor and collaboration, it achieves beneficial effects such as data fusion, standardized mapping, ring network closure, collision elimination, and interactive editing, significantly improving the generation quality and efficiency of isometric drawings for pipeline systems.
[0186] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for automatically generating isometric schematic diagrams of a pipeline network system, characterized in that, Including the following specific details: Collect pipeline source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in a plane coordinate system. Configure isometric mapping rules to map the original continuous planar direction of each pipe segment in the topology diagram to a finite number of discrete isometric directions, and obtain the isometric unit vector of each edge; The step size of each edge is determined based on its attributes and the type of the pipeline system. The isometric displacement vector is determined based on the isometric unit vector of each edge and the step size of each edge; A topological order recursive topological graph is adopted, and the isometric coordinates of all nodes are generated based on the isometric unit vector; Identify ring structures in the topology diagram. When a ring structure exists in the pipeline network topology diagram, perform ring network closure processing based on the isometric coordinates of the nodes. Update the step size of the edge until the geometric closure error of all loops is less than the preset threshold. Based on the updated edge step size, perform visual collision detection and automatic layout adjustment.
2. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, The collected pipeline source data is used to construct a topology graph containing nodes and edges, including: When the pipeline source data is three-dimensional model data: Traverse the pipe segment data, delete the slope attribute of the pipe segment, and extract the starting point and ending point coordinates of the pipe segment; Nodes are extracted based on the starting and ending coordinates of the pipe segment, and nodes whose starting and ending distances are less than the set tolerance are merged. Merge continuous pipe segments with the same attributes into logical edges, and delete logical edges of intermediate pipe components that are expressed as bends or turns. Extract the location coordinates and type identifier of the device entity, and match the device to the nearest node; Identify pipe segments that differ in the Z-axis direction and / or entities marked as risers, and mark their corresponding logical edges as risers. In subsequent isometric mapping, the displacement vector of the riser is calculated by multiplying the unit vector of the Y-axis of the isometric coordinate system by the step size. When the pipeline source data is plan view data: For nodes whose distance to each other is less than the set tolerance, create logical edges between the corresponding nodes and match the device to the nearest node; For scenarios containing multiple two-dimensional plane diagrams, the risers identified in each plane diagram are used as cross-plane connection points, and the topological structures of multiple two-dimensional planes are combined into a unified three-dimensional topological structure through the risers.
3. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, The configured isometric mapping rules map the original continuous planar orientation of each pipe segment in the topology diagram to a finite number of discrete isometric orientations, resulting in an isometric unit vector for each edge, including: Configure a set of isometric mapping rules, where each mapping rule includes: a plane reference direction angle, an isometric output angle corresponding to the reference direction angle, and an isometric unit direction vector corresponding to the isometric output angle; For the original orientation angle of each pipe segment in the topology diagram, perform an angle snapping process: Standardize the original direction angle to a set range; Calculate the circumferential difference between the standardized angle and the angle of each plane reference direction in the mapping rule set; The plane reference direction angle with the smallest annular difference is selected as the matching reference. Based on the matching benchmark, the isometric output angle and isometric unit direction vector of the pipe section are determined.
4. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, Determining the step size for each edge includes: Obtain the attributes and network system type of each edge, and make the following judgment: if there is an end device node among the nodes connected to an edge, and the end device node is only connected to the edge, then the edge is classified as the first type; The remaining edges are classified into the second category; The first type of edge uses a first preset step size, and the second type of edge uses a second preset step size.
5. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, The method of using a topologically ordered recursive topological graph to generate the isometric coordinates of all nodes based on isometric unit vectors includes: Decompose the topological graph into at least one connected component; Each connected component undergoes independent coordinate recursion. For each connected component, a root node is selected according to the following rules: the node with an in-degree of zero is selected first; if there is no node with an in-degree of zero in the connected component, the node with the smallest degree is selected as the root node. Set the isometric coordinates of the selected root node to the preset origin coordinates; Starting from the root node, traverse each node in the connected component in turn; For the currently visited node A, for each of its unvisited adjacent nodes B, calculate the isometric coordinates of node B based on the isometric unit direction vector; Mark node B, whose coordinates have been calculated, as visited; Continue until all nodes in all connected components have obtained isometric coordinates, then output the isometric coordinates of all nodes.
6. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, The ring network closure process includes: The algorithm for identifying all basic cycles in a topological graph is based on the spanning tree algorithm, where each back edge that is not on the spanning tree and its unique path on the spanning tree constitute a basic cycle. Obtain the isometric unit direction vectors of each side of the ring and establish the ring closure equation; When the step size of any edge on the ring is specified or modified, substitute that step size as a known quantity into the ring closure equation. The goal is to minimize the step size adjustment of the remaining sides, and then solve for the step size of the remaining sides. The solved step size is stored as the custom step size of each side on the basic ring, replacing the original initial step size, until the geometric closure error of all basic rings is less than the preset threshold.
7. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, The step size based on the updated edge size is used to perform visual collision detection and automatic layout adjustment, including: Based on the updated edge step size, the isometric coordinates of all nodes are recursively laid out, and collision detection is performed. The collision detection includes one or more of the following detection items: Node overlap detection: Calculate the Euclidean distance between any two nodes. If the distance is less than the preset node overlap threshold, then the nodes are considered to overlap. Edge-to-edge intersection detection: Determine whether any two line segments with non-shared endpoints have an internal intersection. If they do, they are determined to be edge-to-edge intersections. Edge-node crossing detection: For any node and any edge that is not an endpoint of the node, calculate the vertical distance from the node to the line containing the edge. If the vertical distance is less than a preset crossing threshold, it is determined to be an edge-node crossing. When a collision is detected, the adjustment strategy is executed in the following priority order: First priority: Local offset, which moves the node that collides along the axial direction of one of its connecting edges, and then performs collision detection again after the movement; Second priority: length adjustment. If the local offset cannot eliminate the collision, modify the step size of the pipe segment connected to the colliding node and recalculate the coordinates of all subsequent subtrees after that node. Third priority: Subtree rearrangement. If length adjustment cannot eliminate collisions, then the entire subtree containing the colliding node is translated, rotated, or misaligned and broken apart. Set a maximum number of iterations. After each adjustment attempt, re-evaluate the collision situation and select the layout with the fewest collisions and the smallest adjustment range as the optimal layout output.
8. The method for automatically generating isometric schematic diagrams of a pipeline system according to claim 1, characterized in that, After performing visual collision detection and automatic layout adjustment, it also includes: Receive user instructions for adjusting the pipe section; Based on the user's adjustment instructions, modify the custom step size attribute of the corresponding topology edge of the pipe segment; Starting from the endpoint node of this topological edge, clear the calculated isometric coordinates of its successor nodes; Starting from the endpoint node, recalculate the isometric coordinates of all subsequent nodes according to the original traversal order; Visual collision detection and automatic layout adjustment are performed again on the modified pipe sections, and the isometric schematic diagram is updated in real time.
9. An automatic generation system for isometric schematic diagrams of a pipeline network system, characterized in that, include: The acquisition module is used to acquire pipeline source data and construct a topology graph containing nodes and edges. The topology graph includes several pipe segments, the connection relationships between pipe segments, and the original orientation angle of each pipe segment in the plane coordinate system. The isometric mapping configuration module is used to configure isometric mapping rules; The topology data processing module maps the original continuous planar orientation of each pipe segment in the topology graph to a finite number of discrete isometric orientations, obtaining the isometric unit vector of each edge; determines the step size of each edge based on its attributes and the type of the pipeline system; determines the isometric displacement vector based on the isometric unit vector and the step size of each edge; and generates the isometric coordinates of all nodes based on the isometric unit vector by recursively deriving the topology graph in topological order. The ring network closure processing module is used to identify ring structures in the topology diagram. When a ring structure exists in the pipeline topology diagram, the ring network closure processing is performed based on the isometric coordinates of the nodes. The step size update module is used to update the step size of the edges until the geometric closure error of all loops is less than a preset threshold. The visual collision detection and automatic layout adjustment module is used to perform visual collision detection and automatic layout adjustment based on the updated edge step size. The interactive adjustment module is used to receive user instructions to modify the side length and then perform visual collision detection and automatic layout adjustment again.