Right Angular Wedge
A right angular wedge can be constructed using C++ or some simple text:
:volu wedge TRAP
30 // half height along z in mm
40 // half height of the base (along y) in mm
50 // half length of the long side of the base in mm
20 // half length of the short side of the base in mm
G4_W // material
The full source code is in detector.tg, which can be visualized using the macro file mingle.mac or gears.mac, assuming an universal Geant4 application, such as MinGLE or GEARS, is available:
git clone https://github.com/jintonic/geant4
cd geant4/detector/CSG/trap4
# generate animated picture, trap4.gif
G4VIS_DEFAULT_DRIVER=TSG_FILE gears gears.mac