Ensure no gap between shafts and holes.
A is distance between the flat portions and the centerline of the orange part. It is determined according to allowed smallest value of the distance to be measured.
Insert two feeler gauges (of equal thickness and as thick as possible) into both gaps between the blue shaft and the flat portions of the orange part to get the value B (feeler gauge thickness).
Measuring result: D = A + B