How to set up boundary conditions on netgen mesh instead of geometry ?

I am new to ngsolve and I am trying to set up boundary conditions on arbitrary vertices of netgen mesh or on arbitrary triangle faces of netgen mesh. Is that possible ?