A method for generating an ideal cementing trajectory of a shoe sole for a heel/ side laster. A contour line of a shoe is generated from information based on contour points of the shoe sole, this information may be retrieved from a database of various shoes depending on a selected shoe style. The ideal cementing trajectory is automatically generated based on the information on the contour points, and offset inwardly from the contour line. Preferably the contour line and the cementing trajectory can be modified and stored upon request of a 10 worker. A cementing operation is performed not along the ideal cementing trajectory, but preferably through generation of an actual cementing trajectory, comprising a plurality of straight line segments. The actual trajectory is generated by setting operating points onto the cementing trajectory and linearly connecting these operating points. A maximum trajectory error is calculated between a line segment of two neighbouring points. These operating points can be adjusted so that the maximum error is smaller than a predetermined value. Preferably the contour line and cementing trajectory are generated by the use of NURBS and a computer-readable medium where in a program is recorded for executing the generation of the cementing trajectory.
展开▼