Computer programs developed by the authors for plain, twill and satin weaves are presented and the mathematical theory underlying them is examined. The linear theory of the elasticity of flexible rods is used.