a cloth simulation framework