3d Irregular hexagonal shapes in ROOT

Hi all,

Is there a simple way to create 3d irregular hexagonal shapes then a union of for example two TGeoTrap’s? It would save me a little time and effort;)

Joa

Sure, see attached macro.

Regards,
hexa.C (1.08 KB)

Better, use TGeoXtru shape for this (see attachment).

Cheers,
hexa1.C (875 Bytes)