Add toi computation for compound vs any geometry.