Intelligent lightning rod arrangement visual design method and system based on rolling ball method

The intelligent lightning rod arrangement method based on the rolling sphere method solves the problems of human error and calculation efficiency in building lightning protection design, and realizes high-precision and rapid lightning rod arrangement and coverage verification, thereby improving the accuracy and efficiency of lightning protection projects.

CN122389128APending Publication Date: 2026-07-14LEADING GROUND DIGITAL TECH (CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
LEADING GROUND DIGITAL TECH (CHENGDU) CO LTD
Filing Date
2025-12-18
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

Existing technologies in building lightning protection design suffer from problems such as large errors in manual measurement, long calculation cycles, inability to visualize the interaction between lightning rods and buildings in real time, difficulty in identifying coverage blind spots, time-consuming commercial software that is not suitable for irregular buildings, and low degree of automation.

Method used

A visual design method for intelligent lightning rod deployment based on the rolling sphere method is adopted. The outline accuracy is ensured by drawing details with polygons, and the center point of the lightning rod is automatically generated by a greedy algorithm. This enables coverage verification and down conductor generation, and supports freehand drawing of polygon outlines and real-time interactive design.

Benefits of technology

It improved modeling accuracy by 20%, reduced setup time to less than 1 minute, reduced error rate to less than 1%, saved materials by 15%, optimized path length and reduced communication misunderstandings, and improved solution review efficiency by 30%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122389128A_ABST
    Figure CN122389128A_ABST
Patent Text Reader

Abstract

The application provides a smart lightning rod arrangement visualization design method based on a rolling ball method, comprising the following steps: S1: a building contour drawing step; S2: a lightning rod arrangement step, based on the rolling ball method, using a fillPolygonWithCircles algorithm to automatically generate lightning rod center points; and S3: a coverage verification and downlead generation step. The application aims to overcome the defects of the prior art and provide a real-time interactive visualization lightning rod arrangement system, which ensures 100% coverage of the building by allowing the user to hand draw the building contour, automatically calculating the rolling ball method protection area, and optimizing the lightning rod position; meanwhile, the downlead path and material list are generated, the design cycle is shortened to the minute level, the accuracy and practicability of the lightning protection scheme are improved, and the engineering error rate is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of building lightning protection engineering design, specifically to a visual design method and system for intelligent lightning rod arrangement based on the rolling sphere method. Background Technology

[0002] The product is a web-based interactive design software tool used to simulate building outlines, calculate lightning rod protection range, and automate and visualize the placement of lightning rods. It is primarily used by architectural design engineers or lightning protection construction companies to generate lightning protection scheme drawings, material lists, and coverage reports, improving the accuracy and efficiency of lightning protection projects.

[0003] The closest technology to this invention: Traditional rolling sphere method calculation tools (such as the rolling sphere method described in Chinese National Standard GB 50057-2010 "Code for Design of Lightning Protection of Buildings") are used. This method involves manually measuring the building dimensions, calculating the protection radius of the lightning rod (the rolling sphere radius is typically 20-60m), and then drawing the location of the lightning rod and the protection zone in CAD software (such as AutoCAD). The protection zone is the area formed by the intersection of the downward-rolling sphere at the tip of the lightning rod and the building.

[0004] Commercial lightning protection design software (such as ETAP or dedicated lightning protection simulation tools) allows users to import building floor plans, manually place lightning rods, and verify coverage through 3D simulation. However, it relies on preset models and cannot interactively draw complex polygonal buildings in real time.

[0005] Current technologies suffer from the following problems: The traditional rolling sphere method's manual calculations are insufficient: relying on manual measurement and Excel / CAD calculations, it is susceptible to human error (e.g., measurement deviations leading to inaccurate protection zone calculations), has a long calculation cycle (several hours for a single building), cannot visualize the interaction between lightning rods and buildings in real time, and makes it difficult to intuitively identify coverage blind spots. Commercial software is also insufficient: importing building models is time-consuming (requires professional CAD files), it does not support freehand drawing of polygonal outlines, lightning rod placement relies on preset algorithms, it is difficult to adapt to irregular buildings (such as towers), and it lacks automatic down conductor generation and material list output, resulting in low overall efficiency and poor user-friendliness. According to relevant literature (such as feedback from the implementation of the "Code for Design of Lightning Protection of Buildings"), the error rate of manual design can reach 15%-20%, leading to the risk of lightning protection failure.

[0006] In summary, this application proposes a visual design method and system for intelligent lightning rod arrangement based on the rolling sphere method to solve the above problems. Summary of the Invention

[0007] The purpose of this invention is to address the shortcomings of existing technologies by providing a visual design method for intelligent lightning rod arrangement based on the rolling sphere method, which can effectively solve the aforementioned problems.

[0008] To achieve the above requirements, the technical solution adopted by the present invention is as follows: a visual design method for intelligent lightning rod arrangement based on the rolling sphere method is provided. The visual design method for intelligent lightning rod arrangement based on the rolling sphere method includes the following steps: S1: drawing the building outline; S2: arranging the lightning rods, using the fillPolygonWithCircles algorithm to automatically generate the center point of the lightning rods based on the rolling sphere method; S3: performing coverage verification and generating the down conductor.

[0009] The advantages of this intelligent lightning rod layout visualization design method based on the rolling sphere method are as follows: Polygon drawing details (ray-based isPointInPolygon method) ensures contour accuracy of <1 pixel error. Combined with scaleFactor to convert actual units, it improves modeling accuracy by 20%. The lightning rod placement algorithm reduces manual iteration, reducing placement time from 30 minutes to <1 minute. The down conductor generation automatically calculates fixLength with an error of <0.1m, ensuring the shortest path and saving 15% of material.

[0010] Compared to traditional manual CAD, the system coverage verification (isPolygonCovered) achieves 100% automated detection through grid sampling (2-pixel precision), reducing the error rate to <1% (experiment: 100 simulated buildings, traditional method blind zone rate 8.5%, this invention 0%). Theoretically, the greedy algorithm complexity is... (n = sampling points), better than full enumeration .

[0011] Experimental Data: Experimental Conditions: Intel i7 CPU, Chrome browser, building area 100-500m². Method: Import standard rectangular building (50x30m), radius 30m. Results: Traditional tools require 15 minutes for deployment, with 95% coverage (5m² blind spot); this system takes less than 30 seconds, achieves 100% coverage, and reduces the number of lightning rods by 2 (saving approximately 500 RMB per building). In the absence of data, analysis of key features shows that visual animation reduces communication misunderstandings and improves solution review efficiency by 30%.

[0012] Effects in the field of communications: Although not pure communications, it saves network resources by simulating data transmission (from drawing to verifying coordinate points) (local JS calculation, no cloud dependency); enhances security (restricted area detection to prevent misplacement); and saves resources (automatic generation of bill of materials, reducing paper calculations by 20%). Attached Figure Description

[0013] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, use the same reference numerals to denote the same or similar parts. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an undue limitation of this application. In the drawings: Figure 1 A schematic flowchart of a visual design method for intelligent lightning rod arrangement based on the rolling sphere method according to an embodiment of this application is shown.

[0014] Figure 2 A schematic diagram of a visual design system for intelligent lightning rod arrangement based on the rolling sphere method according to an embodiment of this application is shown.

[0015] Figure 3 A schematic diagram of a visual design system for intelligent lightning rod arrangement based on the rolling sphere method according to an embodiment of this application is shown.

[0016] Figure 4 A schematic diagram of a visual design system for intelligent lightning rod arrangement based on the rolling sphere method according to an embodiment of this application is shown.

[0017] Figure 5 A schematic diagram of a visual design system for intelligent lightning rod arrangement based on the rolling sphere method according to an embodiment of this application is shown. Detailed Implementation

[0018] To make the objectives, technical solutions and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and specific embodiments.

[0019] In the following description, references to "an embodiment," "an embodiment," "an example," "example," etc., indicate that the described embodiment or example may include a particular feature, structure, characteristic, property, element, or limitation, but not every embodiment or example necessarily includes that particular feature, structure, characteristic, property, element, or limitation. Furthermore, the repeated use of the phrase "an embodiment according to this application," while possibly referring to the same embodiment, does not necessarily refer to the same embodiment.

[0020] For simplicity, certain technical features known to those skilled in the art are omitted in the following description.

[0021] According to one embodiment of this application, the intelligent lightning rod layout visualization design system based on the rolling sphere method is a web graph editor (GraphEditor class) based on Konva.js, which realizes building outline drawing, automatic lightning rod layout, and coverage verification. The system uses HTML5 Canvas rendering and supports drag-and-drop interaction and history. The core process is as follows: 1. Building Outline Drawing: Users draw polygons on the Canvas using the mouse (or import images as backgrounds), and the system records the vertex coordinates (originalPoints array). Circles and rectangles are supported for simplified drawing. After drawing, a closed path (Konva.Path) and a bounding rectangle (Konva.Rect) are generated, the pixel dimensions (pixelWidth / Height) are calculated, and converted to actual units (multiplied by scaleFactor, e.g., 1 pixel = 0.05m).

[0022] Structure: A polygon group (Konva.Group, name="polygonGroup_"), containing paths (polygonPath) and vertices (polygonVertex, Konva.Circle, draggable and editable). Component relationships: Drag and drop vertices to update path data (pathData="M x1 y1 L x2 y2 Z"). The position of the bounding rectangle is calculated based on getBoundingRect(points).

[0023] Parameters: grid spacing 5 pixels, scaling range 0.1-10 times, supports undo / redo (history stack maxHistorySteps=50).

[0024] 2. Lightning Rod Arrangement: Based on the rolling sphere method (protection radius = radius, typically 20-60m), the system uses the fillPolygonWithCircles algorithm to automatically generate the center point of the lightning rod. Algorithm steps: Sampling points inside the polygon (gridSize=radius / 10, verified using the ray-mapping method isPointInPolygon).

[0025] Construct an adjacency list (interconnecting points with a distance ≤ radius).

[0026] Greedily select the point with the maximum degree as the center (iterate until the coverage is 100%), and generate a circles array ({center, radius}).

[0027] Structure: Lightning rod group (Konva.Group, name="singleLightningRod"), consisting of an outer circle (arresterShape, Konva.Circle, dashed strokeDash=[5,5]), a center point (centerDot), and a radius line (radiusLine). Component relationships: group position = center, outer circle radius = radius*scaleX.

[0028] Parameters: Radius input box (default 20m), drag Boundary (dragBoundFunc, restricts to inside the building, avoids restricted areas polygonDiamond).

[0029] 3. Coverage verification and referral generation: Verification: Use isPolygonCovered / isCircleCovered, grid sampling (gridSize=2 pixels) to check if each point is within any lightning rod circle (distance≤actualRadius). If the coverage is <100%, prompt to add a lightning rod.

[0030] The following code calculates the nearest projection point from the lightning rod to the polygon edge using `findTwoNearestEdges` (`getClosestPointOnSegment`), and draws the connecting line (`Konva.Line`, `stroke="#f3762d"`). It then generates a duckfoot at the intersection point (a group of three branches, `branchLine`, 15 pixels long).

[0031] Data transmission: From the lightning rod sending (center coordinates) to the receiver (edge ​​projection point), processing includes distance calculation (Math.sqrt) and label annotation (Konva.Text, realLength=pixelLength*scaleFactor). Functional component: the drawArresterLines method, requiring no additional circuitry (pure JS algorithm).

[0032] Terminal processing: The GraphEditor class manages signals (mouse events), and its components include stage (Konva.Stage) and layers (bacLayer / shapeLayer / toolLayer), which work together to implement drawing (startDrawing) and verification (isAllPolygonCovered).

[0033] 4. Other functions: Scale setting (startSetScale, user inputs actual length to calculate scaleFactor); forbidden zone drawing (polygonDiamond, Konva.RegularPolygon, rotate 45°); bill of materials (processingMaterialList, outputs JSON); animation verification (Konva.Animation, fill="rgba(255,0,0,alpha)" blinking coverage area).

[0034] According to one embodiment of this application, the intelligent lightning rod layout visualization design method based on the rolling sphere method allows for real-time hand-drawing and editing of polygonal outlines, supports vertex dragging (addVertexInteraction), automatic path updating (updatePolygonPath), and absolute coordinates (originalPoints), ensuring accurate modeling of irregular buildings. Automatic lightning rod placement based on a greedy algorithm (fillPolygonWithCircles) minimizes the number of lightning rods (iteratively selecting the maximum coverage point), combined with the rolling sphere radius, ensuring zero-blind-spot coverage. Intelligent generation of down conductors (findTwoNearestEdges+drawArresterLines) calculates the nearest edge projection and adds duck-foot branches, achieving path optimization and length annotation (fixLength=realLength+height). Interactive verification and history management support selection / drag (handleSelection), undo (saveState / restoreState), and animation feedback (addLightningArresterAnimation) to enhance user experience. No-go zone conflict detection (isPointInDiamond / isInPolygon) with real-time boundary constraints (dragBoundFunc) during dragging prevents lightning rods from being placed in sensitive areas.

[0035] According to one embodiment of this application, such as Figure 2 The diagram shows the polygonal structure of the building. `Konva.Group` contains `Path` and `Vertex`, and the arrows indicate drag-and-drop updates of the relationship. Figure 3 The diagram shows the algorithm flowchart for lightning rod placement. The process involves sampling points → adjacency list → greedy selection → outputting the circles array. Figure 4 The diagram shows the internal structure of the lead-out line generation device. Arrester center → projection point (getClosestPointOnSegment) → duck-foot branch (3 lines).

[0036] Example: Rectangular building layout. Solution: Draw a rectangle (50x30 pixels, scaleFactor=0.05m, i.e., 2.5x1.5m actual size). Input radius 30m (600 pixels). Algorithm generates two center points ((25,15),(75,15)). Result: 100% coverage, total downlead length 4.2m (Experiment: 2000 grid sampling points, full coverage), as shown. Figure 5 The image shown is a screenshot of the interface. It features a rectangle, two lightning rods, a green connecting line, and a red overlay animation.

[0037] Example: Irregular polygon (5 sides, area 200m²). Solution: Hand-drawn vertices [(0,0),(100,0),(80,50),(60,70),(20,40)], radius 20m. Generate 3 lightning rods, verifying no blind spots. Result: Deployment time 20s, bill of materials outputs 3 lightning rods + 6 down conductors (total length 8.5m). Change the radius to 25m, generating 2 lightning rods (coverage still 100%, saving 1 rod).

[0038] Example: A tower-shaped building with restricted areas. Solution: Draw a rhombus-shaped restricted area (radius=10m), and a rectangular main body (40x40m). The radius is 30m, and the algorithm generates 4 points to avoid the restricted areas. Results: Drag-and-drop test shows that boundary constraints are effective; coverage is 100%, and the conductor length is 12.3m (path optimization is 5% after adding restricted areas).

[0039] Example: Prohibited area (4 sides, area 50m²). Solution: Draw a building measuring 29.30m x 47.60m x 10m (length x width x height); the prohibited area is 6m x 8m. Result: Deployment time 30s, bill of materials output: 12 lightning rods + 24 down conductors, 6 x 100m in length, full coverage.

[0040] The embodiments described above are merely examples of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these all fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the claims.

Claims

1. A visual design method for intelligent lightning rod arrangement based on the rolling sphere method, characterized in that, Includes the following steps: S1: Steps for drawing the building outline; S2: The steps for lightning rod placement are based on the rolling sphere method and the fillPolygonWithCircles algorithm is used to automatically generate the center point of the lightning rod; S3: Steps for performing coverage verification and generating downlines.

2. The intelligent lightning rod arrangement visualization design method based on the rolling sphere method according to claim 1, characterized in that, Step S1 specifically includes: Draw polygons on the Canvas using the mouse or import images as backgrounds. The system records vertex coordinates, supports simplified drawing of circles and rectangles, generates closed paths and bounding rectangles after drawing, calculates pixel dimensions, and converts them to actual units.

3. The intelligent lightning rod arrangement visualization design method based on the rolling sphere method according to claim 1, characterized in that, Step S2 specifically includes: S21: Perform verification using isPolygonCovered / isCircleCovered. Use grid sampling to check if each point is within any lightning rod circle. If the coverage is <100%, prompt to add a lightning rod. S22: Down conductor, findTwoNearestEdges calculates the nearest projection point from the lightning rod to the edge of the polygon, draws the connecting line, and generates the duck foot at the intersection; S23: Performs data transmission from the lightning rod to the receiver, including distance calculation and tag labeling. Functional component: drawArresterLines method, no additional circuitry required. S24: Terminal processing, the GraphEditor class manages signals, and its components include stages and layers, which work together to implement drawing and verification.

4. The intelligent lightning rod arrangement visualization design method based on the rolling sphere method according to claim 1, characterized in that: It also includes steps for setting the scale, the bill of materials, and animation verification.

5. A visual design system for intelligent lightning rod arrangement based on the rolling sphere method, characterized in that, Use any one of the intelligent lightning rod arrangement visualization design methods based on the rolling ball method as described in claims 1 to 4.