Building Porous Foam structure using grasshopper

You can use Dendro

and this