curve folding