A reliable reference is the key to characterize surface topography. Gaussian filtering is strongly recommended by experts in the international standardization field. However, it can be affected by abnormal surface features. Based on the principle of M-estimation, a novel robust weighting function is proposed to improve the Gaussian filtering and a 3D robust Gaussian filtering model is developed. Experimental results have proven them effective.