- first optimize, then round the corners. this way the path will look
more "realistic"