3D Patterns on Compound Surfaces/Solids

Looks like both of these could be made fairly simply using Grasshopper. The first is a regular grid while I think you could make the base for the second one using a Vironoi mesh.