Aims. Our aim is to improve on previous radiative transfer calculations in illuminated cylindrical threads to better understand the physical conditions in cool solar chromospheric and coronal structures commonly observed in hydrogen and helium lines. Methods. We solved the radiative transfer and statistical equilibrium equations in a two-dimensional cross-section of a cylindrical structure orie...