Interactive simulation and design of yarn-level cloth patterns