Does anyone know where i can find the algorithm that make a 3d object looks like a
carpet (The hammer punch effect)?

You can see an example in the pic below.
Thanks

http://www.cs.technion.ac.il/Images/...effa_rhino.jpg