The Magic of Foaming Mold: Understanding Its Working Principle