How can I programmatically create a mesh similar to this one?
Here's my attempt at simulating your reference image using modifiers:



All it is is a cube with some modifiers:



The ocean modifier generates the base mesh/distortions, and the waves are done with a displace modifier using a wood texture.





There was a project/challenge a while back called "default cubisim" with a lot of great examples of modifier art.