Made some refinements. It looks even better now.

The algorithm part is almost done. I will not change that much later on.
My next step is add Cube intersection part. So convenient, you can also
handle cubes in Maya