We had a machine at a shop I worked at. It would fill a bag with two liquids that would react and expand and then harden into foam. You fill the bag and put it where you want it, and as it expands it takes the exact shape you want. Pretty cool, but that sh!t was hot and sometimes it'd get on your arm.