Vector-based orthogonal offset path power configuration graph connection system and method

The vector calculation and path decision module generate connection paths that meet the power drawing specifications, which solves the problem of low efficiency and poor standardization of automatic device connection path generation in the power system configuration software, and realizes efficient and reliable grid topology visualization.

CN120371280APending Publication Date: 2025-07-25齐丰科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510443952.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The automatic generation efficiency of equipment connection paths in existing power system configuration software is low, has high manual dependence, and the calculation complexity of traditional algorithms is difficult to meet the real-time requirements and normative requirements of large-scale power equipment.

Method used

A vector-based orthogonal offset path power configuration graphic wiring system is used, and through the vector computing module, the path decision module and the SVG path generation module, the standard direction vector definition, vector cross product and dot product judgment, the path generation mode is dynamically selected to generate a connection path that conforms to the power drawing specification.

Benefits of technology

It improves the wiring efficiency and standardization in the field of power configuration graphics, reduces the complexity of path generation, meets the visual construction needs of smart grids, and adapts to wiring specifications in different scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120371280A_ABST
    Figure CN120371280A_ABST
Patent Text Reader

Abstract

The invention provides a vector-based orthogonal offset path power configuration graph connection system and method, the system is provided with a vector operation module, a path decision module and an SVG path generation module, and the method of the system comprises the following steps: step 1, defining a standard direction vector; 2, preprocessing receiving equipment port coordinates and direction parameters, and calculating offset starting and ending points through direction vector scalar multiplication; 3, constructing a horizontal reference vector H and a vertical reference vector V; 4, judging the parallelism of the starting and ending directions and the reference vector through vector cross product; 5, dynamically selecting a three-point or four-point path generation mode according to the dot product symbol; step 6, generating a connection path conforming to an electric power mapping specification based on orthogonal vector space operation; according to the system and the method, the long-standing problems of low wiring efficiency, poor normalization, weak adaptability and the like in the field of power configuration graphs are solved through vector space orthogonal decomposition and dynamic parameterization path generation technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of graphic processing of power system configuration software, and specifically to a system and method for power configuration graphic connection based on vector orthogonal offset paths. Background Art

[0002] In the field of power system configuration software, the automatic generation of device connection paths is a core requirement for constructing a visual model of the power grid topology; however, the following key problems in the current technical system have not been effectively solved;

[0003] Excessive manual dependence; traditional solutions require manual adjustment of the connection path direction and turning point positions. When facing large-scale power equipment, such as secondary equipment of intelligent substations and distribution network topology nodes, manual wiring is inefficient and prone to line crossings, making it difficult to meet the real-time requirements of complex power grid design;

[0004] Efficiency bottleneck of path planning algorithms; automated algorithms based on grid search, such as variants of the A* algorithm, need to traverse a large number of nodes, and the computational complexity increases exponentially in scenarios with dense equipment; this inefficiency leads to lag when dynamically editing large-scale power grid models and cannot adapt to the requirements of minute-level topology updates for new power systems;

[0005] Therefore, the applicant, based on the fact that in the field of power system configuration software, the automatic generation of device connection paths is a core requirement for constructing a visual model of the power grid topology, proposes a system and method for power configuration graphic connection based on vector orthogonal offset paths. By means of dynamic discrimination of reference vectors, dynamic path offset, dynamic path type discrimination, and lightweight calculation architecture, the three major pain points of low wiring efficiency, poor standardization, and weak adaptability that have long existed in the field of power configuration graphics are solved, providing efficient, reliable, and standardized technical support for the visual construction of smart grids, and having significant industrial innovation value. Summary of the Invention

[0006] To solve the above technical problems, the present invention proposes a system and method for power configuration graphic connection based on vector orthogonal offset paths. The system is provided with a vector operation module, a path decision module, and an SVG path generation module. The method of the system preprocesses by defining a standard direction vector, receiving device port coordinates and direction parameters, calculates the offset start and end points through scalar multiplication of the direction vector, constructs a horizontal reference vector H and a vertical reference vector V, judges the parallelism of the start and end directions and the reference vector through the vector cross product, dynamically selects a three-point or four-point path generation mode according to the dot product symbol, and generates a connection path that conforms to the power drawing specification based on orthogonal vector space operations, solving the problems of low wiring efficiency, poor standardization, and weak adaptability that have long existed in the field of power configuration graphics.

[0007] To achieve the above object, the technical solution adopted by the present invention is:

[0008] System for vector - based orthogonal offset path power configuration graphic connection. The system for vector - based orthogonal offset path power configuration graphic connection is provided with a vector operation module, a path decision module, and an SVG path generation module. The vector operation module implements cross - product, dot - product, and vector addition and subtraction operations. The path decision module executes vector space orthogonal decomposition and dynamic parameterized path generation technology. The SVG path generation module outputs vector graphic instructions that conform to the W3C standard.

[0009] The method of the system for vector - based orthogonal offset path power configuration graphic connection according to the present invention is specifically as follows:

[0010] Step 1: Definition of standard direction vectors;

[0011] Step 2: Pre - processing of receiving device port coordinates and direction parameters, calculating the offset start and end points through direction vector scalar multiplication;

[0012] Step 3: Constructing a horizontal reference vector H and a vertical reference vector V;

[0013] Step 4: Judging the parallelism between the start - end direction and the reference vector through vector cross - product;

[0014] Step 5: Dynamically selecting a three - point or four - point path generation mode according to the dot - product symbol;

[0015] Step 6: Generating a connection path that conforms to the power drawing specification based on orthogonal vector space operations.

[0016] Furthermore, the definition of the standard direction vectors in Step 1 of the method of the system for vector - based orthogonal offset path power configuration graphic connection is specifically based on four standard direction vectors, namely up, down, left, and right, which are defined as:

[0017]

[0018] Furthermore, the pre - processing of receiving device port coordinates and direction parameters in Step 2 of the method of the system for vector - based orthogonal offset path power configuration graphic connection is specifically as follows:

[0019] Parameter parsing: Reading the start - point coordinates startPoint[x1, y1] of the start device port; Reading the end - point coordinates endPoint[x2, y2] of the target device port;

[0020] Direction parameter: Parsing the start direction startDirection and the end direction endDirection, and converting them into corresponding standard direction vectors. startDirection = "top" corresponds to the vector [0, - 1];

[0021] Offset distance: Obtain the safety margin parameters startOffset, with a default value of 15px; endOffset, with a default value of 15px.

[0022] Furthermore, in step two of the method of the system for vector-based orthogonal offset path power configuration graphic connection, the offset start and end points are calculated by direction vector scalar multiplication, specifically as follows:

[0023] Offset formula for the start point and end point along the direction vector:

[0024] offsetStart = startPoint + startDir · startOffset

[0025] offsetEnd = endPoint + endDir · endOffset

[0026] Start point offset: Multiply the start direction vector component by the start offset distance:

[0027] Offset amount X = x value of the start direction vector × startOffset

[0028] Offset amount Y = y value of the start direction vector × startOffset

[0029] Generate new coordinates:

[0030] Offset start point X = startPoint.x + offset amount X

[0031] Offset start point Y = startPoint.y + offset amount Y

[0032] End point offset: Multiply the end direction vector component by the end offset distance:

[0033] Offset amount X = x value of the end direction vector × endOffset

[0034] Offset amount Y = y value of the end direction vector × endOffset

[0035] Generate new coordinates:

[0036] Offset end point X = endPoint.x + offset amount X

[0037] Offset end point Y = endPoint.y + offset amount Y.

[0038] Furthermore, in step three of the method of the system for vector-based orthogonal offset path power configuration graphic connection, constructing the horizontal reference vector H and the vertical reference vector V is specifically as follows:

[0039] Construct the horizontal reference vector H = [Δx, 0] and the vertical reference vector V = [0, Δy], where Δx = end point x - start point x, and Δy = end point y - start point y;

[0040] Δx = offsetEnd.x - offsetStart.x

[0041] Δy = offsetEnd.y - offsetStart.y

[0042] The horizontal reference vector H = [Δx, 0]

[0043] The vertical reference vector V = [0, Δy]

[0044] Coordinate difference calculation:

[0045] The horizontal difference Δx = end point X coordinate - offset start point X coordinate

[0046] The vertical difference Δy = end point Y coordinate - offset start point Y coordinate

[0047] Reference vector generation:

[0048] Horizontal reference vector: Only retain the horizontal difference, and the vertical component is 0 → H = [Δx, 0]

[0049] Vertical reference vector: Only retain the vertical difference, and the horizontal component is 0 → V = [0, Δy].

[0050] Furthermore, in step four of the method of the system for vector-based orthogonal offset path power configuration graphic connection, the parallelism between the start and end directions and the reference vector is judged by the vector cross product, and the verification is as follows:

[0051] isParallel(vec1, vec2) if and only if:

[0052] vec1.x * vec2.y - vec1.y * vec2.x = 0

[0053] Calculate the cross product value = start direction vector x × horizontal reference vector y - start direction vector y × horizontal reference vector x. If the cross product value is 0, it is determined that the start direction is parallel to the horizontal reference, and the horizontal reference vector is selected; otherwise, the vertical reference vector is selected.

[0054] Furthermore, the specific method of dynamically selecting the three-point or four-point path generation mode according to the dot product symbol in step five of the method of the system for vector-based orthogonal offset path power configuration graphic connection is as follows:

[0055] Path type determination rule:

[0056] if (H_start · H_end > 0) => Generate a four-point path

[0057] else => Generate a three - point path

[0058] Where: H_start is the starting reference vector;

[0059] H_end is the ending reference vector;

[0060] · represents the dot product;

[0061] Direction consistency calculation:

[0062] Dot product of the starting valid reference vector and the ending valid reference vector = starting reference x × ending reference x + starting reference y × ending reference y

[0063] Logical judgment:

[0064] If the dot product result > 0, generate a four - point path

[0065] If the dot product result ≤ 0, generate a three - point path.

[0066] Furthermore, the specific method for generating a connection path that conforms to the power drawing specification based on the orthogonal vector space operation in step six of the method of the system for vector - based orthogonal offset path power configuration graphics connection is as follows:

[0067] Three - point path generation process:

[0068] P1 = (offsetStart.x + H_start.x, offsetStart.y + H_start.y)

[0069] P2 = (P1.x + V_end.x, P1.y + V_end.y)

[0070] Path sequence:

[0071] startPoint → offsetStart → P1 → P2 → endPoint

[0072] Extend along the starting reference:

[0073] Intermediate point 1_X = offset starting point X + x - component of the starting reference vector

[0074] Intermediate point 1_Y = offset starting point Y + y - component of the starting reference vector

[0075] Turn and extend along the ending reference:

[0076] Intermediate point 2_X = Intermediate point 1_X + x - component of the ending reference vector

[0077] Intermediate point 2_Y = Intermediate point 1_Y + y - component of the ending reference vector

[0078] Final path point sequence:

[0079] [Original starting point, offset starting point, intermediate point 1, intermediate point 2, original end point]

[0080] Four-point path generation process:

[0081] P1 = (offsetStart.x + 0.5 * H_start.x, offsetStart.y + 0.5 * H_start.y)

[0082] P2 = (P1.x + V_other.x, P1.y + V_other.y)

[0083] P3 = (P2.x + 0.5 * H_end.x, P2.y + 0.5 * H_end.y)

[0084] Path sequence:

[0085] startPoint → offsetStart → P1 → P2 → P3 → endPoint

[0086] Half-length reference extension:

[0087] Intermediate point 1_X = Offset starting point X + x component of the starting reference vector × 0.5

[0088] Intermediate point 1_Y = Offset starting point Y + y component of the starting reference vector × 0.5 Vertical direction extension:

[0089] Intermediate point 2_X = Intermediate point 1_X + x component of the vertical reference vector

[0090] Intermediate point 2_Y = Intermediate point 1_Y + y component of the vertical reference vector

[0091] Reverse reference extension:

[0092] Intermediate point 3_X = Intermediate point 2_X + x component of the termination reference vector × 0.5

[0093] Intermediate point 3_Y = Intermediate point 2_Y + y component of the termination reference vector × 0.5

[0094] Final path point sequence:

[0095] [Original starting point, offset starting point, intermediate point 1, intermediate point 2, intermediate point 3, original end point].

[0096] The benefits brought by this application are:

[0097] 1. The system and method for power configuration graphic connection with vector-based orthogonal offset path solve the three major pain points of low wiring efficiency, poor standardization, and weak adaptability that have long existed in the field of power configuration graphics through two core technologies: orthogonal decomposition of vector space and generation of dynamic parameterized paths, providing efficient, reliable, and standardized technical support for the visualization construction of smart grids, and having significant industry innovation value;

[0098] 2. The system and method for power configuration graphic connection with vector-based orthogonal offset path ensure that the path turning points strictly follow the right-angle orthogonal standard of power engineering drawing through direction vector constraint and orthogonal decomposition of reference vectors, eliminating non-standard wiring such as diagonal lines and acute-angle turns, and significantly improving the readability of drawings and industry compliance;

[0099] 3. The system and method for power configuration graphic connection with vector-based orthogonal offset path use pure vector linear operations to replace traditional manual drawing or grid traversal using the A* algorithm, reducing the complexity of single-path generation and improving the path generation speed;

[0100] 4. The system and method for power configuration graphic connection with vector-based orthogonal offset path integrate a safety offset and a path type adaptation mechanism to dynamically adjust the path direction, three-point path or four-point path, avoiding manual obstacle avoidance adjustment;

[0101] 5. The system and method for power configuration graphic connection with vector-based orthogonal offset path seamlessly adapt to the wiring specifications of different scenarios such as substations and distribution networks through an external parameter configuration interface, such as a substation safety distance of 20px and a distribution network of 15px, meeting the differentiated requirements of multiple scenarios in the power industry. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 It is a schematic diagram of the core algorithm architecture process of the present invention;

[0103] Figure 2 It is a schematic diagram of the direction vector set of the present invention;

[0104] Figure 3 It is a schematic diagram of a three-point path of the present invention;

[0105] Figure 4 It is a schematic diagram of a four-point path of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0106] The present invention will be further described in detail below in conjunction with the drawings and specific embodiments:

[0107] Such as Figure 1-2As shown, a system and method for vector-based orthogonal offset path power configuration graphic connection are presented. The system for vector-based orthogonal offset path power configuration graphic connection is provided with a vector operation module, a path decision module, and an SVG path generation module. The vector operation module implements cross product, dot product, and vector addition and subtraction operations. The path decision module executes vector space orthogonal decomposition and dynamic parameterized path generation technology. The SVG path generation module outputs vector graphic instructions that conform to the W3C standard. The method steps of the system for vector-based orthogonal offset path power configuration graphic connection are specifically as follows.

[0108] Step 1: Definition of standard direction vectors;

[0109] The definition of standard direction vectors is specifically based on four standard direction vectors, namely up, down, left, and right, which are defined as follows:

[0110]

[0111] Step 2: Preprocessing of receiving device port coordinates and direction parameters, and calculating offset start and end points through direction vector scalar multiplication.

[0112] The preprocessing of receiving device port coordinates and direction parameters is specifically as follows:

[0113] Parameter parsing: Read the starting point coordinates startPoint[x1, y1] of the starting device port; read the ending point coordinates endPoint[x2, y2] of the target device port.

[0114] Direction parameters: Parse the starting direction startDirection and the ending direction endDirection, and convert them into corresponding standard direction vectors. startDirection = "top" corresponds to the vector [0, -1].

[0115] Offset distance: Obtain the safety spacing parameters startOffset, with a default value of 15px; endOffset, with a default value of 15px.

[0116] The calculation of offset start and end points through direction vector scalar multiplication is specifically as follows:

[0117] Offset formula for the starting point and ending point along the direction vector:

[0118] offsetStart = startPoint + startDir · startOffset

[0119] offsetEnd = endPoint + endDir · endOffset

[0120] Starting point offset: Multiply the starting direction vector component by the starting offset distance:

[0121] Offset X = x value of the starting direction vector × startOffset

[0122] Offset Y = y value of the starting direction vector × startOffset

[0123] Generate new coordinates:

[0124] Offset starting point X = startPoint.x + Offset X

[0125] Offset starting point Y = startPoint.y + Offset Y

[0126] End point offset: Multiply the end direction vector component by the end offset distance:

[0127] Offset X = x value of the end direction vector × endOffset

[0128] Offset Y = y value of the end direction vector × endOffset

[0129] Generate new coordinates:

[0130] Offset end point X = endPoint.x + Offset X

[0131] Offset end point Y = endPoint.y + Offset Y;

[0132] Step 3. Construct the horizontal reference vector H and the vertical reference vector V;

[0133] Construct the horizontal reference vector H = [Δx, 0] and the vertical reference vector V = [0, Δy], where Δx = end point x - start point x, Δy = end point y - start point y;

[0134] Δx = offsetEnd.x - offsetStart.x

[0135] Δy = offsetEnd.y - offsetStart.y

[0136] Horizontal reference vector H = [Δx, 0]

[0137] Vertical reference vector V = [0, Δy]

[0138] Coordinate difference calculation:

[0139] Horizontal difference Δx = end point X coordinate - offset starting point X coordinate

[0140] Vertical difference Δy = end point Y coordinate - offset starting point Y coordinate

[0141] Reference vector generation:

[0142] Horizontal reference vector: Only retain the horizontal difference, and the vertical component is 0 → H = [Δx, 0]

[0143] Vertical reference vector: Only retain the vertical difference, and the horizontal component is 0 → V = [0, Δy];

[0144] Step 4. Determine the parallelism between the start and end directions and the reference vector through the vector cross product;

[0145] The parallelism between the start and end directions and the reference vector is judged by the vector cross product, and its verification is:

[0146] isParallel(vec1, vec2) if and only if:

[0147] vec1.x * vec2.y - vec1.y * vec2.x = 0

[0148] Calculate the cross product value = start direction vector x × horizontal reference vector y - start direction vector y × horizontal reference vector x. If the cross product value is 0, it is determined that the start direction is parallel to the horizontal reference, and the horizontal reference vector is selected; otherwise, the vertical reference vector is selected;

[0149] Step 5. Dynamically select the three-point or four-point path generation mode according to the dot product symbol;

[0150] The dynamic selection of the three-point or four-point path generation mode by the dot product symbol is specifically:

[0151] Path type determination rule:

[0152] if (H_start · H_end > 0) => Generate a four-point path

[0153] else => Generate a three-point path

[0154] Where: H_start is the starting reference vector;

[0155] H_end is the ending reference vector;

[0156] · represents the dot product;

[0157] Direction consistency calculation:

[0158] The dot product of the starting effective reference vector and the ending effective reference vector = starting reference x × ending reference x + starting reference y × ending reference y

[0159] Logical judgment:

[0160] The dot product result > 0, generate a four-point path

[0161] The dot product result ≤ 0, generate a three-point path;

[0162] Step 6: Generate a connection path that complies with the power mapping specification; specifically:

[0163] Three-point path generation process:

[0164] P1 = (offsetStart.x + H_start.x, offsetStart.y + H_start.y)

[0165] P2 = (P1.x + V_end.x, P1.y + V_end.y)

[0166] Path sequence:

[0167] startPoint → offsetStart → P1 → P2 → endPoint

[0168] Extend along the starting reference:

[0169] Intermediate point 1_X = Offset starting point X + x component of the starting reference vector

[0170] Intermediate point 1_Y = Offset starting point Y + y component of the starting reference vector

[0171] Turn and extend along the termination reference:

[0172] Intermediate point 2_X = Intermediate point 1_X + x component of the termination reference vector

[0173] Intermediate point 2_Y = Intermediate point 1_Y + y component of the termination reference vector

[0174] Final path point sequence:

[0175] [Original starting point, Offset starting point, Intermediate point 1, Intermediate point 2, Original end point]

[0176] Four-point path generation process:

[0177] P1 = (offsetStart.x + 0.5 * H_start.x, offsetStart.y + 0.5 * H_start.y)

[0178] P2 = (P1.x + V_other.x, P1.y + V_other.y)

[0179] P3 = (P2.x + 0.5 * H_end.x, P2.y + 0.5 * H_end.y)

[0180] Path sequence:

[0181] startPoint → offsetStart → P1 → P2 → P3 → endPoint

[0182] Half - length reference extension:

[0183] Mid - point 1_X = Offset start point X + x - component of start reference vector × 0.5

[0184] Mid - point 1_Y = Offset start point Y + y - component of start reference vector × 0.5

[0185] Vertical direction extension:

[0186] Mid - point 2_X = Mid - point 1_X + x - component of vertical reference vector

[0187] Mid - point 2_Y = Mid - point 1_Y + y - component of vertical reference vector

[0188] Reverse reference extension:

[0189] Mid - point 3_X = Mid - point 2_X + x - component of termination reference vector × 0.5

[0190] Mid - point 3_Y = Mid - point 2_Y + y - component of termination reference vector × 0.5

[0191] Final path point sequence:

[0192] [Original start point, Offset start point, Mid - point 1, Mid - point 2, Mid - point 3, Original end point].

[0193] As Figure 3 shown, taking the three - point path generation as an example:

[0194] Input parameters:

[0195] Device port coordinates:

[0196] Starting device port coordinates: startPoint = [100, 200]

[0197] Terminating device port coordinates: endPoint = [300, 400]

[0198] Direction parameters:

[0199] Starting direction: startDir = right → direction vector [1, 0]

[0200] Terminating direction: endDir = top → direction vector [0, - 1]

[0201] Offset distance:

[0202] startOffset = endOffset = 15px

[0203] Calculation steps:

[0204] Safety offset calculation:

[0205] Starting point offset:

[0206] offsetStart = [100 + 1×15, 200 + 0×15] = [115, 200]

[0207] End point offset:

[0208] offsetEnd = [300 + 0×15, 400 + (-1)×15] = [300, 385]

[0209] Reference vector decomposition:

[0210] Coordinate difference:

[0211] Δx = 300 - 115 = 185

[0212] Δy = 385 - 200 = 185

[0213] Reference vector:

[0214] H = [185, 0] (horizontal reference)

[0215] V = [0, 185] (vertical reference)

[0216] Path type decision:

[0217] Dot product calculation: H_start·H_end = [1, 0]·[0, -1] = 0 → Select three-point path;

[0218] Midpoint generation:

[0219] Horizontal extension along the starting direction:

[0220] P1 = [115 + 185, 200 + 0] = [300, 200]

[0221] Turn to vertical reference extension:

[0222] P2 = [300 + 0, 200 + 185] = [300, 385]

[0223] Final path point sequence:

[0224] Original starting point → Offset starting point → P1 → P2 → Original end point

[0225] Coordinate sequence:

[0226] [100,200] → [115,200] → [300,200] → [300,385] → [300,400] SVG path:

[0227] <path d="

[0228] M 100 200

[0229] L 115 200

[0230] L 300 200

[0231] L 300 385

[0232] L 300 400

[0233] " / >。

[0234] As Figure 4 shown, taking the generation of a four-point path as an example:

[0235] Input parameters:

[0236] Device port coordinates:

[0237] Starting device port coordinates: startPoint = [50, 500]

[0238] Ending device port coordinates: endPoint = [450, 500]

[0239] Direction parameters:

[0240] Starting direction: startDir = right → direction vector [1, 0]

[0241] Ending direction: endDir = right → direction vector [1, 0]

[0242] Safety offset:

[0243] startOffset = endOffset = 15px

[0244] Calculation steps:

[0245] Safety offset calculation:

[0246] Starting point offset:

[0247] offsetStart = [50 + 1 × 15, 500 + 0 × 15] = [65, 500]

[0248] Ending point offset:

[0249] offsetEnd = [450 + 1 × 15, 500 + 0 × 15] = [465, 500]

[0250] Decomposition of reference vector:

[0251] Coordinate difference:

[0252] Δx = 465 - 65 = 400

[0253] Δy = 500 - 500 = 0

[0254] Reference vector:

[0255] H = [400, 0] (horizontal reference)

[0256] V = [0, 0] → Select vertical reference vector [0, 100] (default vertical extension)

[0257] Path type decision:

[0258] Dot product calculation: H_start·H_end = [1, 0]·[1, 0] = 1 > 0 → Select four-point path;

[0259] Midpoint generation:

[0260] Half-length horizontal extension:

[0261] P1 = [65 + 0.5×400, 500 + 0] = [265, 500]

[0262] Turn to vertical reference extension:

[0263] P2 = [265 + 0, 500 + 100] = [265, 600]

[0264] Reverse horizontal extension:

[0265] P3 = [265 + 0.5×400, 600 + 0] = [465, 600]

[0266] Final path point sequence:

[0267] Original starting point → Offset starting point → P1 → P2 → P3 → Original ending point;

[0268] Coordinate sequence:

[0269] [50, 500] → [65, 500] → [265, 500] → [265, 600] → [465, 600] → [450, 500] SVG path:

[0270] <path d="

[0271] M 50 500

[0272] L 65 500

[0273] L 265 500

[0274] L 265 600

[0275] L 465 600

[0276] L 450 500

[0277] " / >。

[0278] The above are only the preferred embodiments of the present invention, and do not constitute any other form of limitation to the present invention. Any modification or equivalent change made according to the technical essence of the present invention still falls within the scope claimed by the present invention.

Claims

1. A system for power configuration graphic connection of orthogonal offset paths based on vectors, characterized in that: The system for vector-based orthogonally offset path power configuration graphic connection is provided with a vector operation module, a path decision module, and an SVG path generation module; the vector operation module implements cross product, dot product, and vector addition and subtraction operations; the path decision module executes vector space orthogonal decomposition and dynamic parameterized path generation technology; the SVG path generation module outputs vector graphic instructions conforming to the W3C standard.

2. Method of a system for power configuration graphic connection of an orthogonal offset path based on vectors, characterized in that: The steps are specifically as follows: Step 1: Define the standard direction vectors. Step 2: Preprocess the received device port coordinates and direction parameters, and calculate the offset start and end points through scalar multiplication of the direction vectors. Step 3: Construct a horizontal reference vector H and a vertical reference vector V. Step 4: Judge the parallelism between the start and end directions and the reference vectors through vector cross product. Step 5: Dynamically select the three-point or four-point path generation mode according to the dot product symbol. Step 6: Generate a connection path conforming to the power drawing specification based on orthogonal vector space operations.

3. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, characterized in that: The definition of the standard direction vectors in Step 1 of the method of the system for vector-based orthogonally offset path power configuration graphic connection is specifically based on four standard direction vectors, namely up, down, left, and right, and their definitions are as follows:

4. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, characterized in that: The preprocessing of the received device port coordinates and direction parameters in Step 2 of the method of the system for vector-based orthogonally offset path power configuration graphic connection is specifically as follows: Parameter parsing: Read the start point coordinates startPoint[x1, y1] of the starting device port; read the end point coordinates endPoint[x2, y2] of the target device port. Direction parameter: Parse the start direction startDirection and the end direction endDirection, and convert them into the corresponding standard direction vectors. startDirection = "top" corresponds to the vector [0, -1]. Offset distance: Obtain the safety margin parameters startOffset, with a default value of 15px; endOffset, with a default value of 15px.

5. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, characterized in that: The calculation of the offset start and end points through scalar multiplication of the direction vectors in Step 2 of the method of the system for vector-based orthogonally offset path power configuration graphic connection is specifically as follows: Offset formula for the start point and end point along the direction vector: offsetStart = startPoint + startDir · startOffset offsetEnd = endPoint + endDir · endOffset Offset of the start point: Multiply the component of the start direction vector by the start offset distance: Offset amount X = x value of the start direction vector × startOffset Offset amount Y = y value of the start direction vector × startOffset Generate new coordinates: Offset start point X = startPoint.x + offset amount X Offset start point Y = startPoint.y + offset amount Y Offset of the end point: Multiply the component of the end direction vector by the end offset distance: Offset amount X = x value of the end direction vector × endOffset Offset amount Y = y value of the end direction vector × endOffset Generate new coordinates: Offset end point X = endPoint.x + offset amount X The offset termination point Y = endPoint.y + offset amount Y.

6. The method of the system for vector-based orthogonally offset path electrical configuration graphic connection according to claim 2, wherein: In step 3 of the method of the system for vector-based orthogonally offset path power configuration graphic connection lines, the construction of the horizontal reference vector H and the vertical reference vector V is specifically as follows: Construct the horizontal reference vector H = [Δx, 0] and the vertical reference vector V = [0, Δy], where Δx = termination point x - start point x, and Δy = termination point y - start point y; Δx = offsetEnd.x - offsetStart.x Δy = offsetEnd.y - offsetStart.y The horizontal reference vector H = [Δx, 0] The vertical reference vector V = [0, Δy] Coordinate difference calculation: Horizontal difference Δx = termination point X coordinate - offset start point X coordinate Vertical difference Δy = termination point Y coordinate - offset start point Y coordinate Reference vector generation: Horizontal reference vector: Only retain the horizontal difference, and the vertical component is 0 → H = [Δx, 0] Vertical reference vector: Only retain the vertical difference, and the horizontal component is 0 → V = [0, Δy].

7. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, characterized in that: In step 4 of the method of the system for vector-based orthogonally offset path power configuration graphic connection lines, the parallelism between the start and end directions and the reference vector is judged by the vector cross product, and the verification is as follows: isParallel(vec1, vec2) if and only if: vec1.x * vec2.y - vec1.y * vec2.x = 0 Calculate the cross product value = start direction vector x × horizontal reference vector y - start direction vector y × horizontal reference vector x. If the cross product value is 0, it is determined that the start direction is parallel to the horizontal reference, and the horizontal reference vector is selected; otherwise, the vertical reference vector is selected.

8. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, characterized in that: In step 5 of the method of the system for vector-based orthogonally offset path power configuration graphic connection lines, the dynamic selection of the three-point or four-point path generation mode according to the dot product symbol is specifically as follows: Path type determination rule: if (H_start · H_end > 0) => Generate a four-point path else => Generate a three-point path where: H_start is the start reference vector; H_end is the termination reference vector; · represents the dot product; Direction consistency calculation: Dot product of the start effective reference vector and the termination effective reference vector = start reference x × termination reference x + start reference y × termination reference y Logical judgment: Dot product result > 0, generate a four-point path Dot product result ≤ 0, generate a three-point path.

9. The method of the system for vector-based orthogonal offset path power configuration graphic connection according to claim 2, wherein: In step 6 of the method of the system for vector-based orthogonally offset path power configuration graphic connection lines, generating a connection path that conforms to the power drawing specification based on orthogonal vector space operations is specifically as follows: Three-point path generation process: P1 = (offsetStart.x + H_start.x, offsetStart.y + H_start.y) P2 = (P1.x + V_end.x, P1.y + V_end.y) Path sequence: startPoint → offsetStart → P1 → P2 → endPoint Extend along the start reference: Middle point 1_X = offset start point X + x component of the start reference vector Middle point 1_Y = Offset start point Y + y component of the start reference vector Steering termination reference extension: Middle point 2_X = Middle point 1_X + x component of the termination reference vector Middle point 2_Y = Middle point 1_Y + y component of the termination reference vector Final path point sequence: [Original start point, Offset start point, Middle point 1, Middle point 2, Original end point] Four-point path generation process: P1 = (offsetStart.x + 0.5 * H_start.x, offsetStart.y + 0.5 * H_start.y) P2 = (P1.x + V_other.x, P1.y + V_other.y) P3 = (P2.x + 0.5 * H_end.x, P2.y + 0.5 * H_end.y) Path sequence: startPoint → offsetStart → P1 → P2 → P3 → endPoint Half-length reference extension: Middle point 1_X = Offset start point X + 0.5 × x component of the start reference vector Middle point 1_Y = Offset start point Y + 0.5 × y component of the start reference vector Vertical direction extension: Middle point 2_X = Middle point 1_X + x component of the vertical reference vector Middle point 2_Y = Middle point 1_Y + y component of the vertical reference vector Reverse reference extension: Middle point 3_X = Middle point 2_X + 0.5 × x component of the termination reference vector Middle point 3_Y = Middle point 2_Y + 0.5 × y component of the termination reference vector Final path point sequence: [Original start point, Offset start point, Middle point 1, Middle point 2, Middle point 3, Original end point].