Adaptive local refinement and simplification for cloth simulation