How to reduce the number of steps if two adjacent boxes of variable dimensions share the same material?

Hi everyone,

I would like to know if there is any method to skip on the fly the boundaries between two boxes with variable dimensions if they share the same material as a method that is already supported for a set of boxes of equal dimension via G4PhantomParametrisation class.

Thanks and regards,

Jaafar