In order to study the mesh problem in case that the surface is generated by curvilinear cutter with two degrees of freedom a theory of surface generated by curvilinear cutter edge with two degrees of freedom is put forward by using the conjugate conditions of two degrees of freedom motion. The theory is used to calculate the helical surface of the toroidal worm generated by linear cutter edge whose relative motion has two degrees of freedom. This kind of worm is manufactured on a hob machine and its helical surface of the worm is measured on a CMM. The application prospect of this kind of worm gears is studied. The conclusions are: by using the theory the generate curved surface can be deduced when the curvilinear cutter edge and the varying regularity of the two motion parameters are given or the varying regularity of the two motion parameters can be derived when the generated curved surface and the curvilinear cutter edge are given;the calculation of the curved surface generated by curvilinear cutter edge with two degrees of freedom can be simplified if the varying regularity of the two motion parameters is restricted properly; the "modification" curve of the worm generated by linear cutter edge with two degrees of freedom is close to that of the hindley worm which is modified in parabolic curve; the defect of the hindley worm gears can be avoided by using this kind of worm gears without needing modification and there is a good application prospect.