A basic study of the grinding mechanism on a template of arbitrary contour.