The QT frontend and C++ backend to create a path that fits in certain shape for a robot to draw