Initial implementation of rectangular mesh in R^3.