Fix priority fill to get the average depth, of all the points rather than just returning a sum... sum was ok for when the number of vertices was fixed but not good for when variable.