How to set bsp brush material c++

How to set bsp brush surface material by c++?