For those interested in cutting foam without a CNC.
I found that electric kitchen carving knives work great for this, and it is my #1 choice whenever faced with the need to cut foam plastic or rubber of just about any density. I once cut a foam mattress to fit around the bulkheads and hull shape in a small yacht, then made a fabric cover for it to match the shape. Foam inserts for tool boxes are easy to size with one of these knives too, but for the semi rigid plastic foam, like used by florists, I found that a hot wire cutter works much better.
Central North Carolina