Mask by topology

I saw this feature on a tutorial of zbrush,I didn’t think of this but would be so much helpful​:sob::sob::sob:.