To get the best possible estimate, obviously you would sample with an infinitely fine grid.
In reality this is not possible or practical in most situations, as you want to finish you measurements in a sensible time frame and other considerations like fluctuations over time and damage to the sample/equipment will become an issue.
Therefore you need to sample your measurement space using some sampling method, of which uniform sampling is one of many.
If we consider the problem in the frequency domain Nyquist-Shannon sampling theory says that in order to accurately reconstruct the underlying function $m$ you must sample at least twice the maximum frequency in $m$.
This is not a problem for linear or periodic functions by if you sample below this frequency it can result in spurious effects such as aliasing. A good example of this is if you try and measure the amplitude of a periodic signal at the same frequency as the underlying signal you will conclude its amplitude is zero!
However, functions with discontinuities have infinite range of spatial frequencies. Therefore, there will always be some error due to the sampling. In many cases these errors will be minor and are generally decreased by increasing sampling frequency. As a side note similar issues can occur for any non-periodic signals or periodic signals when the number of periods in the measurement window is not a whole number - generally this is not a big concern, though.
On specific sampling methods, uniform sampling is often favored as it is very easy to do and requires little calculation. However, as mentioned above it has a finite frequency response which can cause issues when measuring high frequency data.
The other commonly used sampling method is simple random sampling where positions are selected randomly throughout the measurement space. This approach has a theoretically infinite bandwidth and so aliasing is less of a problem and the data is easy to treat mathematically. However, depending on your set-up it can be more difficult to perform as you must generate random positions. Additionally, there are often large areas of the measurement space with sparse coverage, which can result in some poor estimates, especially if discontinuities lie in those areas.
There are many other advanced sampling methods which are designed to help deal with these issues such as adaptive sampling. These approaches are designed to give better results for difficult to measure surfaces, but are often mathematically complex and difficult to implement in practice.