How to draw up the pattern for foam