Robotic spray workpiece surface modeling method

The invention discloses a robot spray workpiece surface modeling method. The method includes the steps of performing triangular grid partitioning on a workpiece surface, setting a maximum normal vector threshold, connecting triangular faces into small flat patches according to a triangular face connecting method, creating a flat patch adjacency graph, and merging all the small flat patches to a plurality of new large flat patches according to a flat patch adjacency graph merging algorithm. The method is applicable to surface modeling of various complicated sprayed workpieces, particularly applicable to surface modeling of workpieces large in curvature change and fast in calculation, so that preparations are made for follow-up spraying robot route planning and trajectory optimization so as to meet requirements on working of a spraying robot, and working efficiency of the spraying robot and quality of products can be improved.