What is the best practise if I am to create a solid with many holes in it? The solid is a G4Box. The holes are G4Tubes which will reach from one side to halfway through the box, all being placed in rows and columns with equal distance between each other. The holes will all be of the same dimension but their rotation will be different depending on their placement.
Without the rotation I’ve successfully placed the tubes as a daughter in the mother volume of the box. With the rotation, this is problematic, since some parts of the holes then will protrude through the side of the mother volume while other parts of the holes leave the side mother volume “undrilled”. My solution has therefore been to “drill” the holes using a G4SubtractionSolid in a double for-loop. As the number of rows grow, the time to visualise the geometry seems to increase at least as a quadratic polynomial (not rigorously tested). For the number of holes that I require the creation time was too long for me to wait (beyond half an hour before I finally closed it down). Is there another solution to this that makes the time to start the simulation feasible?