The roughness of surfaces can be determined e.g. by means of the profile scanning process.

In this process, the surface of the component is scanned with a diamond tip. The needle movement is recorded inductively. The Ra value of the surface can be directly determined by appropriately filtering the measured electrical signals. The roughness of casting surfaces is a quality feature of the casting (s. a. Surface quality).

Additional references:
Surface roughness
Rough surface