Solving dynamics of cloth using conforming or nonconforming elements.