I have previously played with similar designs on a travel brush tube for carrying a shave brush. I was able to create one by remixing a few other projects into something that worked for my particular brush. I wanted to build a design from the ground up using openscad so it was parametric and could be easily recreated for different height and width options. The result is what is attached.
To change the dimensions you can set 7 options:
diameter - the inside diameter of the brush tube
height - the inside height of the brush tube
vent_height - you can set the height of the venting (brush loft) and overrides percentages
venting_height_percentage - how much of the brush tube is venting
parts - which part or parts of the travel tube do you want to create: all, lid, lids, tube
By default it generated a tube and two lids (top and bottom). You can edit the parts variable if you want to generate the parts separately