Vapor deposition or gas diffusion