I wrote a MEL script to generate 3D models of knitted fabric.
The code includes variables to control spacing, yarn thickness, the number of rows and columns and the tapering of the yarn at points where it overlaps
This was a pretty fun test of procedural modeling techniques and the power and flexibility of Maya.