Concavity and convexity map

Hi

I found mask node in internet and it works wrong coz it highlights concavity and convexity edges simultanously whereas they should have opposite colors (black and white)

How can i highlight only convexity edges or only concavity ones? May be another method?

P.S.

I used another method and get convexity and concavity of the surface but i need to only highlight convexity edges

Thanks

share the blend or point to the mask you found
without a look inside it’s hard to say anything

pointiness is a whole different matter - shading based on vertex density

Under this video you can find download link and other information