Generate offset tool moving path in restrained curved plane