working version of cube mesh generator