Skip to Content
  • Article
  • Open Access

24 November 2026

24 Pages

Robotic Trajectory Planning for Spray Painting of Large-Scale Ship Hulls

,
,
,
and
1
School of Automation, Southeast University, Nanjing 210096, China
2
Jiangsu Automation Research Institute, Lianyungang 222006, China
*
Author to whom correspondence should be addressed.
This article belongs to the Section Ocean Engineering

Abstract

Shipbuilding demands robotic painting solutions for efficiency and coating quality, yet offline programming systems struggle with large-scale, variable-curvature hull surfaces. This paper presents a trajectory planning framework to address this challenge. A fast topology reconstruction algorithm is developed using a half-edge data structure, where hash-table-based redundant vertex removal and an incident half-edge index table accelerate half-edge merging. Geometric features—facet normals, areas, and dihedral angles—are extracted for region segmentation. An enhanced region-growing method employing dual dihedral-angle criteria (local adjacency and global region-wide constraints) partitions the hull into curvature-reduced sub-regions. Trajectory generation adopts a curvature-adaptive strategy: slicing-plane intersection for near-flat regions and geodesic-based benchmark curve generation for highly curved areas, with half-edge topology accelerating intersection computation via neighborhood propagation. Simulations on a 12-million-facet ship hull model demonstrate that the framework achieves topology reconstruction in 58 s, partitions the hull into six curvature-reduced sub-regions with maximum dihedral angles within 9.36° (adjacent) and 65.39° (overall), and yields 100% spraying coverage with coating thickness standard deviations ranging from 0.95 to 1.69 μm. These results confirm the framework’s feasibility and engineering applicability for automated ship hull painting.

1. Introduction

With growing global awareness of environmental protection and occupational health, the automation and intellectualization of ship spraying operations have become a strategic priority in the shipbuilding industry. Spray painting of large-scale ship hulls directly affects corrosion resistance, service life, and overall vessel quality. Currently, hull painting primarily relies on manual teach programming and offline programming (OLP). Manual teach programming depends heavily on operator experience, resulting in low efficiency, long cycle times, and—more critically—significant safety hazards due to high-altitude operations [1]. As illustrated in Figure 1, the exterior surface of a large-scale ship hull presents vast areas and complex curvatures, posing substantial challenges for uniform paint application and efficient robotic trajectory planning.
Figure 1. Overview of a large-scale ship hull in dry dock, illustrating the large-area, variable-curvature surface typical for spray painting operations.
Offline programming technology offers a promising alternative by enabling trajectory planning and process optimization in a virtual environment without interrupting production [2]. However, for large-scale ship hull models comprising millions of triangular facets, existing OLP systems generally suffer from low computational efficiency. Moreover, the commonly adopted slicing method is suitable only for approximately planar regions; when directly applied to high-curvature areas such as the bow and stern, it leads to significant deterioration in coating thickness uniformity.
Extensive research has been conducted in the field of ship spraying robotics. Park and Choi proposed a dedicated path planning method for wall-climbing robots that accounts for the complex curvature distribution of ship hulls. Wang investigated spray painting path planning for ship blocks using a multi-region joint strategy based on the MOGWO algorithm. In terms of trajectory planning algorithms, Guo et al. [3] employed an improved NSGA-III for multi-objective optimization of spraying trajectories in ship cabins. Wang et al. [4] applied the Archimedes optimization algorithm to painting robot path optimization. Zi et al. [5] provided a systematic review of programming methods and teleoperation technologies for intelligent spraying robots. For large-scale curved surface spraying, relevant studies have explored UAV-based path planning using multi-objective particle swarm optimization and ant colony algorithms [6]. Coating thickness modeling for very large planar surfaces has considered the influence of spray gun acceleration on coating uniformity [7]. For regular ship block surfaces, path planning based on the Grey Wolf Optimizer has achieved full coverage and controlled film thickness uniformity [8]. Additionally, foreign research has explored the application of collaborative robots (Cobots) in spraying operations.
Despite these advances, critical gaps remain. First, for large-scale ship mesh models with millions of triangular facets, efficient topology reconstruction and geometric feature extraction methods are lacking, leading to excessive computational burden in subsequent trajectory planning [9]. Second, most existing region segmentation algorithms consider only local curvature between adjacent facets and fail to address cumulative curvature exceeding limits among non-adjacent facets [10]. Third, for large, complex curved surfaces with variable curvature, there is a lack of adaptive trajectory generation strategies that balance computational efficiency and spraying quality [11].
To address these gaps, this paper presents a systematic study on trajectory planning for spraying robots applied to large-scale ship hulls. The main contributions are threefold: (1) a fast preprocessing method for large-scale ship mesh models based on the half-edge data structure, enabling efficient topology reconstruction for models with millions of facets; (2) an enhanced region-growing algorithm that considers both local and overall curvature, effectively overcoming the cumulative curvature limitation of traditional methods; and (3) a curvature-adaptive trajectory generation strategy that applies slicing-based and benchmark curve-based algorithms to sub-regions with different curvature characteristics, with half-edge topology accelerating intersection computation. Simulation experiments on a large-scale ship model verify the topology reconstruction efficiency, region segmentation effectiveness, and spraying quality of the proposed framework, demonstrating 100% coverage and coating thickness uniformity meeting industrial requirements.
To clearly distinguish our novel contributions from established techniques, the specific innovations of this work are highlighted as follows:
(1) Topology Reconstruction: While the half-edge structure and hash tables are established, we propose a novel incident half-edge index table. This original data structure avoids the global O(N2) traversal during twin half-edge merging, practically enabling near O(N) complexity for million-facet models.
(2) Region Segmentation: Unlike traditional region-growing algorithms that only consider local adjacent-facet curvature, we develop a dual-criteria (local and overall curvature) growth algorithm. This is a novel modification that mathematically prevents the cumulative curvature issue and ensures the planarity of the generated sub-regions.
(3) Trajectory Generation: The application of the Gauss–Bonnet theorem is not merely a theoretical citation, but is specifically adapted to discrete triangular meshes. We utilize it to derive a novel criterion for selecting the benchmark curve’s position, ensuring that the offset paths minimize geodesic curvature.

2. Materials and Methods: Import and Processing Acceleration for Large-Scale Ship Spraying Scenarios

2.1. Optimization Design of Storage Structure for Ship Hull Models

The ship hull surface is discretely represented using triangular meshes in the STL format. The original STL model stores only unordered triangular facets, with vertices being repeatedly recorded. It lacks topological adjacency relationships among points, edges, and facets, resulting in significant data redundancy [12]. To address the issues of low query efficiency and high storage consumption of traditional data structures when processing large-scale ship hull models with millions of triangular facets, this paper adopts the half-edge data structure and proposes a topology reconstruction algorithm based on a hash table and an incident half-edge index table. This method establishes complete topological adjacency relationships while effectively improving neighborhood query efficiency, thereby significantly accelerating subsequent computational processes such as region growing and surface intersection. The half-edge structure decomposes each edge into two directed half-edges with opposite directions, explicitly storing the adjacency relationships among vertices, facets, and neighboring half-edges. It provides fast neighborhood information retrieval for the aforementioned computations.
The main time consumption of the above topology reconstruction algorithm is concentrated in the vertex search and half-edge merging stages. This paper accelerates the process from the following two aspects.

2.1.1. Redundant Vertex Removal Based on Hash Table

To remove duplicate vertices recorded in the STL file, a hash index is established using vertex coordinates as keys. The hash function adopts the division method, with the table length set according to Equation (1) and the modulus m chosen as the nearest prime number to the table length. Collision resolution is implemented using the chaining method. To enable efficient searching within each bucket, the vertex records are stored in a dynamically allocated sorted array rather than a standard unordered linked list. This allows both insertion and search operations to employ a binary search strategy, achieving an average time complexity of O(log K) per bucket (where K is the number of elements in the bucket), thereby improving algorithm efficiency.
len = N vertex ′ 6 + 2
where Nvertex’ is the number of vertices recorded in the STL file, and len is the length of the hash table.
The criterion for identifying redundant vertices is identical key values and strictly equal coordinates. The algorithm procedure is as follows:
(1) Read a triangular facet, calculate the key values and hash addresses for its three vertices;
(2) Perform a binary search in the corresponding sorted array; if both the key and coordinates match, the vertex is identified as redundant and directly mapped to the existing index; otherwise, insert the new vertex and assign a global index;
(3) Record the vertex index until all triangular facets are processed.
This strategy compresses the vertex storage of the STL model to its theoretical lower bound and establishes a fast vertex–half-edge mapping for subsequent half-edge merging.

2.1.2. Half-Edge Merging Based on Incident Half-Edge Index Table

After vertex deduplication, twin associations need to be established for the two directed half-edges belonging to the same geometric edge. In the original STL format, querying twin half-edges requires traversing the half-edge table, which is time-consuming. This paper establishes an incident half-edge index table for each vertex, storing all unpaired half-edges that terminate at that vertex in a linked list. During half-edge merging, only the incident half-edge table corresponding to the start point needs to be queried to find the half-edge with the same end point, enabling pairing and deletion with reduced query time.
The half-edge merging process is illustrated in Figure 2. The core steps of the algorithm are as follows: read the three half-edges of a triangular facet; for each half-edge, use its start point as the key to search the incident half-edge table for an unpaired half-edge whose start point matches the current half-edge’s end point; if found, pair them as twins and delete the matched half-edge; otherwise, insert the current half-edge into the incident half-edge table corresponding to its end point. Repeat the above process until all triangular facets are processed. This strategy avoids global traversal of the half-edge table and effectively improves the efficiency of the half-edge merging stage.
Figure 2. Illustration of the twin half-edge merging process. Black arrows represent half-edges, and the rectangular boxes denote the incident half-edge lists. The dashed box highlights the half-edge being merged and removed, while the solid boxes show the updated lists after the insertion of new facets.

2.1.3. Algorithmic Complexity Analysis

To theoretically demonstrate the efficiency of the proposed framework, the time complexity of the main procedures is analyzed as follows:
(1) Redundant vertex removal: The hash table achieves average O(1) time complexity for insertions and searches. Although a binary search within a bucket takes O(log K) time (where K is the bucket size), the uniform hash distribution ensures K remains a small constant. Therefore, processing all Nv vertices in the STL model yields an overall time complexity of O(Nv).
(2) Half-edge merging: By utilizing the incident half-edge index table, the search for a twin half-edge is restricted to a local list. Thus, the complexity of merging all half-edges Nh is reduced from O ( N h 2 )  (for the direct global traversal method) to near O(Nh).
(3) Region segmentation: The region growing process visits each facet a constant number of times via the half-edge neighborhood. The overall time complexity for segmenting the mesh is O(NflogNf) f, primarily dominated by sorting the candidate facets by area to select seed facets (where Nf is the number of facets).
(4) Intersection calculation: The intersection algorithm traces the intersection line by inheriting the intersection point from the neighboring facet. Each intersecting facet is processed exactly once, yielding a time complexity of O(Ni), where Ni is the number of intersecting facets.
In summary, the overall complexity of the proposed framework is approximately linear with respect to the model size, which theoretically explains the significant time reduction observed in the empirical results (Table 1).
Table 1. Efficiency comparison between the proposed algorithm and other algorithms.

2.2. Extraction of Geometric Features for Ship Hull Models

Based on the half-edge topology reconstructed in the previous section, this paper further extracts geometric features from the triangular mesh model to provide inputs for subsequent region segmentation and trajectory planning. The extracted features include: facet normals, facet areas, vertex normals, and dihedral angles between adjacent facets. The half-edge structure supports constant-time neighborhood access for the above features, enabling feature extraction to be completed in a single mesh traversal.
The definitions of each feature are as follows:
(1) Facet normal and area: For an arbitrary triangular facet Tj, its normal vector nj is calculated by the cross product of its two edges:
n j = ( V i − V j ) × ( V i − V j + 1 ) ( V i − V j ) × ( V i − V j + 1 )
The area Sj of facet Tj is calculated using Heron’s formula:
S j = l ( l − a ) ( l − b ) ( l − c )
where a, b, c are the side lengths of the triangular facet, and l = (a + b + c)/2 is the semi-perimeter.
(2) Surface average normal vector: The surface average normal vector n is the area-weighted average of all facet normals within the surface:
n = ∑ j = 1 m S j n j ∑ j = 1 m S j / ∑ j = 1 m S j n j ∑ j = 1 m S j
where m is the total number of triangular facets contained in the surface.
(3) Dihedral angle: The dihedral angle α between adjacent facets T1 and T2 is calculated by the dot product of their normal vectors, and its magnitude characterizes the degree of curvature at their common edge:
α = arccos ( n 1 ⋅ n 2 )
All the above features are obtained by directly accessing neighborhood information through the half-edge structure, avoiding global search and laying the foundation for fast region segmentation on large-scale meshes.

3. Materials and Methods: Trajectory Generation and Optimization for Spray Painting Robots Based on Large-Scale Ship Hulls

The curvature of large-scale ship hulls varies significantly across different areas, and the spraying process requirements differ from region to region, making overall trajectory planning infeasible. This paper proposes a segmented spraying strategy: first, initial region segmentation is performed according to process requirements; then, re-segmentation is carried out based on geometric features to generate several sub-regions with small areas, low curvature, and consistent process requirements; finally, spraying trajectories are planned independently for each sub-region.

3.1. Initial Regional Segmentation Based on Ship Spray Painting Process Requirements

The ship hull is divided by the waterline into the bottom area and the topside area. These two regions have different corrosion environments and thus require different types of coatings—the bottom area demands seawater resistance and antifouling properties, while the topside area requires weather resistance and impact resistance. Therefore, the spraying operation must first partition the hull into these two major regions according to process requirements, laying the foundation for subsequent partitioned spraying with different coatings.

3.2. Secondary Region Segmentation Based on Geometric Characteristics of the Ship Hull

The coating accumulation rate model adopted in this paper exhibits significant errors in high-curvature areas. Therefore, re-segmentation is required for high-curvature parts such as the bow and stern to generate several sub-regions with smaller curvature, ensuring trajectory accuracy.
The degree of surface curvature needs to be measured from both local and overall dimensions. Excessive local curvature is manifested by the dihedral angle between adjacent facets exceeding a threshold, while excessive overall curvature is manifested by the cumulative curvature between non-adjacent facets exceeding a limit. Traditional region growing methods only use the dihedral angle between adjacent facets as a criterion [13] and cannot address the latter issue.
To address the above problem, this paper proposes an improved half-edge growing algorithm based on dihedral angles, which controls region growth using two criteria:
(1) Local curvature criterion: The dihedral angle between the candidate facet and its adjacent facet satisfies α1 < α1max;
(2) Overall curvature criterion: The angle between the normal vectors of the candidate facet and any facet within the current region (hereafter referred to as the facet-normal angle) satisfies α2 < α2max.
Here, α1max is determined by the allowable error of film thickness, while α2max is selected based on surface characteristics and the trajectory planning algorithm. Specifically, α1max = 15° is chosen empirically based on the allowable thickness error of the Gaussian sum coating model to prevent trajectory spacing variations from exceeding industrial tolerances. α2max = 80° is determined geometrically to ensure that the cumulative curvature of any two facets within a region remains within the valid range for approximate planar slicing, preventing intersection of offset paths.
Leveraging the neighborhood query capability of the half-edge structure, the algorithm achieves efficient growth. The specific steps are as follows:
Step 1: Set the thresholds α1max and α2max, and initialize a region boundary array.
Step 2: Traverse the remaining facets, select the facet with the largest area as the seed facet Tbase to construct a new region Si. Create a growing half-edge array and add the three half-edges of Tbase to it.
Step 3: Take the first half-edge H1 from the growing boundary array, find its neighboring facet Ti via the half-edge structure, and check whether it satisfies:
(1) The dihedral angle between the candidate facet and its adjacent facet satisfies facet α1 < α1max;
(2) The angle between the normal vectors of the candidate facet and all facets in the current region satisfies α2 < α2max.
If satisfied, add Ti to region Si and update the growing half-edge array; otherwise, mark H1 as a boundary half-edge and remove it from the growing array.
Step 4: Repeat Step 3 until the growing half-edge array is empty, indicating that the region growth is complete.
Step 5: If there are still unpartitioned facets in the model, return to Step 2 to start a new region; otherwise, the algorithm terminates.
This algorithm considers both local and overall curvature of the surface, resulting in sub-regions with relatively low curvature, which lays the foundation for subsequent accurate trajectory planning.

3.3. Spraying Trajectory Generation Algorithms

3.3.1. Slicing Trajectory Generation Algorithm

For the approximately planar sub-regions obtained from the segmentation in the previous section, this paper adopts the slicing method to generate spraying trajectories. This method obtains intersection curves by intersecting a set of parallel planes with the surface and forms the spray gun path through sampling and connection. The position and orientation of the cutting planes determine the direction and spacing of the trajectories.
The slicing generation adopts the bounding box method, and the specific steps are as follows:
Step 1: Construct the minimum bounding box. The surface to be sprayed is projected onto a coordinate plane, and a minimum bounding box that encloses the entire surface is established, along with its corresponding coordinate system.
Step 2: Generate slicing planes. To minimize the number of path turns, the side containing the short edge of the bounding box is selected as the reference plane, and a set of parallel planes is generated. The smaller the slicing interval, the higher the trajectory accuracy.
Step 3: Generate the path. The intersection lines are obtained by intersecting the slicing planes with the surface. Sampling points are uniformly spaced along these intersection lines according to the spraying spacing d. Finally, the sampling points are connected in the direction perpendicular to the reference plane to form a complete spraying path.

3.3.2. Trajectory Generation Algorithm Based on Reference Curves

For surfaces with significant curvature, this paper adopts a trajectory generation algorithm based on geodesics. The algorithm first selects a benchmark curve, and then generates spraying paths covering the entire surface through equidistant offsetting. The selection of the benchmark curve directly affects the spraying quality and operation time. To ensure uniform coating thickness, a geodesic with zero geodesic curvature is typically chosen as the benchmark curve. Since multiple geodesics exist on the surface, comprehensive optimization is required from both position and orientation perspectives.
(1)
Position Selection
Using a geodesic as the benchmark does not guarantee that the offset paths will also be geodesics. Curvature variations on the surface may cause the offset paths to exhibit excessive geodesic curvature, potentially leading to path intersections and resulting in uneven coating thickness. Therefore, it is necessary to determine the appropriate position of the benchmark curve by analyzing the geometric relationship between the benchmark curve and the offset curves.
The benchmark curve is discretized into several curve segments, and the offset path is assumed to be formed by connecting the offset of each segment. As shown in Figure 3, take a benchmark curve segment Cbase with endpoints P11 and P12. Construct geodesics r1 and r2 passing through the endpoints and perpendicular to Cbase. After offsetting by a certain distance, the offset curve segment Cdev is obtained, with endpoints P21 and P22. Cre is a smooth curve connecting P12 and P21.
Figure 3. Reference curve and offset curve.
Suppose ϕ1 denotes the region enclosed by curves r1, Cre, and Cbase, and ϕ2 denotes the region enclosed by r2, Cre, and Cdev. Applying the local Gauss–Bonnet theorem [14] to regions ϕ1 and ϕ2:
∫ ϕ 1 K ϕ 1 + ∫ ∂ ϕ 1 k g ϕ 1 + ∑ i = 1 3 ( π − θ i ) = 2 π
∫ ϕ 2 K ϕ 2 + ∫ ∂ ϕ 2 k g ϕ 2 + ∑ i = 4 6 ( π − θ i ) = 2 π
where Kϕ1 and Kϕ2 denote the Gaussian curvatures of regions ϕ1 and ϕ2, respectively; ∂ϕ1 and ∂ϕ2 represent the boundaries of regions ϕ1 and ϕ2; and θ1 to θ6 refer to the corresponding interior angles.
Adding Equations (6) and (7) yields:
∫ ϕ 1 K ϕ 1 + ∫ ∂ ϕ 1 k g ϕ 1 + ∫ ϕ 2 K ϕ 2 + ∫ ∂ ϕ 2 k g ϕ 2 = ∑ i = 1 6 θ i − 2 π
Since r1 and r2 are both orthogonal to the reference curve Cbase, and given that the geodesics perpendicular to the reference curve are also orthogonal to the offset curves, it follows that:
θ 2 = θ 6 = θ 1 + θ 3 = θ 4 + θ 5 = π 2
Since ∂ϕ1 and ∂ϕ2 are the boundaries of regions ϕ1 and ϕ2 respectively, ∫ ∂ ϕ 1 k g ϕ 1 and ∫ ∂ ϕ 2 k g ϕ 2 can be expressed as:
∫ ∂ ϕ 1 k g ϕ 1 = ∫ Cbase kg 1 − ∫ r 1 kg 2 − ∫ Cre kg 4
∫ ∂ ϕ 2 k g ϕ 2 = ∫ Cre kg 4 + ∫ r 2 kg 3 − ∫ Cdev kg 5
where kg1 to kg5 represent the geodesic curvatures of Cbase, r1, r2, Cre, and Cdev, respectively. Given that Cbase, r1, and r2 are all geodesics, it follows that:
k g 1 = k g 2 = k g 3 = 0
Substituting Equations (9)–(12) into Equation (8) yields:
∫ ϕ 1 K ϕ 1 + ∫ ϕ 2 K ϕ 2 = π − ( ∫ Cbase kg 1 − ∫ r 1 kg 2 − ∫ Cre kg 4 ) − ( ∫ Cre kg 4 + ∫ r 2 kg 3 − ∫ Cdev kg 5 ) = ∫ Cdev kg 5
Assuming ϕ = ϕ1 + ϕ2, where K denotes the Gaussian curvature of ϕ, it is evident that:
∫ ϕ 1 K ϕ 1 + ∫ ϕ 2 K ϕ 2 = ∫ ϕ K ϕ
Substituting Equation (14) into Equation (13) yields:
∫ ϕ K ϕ = ∫ Cdev kg 5
Equation (15) indicates that: (1) when the Gaussian curvature of ϕ is constant, a larger area of ϕ results in a larger geodesic curvature kg5 of the offset curve; (2) the larger the Gaussian curvature of ϕ, the larger kg5. For surfaces with zero Gaussian curvature, the offset curves remain geodesics. Therefore, boundary paths have the highest possibility of intersecting with other paths. If the surface is divided into two parts with equal Gaussian curvature integrals, the geodesic curvatures of the two boundary paths are both half of the surface’s Gaussian curvature, and neither will be excessively large.
In summary, the benchmark curve should be selected at a position that divides the surface into two regions with equal Gaussian curvature integrals.
(2)
Selection of Direction
Multiple geodesics satisfy the above condition, and this paper selects the optimal one with the goal of minimizing spraying time. The total spraying time consists of painting time and turning time. At turns, the robot needs to decelerate and accelerate, resulting in additional time consumption. Therefore, the benchmark curve that minimizes the number of path turns should be selected.
The surface altitude is defined as the sum of the lengths of the longest geodesics C1 and C2 perpendicular to the benchmark curve on both sides [15]. The larger the altitude, the greater the number of path strokes and the more turns required. Therefore, the benchmark curve with the smallest altitude should be selected.
While the intersection curve between a plane and a general curved surface is not strictly a geodesic, the initial benchmark curve direction can be approximated by intersecting the surface with a plane perpendicular to the average normal vector. To ensure the benchmark curve is a true discrete geodesic on the triangular mesh, we subsequently refine this initial curve by enforcing the zero geodesic curvature condition (as analyzed via the Gauss–Bonnet theorem), thereby obtaining a curve that minimizes geodesic curvature across the mesh. In the discrete triangular mesh, the geodesic curvature of an interior straight-line segment is identically zero; curvature is concentrated as discrete angle deficits at the vertices and along the edges. This discrete geometric model satisfies the conditions of the Gauss–Bonnet theorem when applied to local mesh patches. This piecewise-flat discrete assumption implies that the surface is locally isometric to a Euclidean plane within each triangular facet, where straight-line segments naturally have zero geodesic curvature. The curvature is concentrated as discrete angle deficits at the vertices and edges, which satisfies the conditions for applying the Gauss–Bonnet theorem to the discrete mesh patches. The average normal vector of the surface is calculated according to Equation (13). As mentioned earlier, the optimal benchmark curve should result in equal Gaussian curvature integrals on both sides of the surface. For triangular mesh surfaces, the Gauss–Bonnet theorem is employed to solve this integral.
As shown in Figure 4, the cutting plane divides the surface into two parts. Applying the Gauss–Bonnet theorem to the left region A:
∫ A K A + ∫ ∂ A k g A + ∑ i = 1 n ( π − θ i ) = 2 π
where KA denotes the Gaussian curvature of region A, ∂A represents the boundary of region A, and θ1, θ2, …, θn are the turning angles.
Figure 4. The intersection line between the surface and the cutting plane. The dashed lines represent the cutting plane, and the arrows indicate the intersection lines and the turning angles.
Under the STL representation, the ship hull surface is composed of multiple triangular facets; consequently, C1, C2, …, Cn can be regarded as straight line segments. Since straight lines on a surface are inherently geodesics with a geodesic curvature of zero, the geodesic curvatures of C1, C2, …, Cn all vanish. Accordingly, Equation (16) can be rewritten as:
∫ A K A + ∑ i = 1 n ( π − θ i ) = 2 π
The integral of the Gaussian curvature over the left-half Region A is:
∫ A K A = = 2 π − ∑ i = 1 n ( π − θ i )
Similarly, the Gaussian curvature integral of the right half-region B can be calculated. When the integrals on both sides are equal, the position of the cutting plane can be determined, thereby obtaining a set of Gaussian curvature partition lines.
Several sample points are selected on the dividing line, and geodesics perpendicular to the benchmark curve are constructed. The sum of the longest geodesics on both sides is calculated as the altitude. The dividing line with the smallest altitude is the optimal benchmark curve.
Having obtained the reference curve, it is necessary to generate a series of offset curves to cover the entire surface to be sprayed. As illustrated in Figure 5, the reference curve is first discretized into multiple segments of fixed length, where the discretization points are recorded as marker points. Subsequently, a cutting plane is constructed passing through each marker point, using the tangent direction of the reference curve at that point as the normal vector. The intersection of the cutting plane and the surface yields an index curve. Points are then sampled along the index curve at fixed intervals; connecting these points generates the offset curve. Each offset curve corresponds to a spraying trajectory on the target surface.
Figure 5. Generation of offset curves in spray gun trajectory planning based on a reference curve.

3.3.3. Intersection Solving Based on Half-Edge Topological Structure

Both of the above trajectory generation algorithms require calculating the intersection lines between the cutting plane and the triangular mesh model, i.e., finding the intersection points of the cutting plane with each edge of the triangular facets. Pi (i = 0, 1, …, n) are the intersection points generated by the intersection of the cutting plane and the triangular facets. Connecting these points yields the intersection lines between them.
The positional relationships between the cutting plane and a triangular facet can be classified into six categories: no intersection, intersection at one vertex, intersection at two vertices, intersection at one vertex and one edge, intersection at two edges, and the facet lying on the cutting plane. To simplify the processing, when a vertex of the facet lies on the cutting plane, its coordinates are slightly adjusted so that the original relationship degenerates into either no intersection or intersection at two edges. The impact of this adjustment on the accuracy of the intersection points is negligible.
When the cutting plane intersects a triangular facet along an edge, as shown in Figure 6, let the intersection point be P and the edge be AB. Take a point M on the cutting plane and construct vectors AB → and AM → . Let n → be the normal vector of the cutting plane, AE →  and AF → are the projections of AP →  and AB → onto the normal vector n → , respectively. The intersection point is calculated as follows:
λ = AP → AB → = AE → AF → = AM → cos AM → , n → AB → cos AB → , n → = AM → ⋅ n → AB → ⋅ n →
OP → = OA → + λ AB →
where λ denotes the ratio of the length of line segment AP → to that of AB → . Due to the similarity of the corresponding triangles, λ also represents the ratio of the projections of vector AB → and vector AM → onto the normal of the cutting plane. Point O is the origin of the Workpiece Coordinate System (WCS). According to Equation (20), the vector OP → can be calculated, which yields the coordinates of the intersection point P.
Figure 6. Intersection of the cutting plane and an edge of the triangular facet.
Based on the half-edge topology reconstructed in the previous chapter, this paper proposes the following intersection algorithm:
Step 1: Read a triangular facet and determine whether it intersects the cutting plane. If an intersection exists, proceed to Step 2; otherwise, repeat Step 1.
Step 2: Calculate the intersection point between the triangular facet and the cutting plane according to Equation (20). Record the coordinates of the intersection point and the half-edge on which it is located.
Step 3: Search for the neighboring triangular facet of the current half-edge based on the established topological information. If no neighboring facet exists, the algorithm terminates; otherwise, proceed to Step 4.
Step 4: Calculate the other intersection point of the identified neighboring triangular facet with the cutting plane. If the half-edge containing this intersection point has already been recorded, it indicates that the intersection line forms a loop, and the algorithm terminates. Otherwise, record the new intersection point and its corresponding half-edge, then repeat Step 3 and Step 4.
The intersection algorithm based on half-edge topology only needs to locate the first intersecting triangle. The subsequent intersection line tracing is completed through neighborhood recursion. In this process, each new triangle only needs to calculate one intersection point, with the other point inherited from the adjacent facet. Moreover, the intersection points are naturally ordered along the neighborhood relationships, eliminating the need for additional sorting.

4. Results: Simulation and Analysis

To validate the proposed algorithms, comprehensive simulation experiments were conducted on a large-scale ship hull model with over 12 million triangular facets. The simulation environment accurately reproduces the geometric complexity and curvature variations of real ship hulls, including the bow, stern, and midship regions. The coating accumulation model and robot kinematic constraints were calibrated based on industrial painting parameters provided by a collaborating shipyard. Therefore, the simulation results provide a reliable basis for evaluating the feasibility and effectiveness of the proposed trajectory planning framework. Future work will involve physical experiments using a wall-climbing robot prototype on a laboratory-scale vertical surface to further validate the algorithms under real-world conditions.

4.1. Simulation of Import and Processing Acceleration for Large-Scale Ship Spraying Scenarios

4.1.1. Topology Reconstruction

To verify the time efficiency of the proposed topology reconstruction algorithm, tests were conducted on four triangular mesh models, as shown in Figure 7, using Visual Studio 2010 on a computer with an Intel(R) Core(TM) i7-4910MQ CPU at 2.90 GHz and 32 GB RAM, running Windows 7. A comparison with the direct algorithm was performed, and the results are shown in Table 1. Experimental results indicate that the direct algorithm becomes excessively time-consuming when the mesh size is large, whereas the computation time of the proposed algorithm exhibits an approximately linear relationship with the number of triangular facets, meeting practical requirements. It should be noted that for the full ship hull model (12-million facets), the direct algorithm was not executed due to memory overflow and excessive time consumption (O(N2) complexity), which is why its execution time is marked as “-“ in Table 1. To ensure reliability, all experiments were conducted 5 times, and the reported computation times represent the average values. The execution times showed negligible variations, confirming the deterministic performance of the proposed algorithms.
Figure 7. 3D mesh models of the test workpieces used for efficiency evaluation: (a) planar workpiece; (b) van frame; (c) simulated ship plate workpiece; (d) large-scale ship hull workpiece (over 12 million facets).

4.1.2. Geometric Feature Extraction

Six vertices, denoted as V1 to V6, were randomly selected from the bow, stern, and midship regions of the ship model, respectively, as shown in Figure 8. Geometric features were extracted from the first-order neighborhood of each vertex, including vertex coordinates, the total area of all triangular facets within the neighborhood, and the maximum dihedral angle between adjacent facets in the neighborhood. The results are presented in Table 2. The dihedral angles between adjacent facets in the bow and stern regions are relatively large, indicating higher curvature, while the midship region is approximately planar.
Figure 8. Selected vertices and their first-order neighborhoods in different parts of the ship hull. The red lines represent the mesh topology within the 1-ring neighborhood of the selected vertices (V1 to V6), demonstrating the varying local curvature.
Table 2. Geometric feature results for each vertex.

4.2. Simulation of Trajectory Generation and Optimization

4.2.1. Simulation Case Studies and Algorithmic Analysis

Based on the above research, an offline programming and simulation system for spray painting on large-scale ship hulls was developed using Visual Studio 2010 and SolidWorks 2013 on a computer with an Intel(R) Core(TM) i7-4910 CPU and 32 GB RAM, running Windows 7. The effectiveness of the proposed algorithms was validated using the large-scale ship model shown in Figure 9a.
Figure 9. Ship hull model and its region segmentation results: (a) 3D model of the ship hull; (b) initial segmentation based on spraying process requirements (Blue: topside area; Red: bottom area); (c) secondary segmentation based on geometric features, dividing the hull into six curvature-reduced regions (Regions 1–6), each represented by a distinct color.

4.2.2. Regional Segmentation

Initial segmentation was first performed according to the spraying process requirements. The ship hull was divided by the waterline into the topside area (blue) and the bottom area (red), as shown in Figure 9b. Different coatings will be applied to these two parts.
Based on this, re-segmentation was performed according to geometric features, with α1max = 15° and α2max = 80°. The segmentation results are shown in Figure 9c, where the entire ship hull is divided into six regions (Regions 1–6) with relatively smooth curvature. The maximum dihedral angles between adjacent facets and between arbitrary facets within each region are summarized in Table 3. All values satisfy the requirements for approximate planarity, validating the effectiveness of the proposed region segmentation algorithm.
Table 3. Statistics of maximum dihedral angles within each region.

4.2.3. Trajectory Generation

Trajectory planning was performed for each of the six regions. The desired coating thickness was set to 50 μm, and the spray gun height was set to 200 mm. The Gaussian sum model was adopted as the coating accumulation model. After optimization, the path interval was determined to be 107.00 mm and the spray gun speed was 73.82 mm/s. For Regions 2, 3, and 5, which have relatively low curvature, the slicing-based trajectory generation algorithm was applied, as shown in Figure 10a–c. For Regions 1, 4, and 6, which have relatively high curvature, the benchmark curve-based trajectory generation algorithm was adopted, as shown in Figure 10d–f.
Figure 10. Generated spraying paths for sub-regions with different curvature characteristics.

4.2.4. Spraying Quality Evaluation

The evaluation metrics for spraying quality include spraying coverage rate, average film thickness, standard deviation of film thickness, and extreme values of film thickness. The surface coverage rate was calculated by densely sampling points across the hull mesh (e.g., one sample point per square millimeter) and evaluating the accumulated coating thickness at each point. A point was considered “covered” if its thickness exceeded the minimum industrial threshold of 30 μm. The overlapping effect at the boundaries between adjacent regions was handled by accumulating the Gaussian thickness contributions from all intersecting trajectories. The target industrial requirement was set to a thickness of 50 μm ± 20% (i.e., 40–60 μm), which is a standard acceptance criterion in shipyard painting operations. It is important to distinguish between the surface coverage criterion and the coating thickness compliance criterion. The reported 100% coverage indicates that all sampled points exceeded the minimum threshold of 30 μm, whereas compliance with the target thickness requirements is assessed separately against the 40–60 μm range. The low standard deviation ensures that the overall coating falls within this target range. Each region was sprayed according to the planned trajectories, and the correspondence between film thickness and color, along with the resulting spraying effect, are presented in Figure 11.
Figure 11. Visualization of the paint film thickness distribution on the ship hull. The color bar indicates the coating thickness range, where lighter colors (yellow/light red) represent lower thickness and darker colors (purple) indicate higher thickness. The uniform red color across the midship indicates a consistent film thickness within the target range.
As shown in Figure 11, the film thickness is uniform across most areas of the ship hull, concentrated within the range of 47.5–53.3 μm. At the boundaries between regions, the thickness is slightly higher (53.3–59.2 μm) due to the overlapping coverage of trajectories from adjacent regions. In the boundary areas, the thickness is slightly lower (41.7–47.5 μm). The spraying effect evaluation for each region is presented in Table 4. The coverage rate reaches 100% for all regions, and the film thickness uniformity is satisfactory, meeting the requirements for shipyard painting operations. These results validate the effectiveness of the proposed trajectory planning algorithm.
Table 4. Evaluation of spraying effects.

4.2.5. Sensitivity Analysis of Segmentation Thresholds

Since the proposed topology reconstruction and region-growing algorithms are deterministic, repeated runs on the same mesh yield identical results, making statistical confidence intervals less critical for the computation time itself. However, to assess the robustness of the algorithm against parameter variations, a sensitivity analysis was conducted by varying the segmentation thresholds α1max and α2max.
When α1max was varied from 10° to 20° (with α2max fixed at 80°), the number of generated sub-regions changed from 8 to 5, while the overall spraying coverage remained at 100% and the standard deviation of coating thickness remained below 2.0 μm (as shown in Table 5). Similarly, varying α2max from 70° to 90° (with α1max fixed at 15°) resulted in minor changes to the region boundaries (from 7 to 6 regions), but the final trajectory generation and coating quality metrics remained highly stable. This confirms that the proposed algorithm is robust and not overly sensitive to the exact choice of threshold values.
Table 5. Effects of varying segmentation thresholds (α1max and α2max) on region generation and spraying quality.
Furthermore, the coating quality is sensitive to spraying parameters. A variation in the spray-gun speed or path spacing directly alters the coating accumulation. Since the path spacing (107.00 mm) and gun speed (73.82 mm/s) were optimized specifically for the target thickness of 50 μm using the Gaussian sum model, deviations in these parameters would affect the thickness uniformity. However, because the trajectory generation strictly adheres to these optimized parameters across all sub-regions, the simulation ensures a stable coating quality. Calibration conditions and model assumptions remain a limitation, which requires physical experimental tuning in real shipyards.

4.3. Kinematic Execution Feasibility

To bridge the gap between idealized simulation and real-world conditions, a physical test bench was constructed to evaluate the kinematic execution feasibility of the generated trajectories. As shown in Figure 12a, the setup consists of an actual Kawasaki KJ264 industrial robot and a curved ship plate workpiece. Figure 12b shows the corresponding simulation environment built in the OLP system. The inverse kinematics solutions and the planned trajectory points were executed on this physical robot platform to ensure that the paths are physically reachable and free of joint limit violations.
Figure 12. Physical execution environment. (a) Physical test bench equipped with a Kawasaki KJ264 industrial robot and a curved ship plate workpiece; (b) corresponding digital simulation environment built in the OLP system.

5. Discussion

The simulation results demonstrate that the proposed half-edge-based trajectory planning framework achieves efficient topology reconstruction (58.043 s for a 12,113,034-facet model), effective region segmentation into six curvature-reduced sub-regions, and 100% spraying coverage with coating thickness standard deviations ranging from 0.95 to 1.69 μm. These findings confirm the feasibility of the proposed approach for large-scale ship hull spraying applications.
The efficiency of the topology reconstruction algorithm can be attributed to two key innovations. First, the hash-table-based redundant vertex removal compresses vertex storage to its theoretical lower bound, eliminating the redundancy inherent in the STL format, where each vertex is typically recorded multiple times across adjacent facets [12]. As shown in Table 1, for the full ship hull model, the vertex count was reduced from 36,339,102 to 6,124,726—a reduction of approximately 83.1%. Second, the incident half-edge index table avoids global traversal of the half-edge table during twin half-edge merging. In the direct algorithm, querying the twin half-edge of a given half-edge requires scanning the entire half-edge table, resulting in O(n2) complexity. In contrast, the proposed algorithm only queries the incident half-edge table of the start vertex, reducing the complexity to near O(n). This explains why the proposed algorithm completed reconstruction of the 12-million-facet ship model in 58.043 s, whereas the direct algorithm was effectively impractical for models of this scale, as evidenced by the 1096.534 s required for the much smaller 541,916-facet ship plate model.
The enhanced region-growing algorithm with dual dihedral-angle criteria effectively addresses a key limitation of traditional methods. Conventional approaches consider only the local curvature between adjacent facets, which fails to prevent cumulative curvature among non-adjacent facets within the same region [14]. This limitation is particularly problematic for large-scale ship hulls, where the bow and stern exhibit complex curvature that can accumulate gradually across many facets, exceeding the applicable range of the coating accumulation model even when the local curvature between any two adjacent facets remains within the threshold. The proposed overall curvature criterion (α2 < α2max = 80°) addresses this issue by constraining the maximum dihedral angle between the candidate facet and any facet within the current region, thereby guaranteeing the approximate planarity required for accurate trajectory planning. This is reflected in the segmentation results (Table 3), where all six regions satisfy both criteria, with maximum adjacent-facet dihedral angles ranging from 2.12° (Region 2) to 9.36° (Region 1) and maximum overall dihedral angles ranging from 20.30° (Region 3) to 65.39° (Region 6). The ability to partition the entire ship hull—including the highly curved bow and stern—into such curvature-reduced sub-regions validates the robustness of the proposed dual-criterion approach.
The curvature-adaptive trajectory generation strategy explains the satisfactory spraying quality observed across all six regions. For near-flat regions (Regions 2, 3, and 5), the slicing method provides computational efficiency and straightforward path generation, yielding coating thickness standard deviations of 1.03, 1.23, and 0.95 μm, respectively. For high-curvature regions (Regions 1, 4, and 6), the geodesic-based benchmark curve method ensures that the offset paths do not exhibit excessive geodesic curvature, as derived from the Gauss–Bonnet theorem analysis (Equation (15)). This adaptability is crucial for large-scale ship hulls, where curvature varies dramatically from the midship section to the bow and stern. The feature extraction results in Table 2 corroborate this variation: vertices V1 (bow) and V5 (stern) exhibit maximum dihedral angles of 9.06° and 15.21°, respectively, while midship vertices V3 and V4 show much smaller angles of 2.10° and 1.48°. The reference-curve-based method for Regions 1, 4, and 6 achieved coating thickness standard deviations of 1.69, 1.42, and 1.30 μm, which, while slightly higher than the slicing method, remain well within industrial requirements and demonstrate the effectiveness of the geodesic-based approach for high-curvature surfaces. This is consistent with the Gauss–Bonnet-based analysis (Equation (15)), which indicates that the geodesic curvature of offset curves increases with surface curvature, necessitating careful benchmark curve placement—a requirement that the slicing method cannot fulfill for highly curved surfaces.
Compared with existing studies, the proposed framework offers distinct advantages in terms of computational efficiency and determinism. While direct quantitative comparisons with alternative segmentation and trajectory generation methods under identical hull models are constrained by the lack of open-source implementations, the topology reconstruction efficiency of our method still significantly outperforms traditional approaches [9]. This enables practical application to full-scale ship models with millions of facets rather than simplified workpieces. Park and Choi demonstrated the feasibility of wall-climbing robot path planning for hull surfaces, but their approach did not address the computational challenges of processing full-scale mesh models. The region segmentation algorithm addresses the cumulative curvature issue that prior methods [12] have overlooked, where only adjacent-facet curvature was considered. Furthermore, unlike optimization-based approaches such as NSGA-III [3] or the Grey Wolf Optimizer [8], which require iterative computation and parameter tuning, the proposed geometric algorithm provides deterministic and efficient solutions, making it more suitable for large-scale industrial applications where computational resources and time are constrained. To explicitly address the comparative advantages over these optimization-based methods, a quantitative and qualitative comparison is summarized in Table 6. While heuristic algorithms excel at multi-objective parameter tuning, they require extensive iterative computation. In contrast, our deterministic geometric approach achieves 100% coverage and high uniformity without iterative parameter tuning, proving highly suitable for large-scale industrial models. However, it should be noted that this comparison is indicative rather than a strict quantitative evaluation, as it is based on the characteristics reported in the literature rather than re-running all algorithms under identical hull models and computing conditions. The 100% coverage rate achieved in this study matches the results reported by Wang et al. [8] for regular ship block surfaces, but extends the applicability to the full hull with variable curvature. Compared with the UAV-based path planning approaches, the proposed framework is specifically designed for robotic manipulators and wall-climbing robots, which are more practical for shipyard deployment due to their higher payload capacity and operational safety in confined spaces.
Table 6. Comparison of the proposed approach with typical optimization-based methods.
Furthermore, to objectively assess the practical implementation in a real shipyard, the boundary conditions of the proposed method must be addressed. While the half-edge structure offers robust neighborhood queries, real-world STL models often contain topological anomalies (e.g., non-manifold edges or gaps). Our algorithm handles minor anomalies by treating them as boundary half-edges, but severe mesh defects require pre-processing. Regarding local hull deformations and structural obstacles (e.g., scaffolding or outfitting), the current offline framework does not account for these dynamic physical constraints. In a real production environment, integrating real-time collision detection and adaptive local re-planning will be necessary to handle limited access to specific compartments and obstacle avoidance.
Several limitations should be acknowledged. First, the simulation results, while comprehensive, have not yet been validated through physical experiments with an actual wall-climbing robot prototype. The coating accumulation model parameters—including the path interval of 107.00 mm and spray gun speed of 73.82 mm/s—were calibrated based on industrial painting parameters provided by a collaborating shipyard, and their generalizability to different painting conditions, coating materials, and environmental factors requires further investigation. Second, the current framework assumes single-robot operation; multi-robot collaborative spraying, which is essential for further improving productivity in real shipyards where large hull areas require simultaneous painting, has not been addressed. Third, the trajectory generation currently relies on offline programming without considering real-time adjustments for unexpected obstacles or environmental variations. The intersection algorithm based on half-edge topology, while efficient for static models, does not account for dynamic changes in the workpiece geometry or robot configuration. Additionally, the current framework does not explicitly analyze robot kinematic singularities or potential collisions with the workpiece during trajectory execution. Fourth, the Gaussian sum model adopted for coating accumulation, while widely used, may introduce errors in high-curvature areas, as noted in Section 3.2, and the accuracy of the simulation results depends on the fidelity of the industrial parameters provided by the collaborating shipyard. Moreover, since the proposed algorithms are deterministic, statistical confidence intervals for repeated runs are not directly applicable to the computation time. Nevertheless, the sensitivity analysis in Section 4.2.5 confirms the algorithm’s robustness against parameter variations; future work will involve statistical analysis of data from physical trials to account for environmental randomness. Furthermore, although the kinematic execution feasibility of the generated paths was evaluated on a physical test bench (as discussed in Section 4.3), full-scale physical spraying experiments on a complete ship hull were not conducted due to industrial facility constraints. Real-world factors such as robot vibrations, positioning errors, and micro-irregularities of the hull surface require further investigation in future physical trials.
Future work will focus on physical experimental validation using a wall-climbing robot prototype on a laboratory-scale vertical surface to verify the simulation results under real-world conditions, including the effects of gravity, wheel slippage, and surface adhesion. Additionally, to meet the demands of modern shipbuilding enterprises, we will investigate multi-robot collaborative spraying strategies. This future direction will specifically include work-zone decomposition, spatial collision avoidance, coordinated trajectory planning among multiple manipulators, and temporal optimization of the technological cycle to maximize overall productivity. The integration of real-time sensing—such as depth cameras or LiDAR—for adaptive trajectory adjustment in response to unexpected obstacles or environmental variations will also be explored. Finally, extending the current framework to handle dynamic workpiece geometries, such as ship hulls with localized deformations, and incorporating robot kinematic constraints more explicitly into trajectory generation remain important directions for future research.

6. Conclusions

This paper has investigated trajectory planning algorithms for spray painting robots on complex curved surfaces to address the challenges of low efficiency and inconsistent quality in manual painting of large ship hulls. The main contributions are summarized as follows.
A fast preprocessing algorithm for large-scale ship mesh models based on the half-edge data structure has been proposed. By employing hash-table-based redundant vertex removal and an incident half-edge index table for rapid twin half-edge merging, the algorithm enables efficient topology reconstruction for models with millions of triangular facets. Compared with traditional methods, the reconstruction time is reduced from over 1096 s for a 541,916-facet model (direct algorithm) to only 58 s for a 12-million-facet full ship hull, achieving a computational efficiency improvement of more than one order of magnitude while laying the foundation for subsequent region segmentation and surface intersection.
A segmented spraying trajectory planning strategy for large-scale complex ship hulls has been developed. Initial segmentation according to spraying process requirements (waterline-based division) and re-segmentation based on geometric features (dual-criterion region growing) collectively partition the entire hull into six curvature-reduced sub-regions. A curvature-adaptive trajectory generation strategy is then applied: the slicing method for near-flat regions and the geodesic-based benchmark curve method for highly curved areas. Both region segmentation and surface intersection are accelerated by the half-edge structure through efficient neighborhood propagation.
Simulation results on a 12,113,034-facet ship hull model have validated the effectiveness and engineering applicability of the proposed framework. The spraying coverage rate reaches 100%, with coating thickness standard deviations ranging from 0.95 to 1.69 μm across all six regions, meeting the uniformity requirements for shipyard painting operations. The proposed methods provide an efficient and adaptive trajectory planning solution for large-scale hull spraying, demonstrating potential for improving coating quality and productivity in ship production under simulated conditions, pending future physical validation. Future work will focus on physical experimental validation and the extension of the framework to multi-robot collaborative spraying scenarios, including work-zone decomposition and temporal optimization.

Author Contributions

Conceptualization, B.Z. and J.H.; methodology, J.H.; software, J.H. and Y.Z.; validation, J.H., X.Y., Y.J. and Y.Z.; formal analysis, J.H.; investigation, J.H.; resources, X.Y. and Y.J.; data curation, J.H.; writing—original draft preparation, J.H.; writing—review and editing, B.Z. and Y.Z.; visualization, J.H.; supervision, B.Z.; project administration, B.Z.; funding acquisition, B.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Natural Science Foundation of China, grant number 62573124; and Shenzhen Science and Technology Program, grant number KJZD20240903100814018.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Acknowledgments

The authors would like to thank all reviewers and editors for their valuable comments and suggestions.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
CobotsCollaborative Robots
INSGA-IIIImproved Non-dominated Sorting Genetic Algorithm III
MOGWOMulti-Objective Grey Wolf Optimizer
NSGA-IIINon-dominated Sorting Genetic Algorithm III
OLPOffline Programming
STLStandard Triangle Language
UAVUnmanned Aerial Vehicle
WCSWorkpiece Coordinate System

References

  1. Feng, Y.; Yang, Z.; Zeng, Q.; Liu, X.; Hu, X. Research on offline programming system for ship spraying robots. Machinery 2021, 59, 54–59. Available online: https://d.wanfangdata.com.cn/periodical/CiBQZXJpb2RpY2FsQ0hJU29scjkyMDI2MTAxMjE5NTI0NxINanh6ejIwMjEwMzAxNBoIYWx0Zmk5YWk%3D (accessed on 10 November 2026). (In Chinese)
  2. Ye, Y.; Li, Y.; Yan, Y.; Wang, W.; Xu, H.; Zhao, Q.; Sun, J. Discussion on the application of robots in coating of offshore equipment and facilities. Coat. Prot. 2025, 46, 24–28. (In Chinese) [Google Scholar] [CrossRef]
  3. Guo, Q.; Bu, H.; Peng, Y.; Ge, Z. Spray trajectory planning for ship cabins based on INSGA-III algorithm. Electroplat. Finish. 2024, 43, 133–143. (In Chinese) [Google Scholar] [CrossRef]
  4. Wang, J.X.; Li, Y.; Zhang, C. Path optimization for spraying robot based on Archimedes algorithm. Autom. Instrum. 2024, 5, 191–194, 199. (In Chinese) [Google Scholar] [CrossRef]
  5. Zi, B.; Pan, J.; Li, Y.; Feng, K.; Zhu, X. A review of programming methods and teleoperation technologies for intelligent spraying robots. Control Decis. 2025, 40, 1057–1078. (In Chinese) [Google Scholar] [CrossRef]
  6. Cai, Y.; Zhou, H.; Liu, J.; Yuan, X.; Zhu, T.; Zou, S.; Wen, X.; Du, C.; Zhou, D. Research on path generation and stability control method for UAV-based intelligent spray painting of ships. J. Field Robot. 2022, 39, 188–202. [Google Scholar] [CrossRef] [Scilit]
  7. Ji, J.B.; Xu, J.M. Modeling of coating thickness distribution for robot spraying on ultra-large planar surfaces with variable velocity. Mach. Tool. Hydraul. 2023, 51, 35–41. (In Chinese) [Google Scholar] [CrossRef]
  8. Wang, F.; He, Z.J.; Su, Z. A full-coverage spray painting path planning method for ship hull blocks. Comput. Digit. Eng. 2023, 51, 2867–2872. Available online: https://d.wanfangdata.com.cn/periodical/CiBQZXJpb2RpY2FsQ0hJU29scjkyMDI2MTAxMjE5NTI0NxIRanNqeXN6Z2MyMDIzMTIwMjAaCHF1anh4dTRh (accessed on 10 November 2026). (In Chinese)
  9. Zhu, J.; Ge, X.; Xie, R.; Zhou, Y. Research on trajectory tracking synchronization control strategy for coating parallel robot. Mach. Tool. Hydraul. 2024, 52, 71–78. (In Chinese) [Google Scholar] [CrossRef]
  10. Zhao, S.H.; Yuan, H.; Wang, Q. Research on path optimization strategy of overhead line anti-icing insulating paint spraying robot. J. Southwest Minzu Univ. (Nat. Sci. Ed.) 2022, 48, 415–420. Available online: https://d.wanfangdata.com.cn/periodical/CiBQZXJpb2RpY2FsQ0hJU29scjkyMDI2MTAxMjE5NTI0NxIReG5tenh5eGIyMDIyMDQwMTAaCHJnZWk5YXAx (accessed on 10 November 2026). (In Chinese)
  11. Wu, P.; Liu, S.; Xu, G.; Huang, Z.; Fan, Y.; Ma, H.; Huang, Z. Research on automatic generation algorithm of automobile surface spraying trajectory. Mech. Electr. Eng. Technol. 2025, 54, 69–73. (In Chinese) [Google Scholar] [CrossRef]
  12. Rypl, D.; Bittnar, Z. Generation of computational surface meshes of STL models. J. Comput. Appl. Math. 2006, 192, 148–151. [Google Scholar] [CrossRef] [Scilit]
  13. Wang, J.; Zeyun, Y. Surface feature based mesh segmentation. Comput. Graph. 2011, 35, 661–667. [Google Scholar] [CrossRef] [Scilit]
  14. Xing, J.S.; Wang, Y.J. Application of Gauss–Bonnet formula. Henan Sci. 2013, 31, 6–9. Available online: https://d.wanfangdata.com.cn/periodical/CiBQZXJpb2RpY2FsQ0hJU29scjkyMDI2MTAxMjE5NTI0NxINaG5reDIwMTMwMTAwMhoINWh1bmw2dmU%3D (accessed on 10 November 2026). (In Chinese)
  15. Huang, W.H. Optimal line-sweep-based decompositions for coverage algorithms. In Proceedings of the IEEE International Conference on Robotics and Automation (ICRA), Seoul, Republic of Korea, 21–26 May 2001; pp. 27–32. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.