compute Z
Merge branch 'master' of github.com:PRMLiA/taichi