Note: This class is similar toTMeshSurfaceUVSampler(the "old" class) but provides a more convenient API. This class computes the sample info and that's it. The old class computes the sample info internally but also immediately forwards it to an application-specific sampling function which must be provided as a callback and hence has a fixed signature and requires that the sample type is passed as a template parameter. Also the old class is more awkward to use when sampling multiple things, see the documentation ofTMeshSurfaceUVSamplerfor more details.