Castellation is foreseen for the first wall and divertor area in ITER. The concern of the fuel accumulation and impurity deposition in the gaps of castellated structures calls for dedicated studies.Recently, a tungsten castellated limiter with rectangular and roof-like shaped cells was exposed to the SOL plasmas in TEXTOR. After exposure, roughly two times less fuel was found in the gaps between the shaped cells whereas the difference in carbon deposition was less pronounced. Up to 70 at. % of tungsten was found intermixed in the deposited layers in the gaps. The metal fraction in the deposit decreases rapidly with a depth of the gap. Modeling of carbon deposition in poloidal gaps has provided a qualitative agreement with an experiment. Misalignment of toroidal gaps with respect to the magnetic field lines has led to the significant anisotropy of C and D distribution in the gaps.