A compiler for 3D machine knitting
Efficient simulation of knitted cloth using persistent contacts