Parallelepiped
A parallelepiped can be constructed using C++ or some simple text:
:volu parallelepiped PARA
30 // half x in mm
40 // half y in mm
60 // half z in mm
10 // alpha in degrees
30 // theta in degrees
20 // phi in degrees
G4_WATER // 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/para
# generate animated picture, para.gif
G4VIS_DEFAULT_DRIVER=TSG_FILE gears gears.mac