this is the new function that gets the center point array.