I tried it on the map BSPs from https://github.com/fzwoch/quake_map_source/tree/master/bsp
Edit: Following a sibling comment, Trenchboom can also export as OBJ from the GUI
I tried it on the map BSPs from https://github.com/fzwoch/quake_map_source/tree/master/bsp
Edit: Following a sibling comment, Trenchboom can also export as OBJ from the GUI