Program shape interactively and tool change position manually by teaching