Theoretical study and numerical simulation of textiles