Upon loading the 3D cage structure into C3, a 3D grid filled with grid points is generated, with customizable size and grid spacing (default parameters are described in SI §S2). The cavity size is then calculated by iteratively examining all grid points to determine whether they form part of the cage cavity.