Mechanical analysis of textiles