distanceStencil test