Boolean volume operation

Hello!
I would like to know if there’s a way (a command line or a logic “if”) to know if the boolean operation to create a solid volume (like an intersection) gives an empty volume ( so no intersection) or not.
Thank you so much for the help!

You can check the physical volume of the resulting Boolean solid, please see GetCubicVolume(). This method estimates the volume of the solid by Monte Carlo method.

It should be noted that a NULL (empty) solid does not create a problem for particle transportation and can be used as an ordinary solid.

Thank you! I implemented an if condition

G4SolidIntersection * intersection = …
(if intersection->GetCubicVolume >0.)

and it works being able not to write all the warning messages when checking for no present intersections.
Thank you again!