I have this mesh:
With a python script, I'd like to select the peak and / or the hole. I put them together because it looks like the solution is the same... More exactly I'm looking for a way to tell those features apart from the rest of the mesh... Blue selected edges show the (hypothetical) boundaries. Feels like it's something related to curvature, but not sure...
EDIT: result by selecting edges at angles (50°):
faces selection (vector (0,0,1)):
(I don't understand this) EDIT: now I got it. It requires a more precisely oriented vector to tell faces by angles. Gotta look for this better.