In some cases the spatial cam is manufactured with a cutter whose diameter is smaller than that of the roller of cam mechanism, which is defined as nonequivalent manufacture method in the paper. By the analysis for manufacture of contact lines between the cam and the roller, it is indicated that errors caused by the different directions of normal vector are unavoidable for the nonequivalent manufacture method. In order to find the best tool axis vector to minimize the machining error, this paper realized the nonequivalent machining of spatial cam surfaces using the NC flank milling method and proposed a new generation algorithm of the tool path based on NURBS. The NURBS ruled surface of tool axis trajectory is confirmed based on the least square optimization method and the machining error model is given. At last, a numerical calculation and simulation example is described to verify the effectiveness of the algorithm proposed in the paper.