Tessellation of a generic surface

 From:  wastzzz
7601.1 
Hi,
I would need to generate the tessellated version of a generic surface, I tried to implement it by myself but without results :p the output should be a joined surface made of quads following an average.
Is it too much to ask for an inverse subD script?
Regards,
Max.

EDITED: 7 Sep 2015 by WASTZZZ