spitcenter function

Center determination for hexahedrons