A generalized approximation for the meshfree analysis of solids