Build moving least square shape function and test it.