Three dimensional hexahedron mesh generation for rock engineering