Mathematical Modeling of the Weaving Structure Design