Quickly generate an indexed mesh for a rectangular prism, because triangles.