How to change spheres to freeform bumps in algorithm

unhandled

#1

I was able to use the algorithm (SEE attachment) to create the hammered
pattern in the picture attached.

How do I change the sphere to a free form bump? See pic.