output:
Description: This is a function to sort out the global numbering scheme for vertices, edges and faces. It also sets up the list of cumulative indices for edges and vertices.