How to: Determine corner points of a "face"

Point.PruneDuplicates would be better as there may be a small miss distance (day 0.00001 units off).

you have a cilyndrical element very slender crossing the plan you want the corners. Is the points you want to ignore in the top of these elements?

I was want something like that and make for this way:

Image 1 - I find wich surfaces that have max point Z, because I want them for work.

Image 2 - I find the corner points by face and change color for red