The symmetry properties of an ornament contain information about its civilisation and its interactions with other cultural sources. Two-dimensional periodic ornaments can be strictly classified into a limited set of 17 mathematical symmetry groups, also known as wallpaper groups. The collection of ornaments thus classified for a civilisation is characteristic of the cultural group and serves as a fingerprint to identify that group. If the distribution of wallpaper groups is available for several societies, mathematical methods can be applied to determine similarities and differences between the art practices of these communities. This method allows a systematic approach to the general ornamental practices within a culture and their interactions in the form of similarity of fingerprints. We test the feasibility of the method on examples of medieval Armenians, Byzantium, Seljuks first in Persia and then in Anatolia and among Arabs in the Middle East. For this purpose we present the distribution of the planar ornaments and calculate the Euclidean distances in pairs. We tested to what extend geographical and religious factors could account for the observed similarity of ornamental groups between cultures. The results suggest an intensive interaction between the Seljuk Turks and Arab craftsmen who produced the ornaments. Therefore the cultural interactions are religiously motivated.