Boolean operation on detector gemetry

Hi! I want to simulate a square diode, 55µm by 55µm, and 275µm thick, which has some cavities on one side. How is it possible to implement these cavities, like in the case of GEANT4?