This is more common with closed cell foam, but it happens with open cell foam, too. Since closed cell foam has a higher R-value per inch, installers generally spray 2" in walls and 3" in rooflines to meet the energy code requirements of R-13 and R-19, respectively. (I'm not going to dive into the energy code here, but these numbers apply to many climate zones, the latter being allowed under the UA tradeoffs rule. See the Energy Nerd's blog on this topic if you want to argue.)
In plasma spraying process, the material to be deposited (feedstock) — typically as a powder, sometimes as a liquid, suspension  or wire — is introduced into the plasma jet, emanating from a plasma torch. In the jet, where the temperature is on the order of 10,000 K, the material is melted and propelled towards a substrate. There, the molten droplets flatten, rapidly solidify and form a deposit. Commonly, the deposits remain adherent to the substrate as coatings; free-standing parts can also be produced by removing the substrate. There are a large number of technological parameters that influence the interaction of the particles with the plasma jet and the substrate and therefore the deposit properties. These parameters include feedstock type, plasma gas composition and flow rate, energy input, torch offset distance, substrate cooling, etc.
As this example illustrates, it's important to seal the envelope completely. One of spray foam's biggest selling points is its air-sealing ability, but it can't seal places where it's not sprayed. One of the nice things about using spray foam in new construction is that you can do a Blower Door test before the drywall goes in. Even better, you can test for leaks with a fog machine. Spray Coating