Draw shape using mouse(left click & drag) and release to watch the algorithm rebuild it.Here is a quick demo.