I need to find the maximum height feature point of a surface and for which right now I am using below code is there a direct better way to find maximum height feature point dire