An approximation method of the local type. Application to a problem of heart potential mapping