PhysX 3.4 - Simplest way to ignore shapes overlapping raycast origin?

What’s the fastest/simplest way to exclude shapes overlapping the raycast origin from being reported as a hit? I can’t find anything in the documentation about adjusting the default behaviour of the raycast etc. methods of reporting a hit with distance = 0.

In case someone else needs this, you can use a PxQueryFilterCallback with a postFilter like this:

PxQueryHitType::Enum postFilter (const PxFilterData &filterData, const PxQueryHit &hit)
        {
			if (static_cast<const PxRaycastHit&>(hit).hadInitialOverlap()) 
			{
				return PxQueryHitType::eNONE;
			}
			return PxQueryHitType::eBLOCK;
        }