The invention discloses a
trajectory optimization method for the procession of a mould pneumatic
grinding wheel based on a three-dimensional boundary extraction. The
trajectory optimization method comprises the following steps: (1) modeling, and storing a CLSF (
Cutter Location Source File) file of a
trajectory planning and a
VRML (
Virtual Reality Markup Language) file of a model; (2) reading the
VRML file, adopting a
regular expression to identify text data, and then storing the data into an array; (3) setting 'normal vector
mutation threshold value' by a user, wherein the value is obtained according to a maximum curvature on 3D model (three-dimensional model), the curvature is larger, the threshold value is larger; (4) taking vector modules after normal vectors in a unit normal
vector group are conducted for the pairwise difference, comparing the vector module with a threshold and deleting
diagonal lines and repeated boundary lines according to the comparison results; (5) setting the rest of line segments to obtain a
boundary line array; and (6) calculating the distance between the center of a contact surface of any
processing point and every boundary on a trajectory plan, and carrying out posture optimization on relative positions of the boundary lines and the
processing points. According to the method, the problem of boundary in a pneumatic
grinding wheel procession process path can be considered, and the effect is significant.