The application provides a complex curved surface
machining tool path adaptive generation method and
system, and the method specifically comprises the following steps: obtaining complex curved surface triangular
mesh model data, calculating maximum and minimum principal curvatures of each vertex through local quadratic
surface fitting; performing
kernel density estimation based on a maximum principal curvature
value set, and completing initial partition of the vertexes by taking a local minimum value of a probability density function as a threshold; constructing a curved surface
graph model, establishing a Markov random
field energy function, optimizing the initial partition by minimizing a function, and obtaining a
machining partition with smooth boundaries; generating parallel
machining tool paths in a smaller curvature area, and generating streamline tool paths along a minimum principal curvature direction field in a larger curvature area; on both sides of a shared boundary between adjacent partitions, a transition area is established by expanding a preset geodesic line distance inward along a normal direction, the direction and row distance of the
tool path in the transition area are determined according to a geodesic line distance of a point to the boundary, weighted fusion of
tool path generation rule results of both sides of the partition is performed, and smooth transition of parameters is realized.