Tekstiviesti: Theory of textile structure