Navigation
API > API/Plugins > API/Plugins/DynamicMesh
FMeshSurfaceUVSampler computes FMeshUVSampleInfo's on a given mesh at given UV-space positions, this info can then be used by an external function to compute some application-specific sample.
Note: This class is similar to TMeshSurfaceUVSampler (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 of TMeshSurfaceUVSampler for more details.
| Name | FMeshSurfaceUVSampler |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshSurfaceSampler.h |
| Include Path | #include "Sampling/MeshSurfaceSampler.h" |
Syntax
class FMeshSurfaceUVSampler : public UE::Geometry::FMeshSurfaceUVSamplerFixLayout
Inheritance Hierarchy
- FMeshSurfaceUVSamplerFixLayout → FMeshSurfaceUVSampler
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Initialize
(
const FDynamicMesh3* Mesh, |
Initialize the sampler. | Sampling/MeshSurfaceSampler.h | |
virtual bool QuerySampleInfo
(
const FVector2d& UV, |
Fill in the given SampleInfo for the given UV location. | Sampling/MeshSurfaceSampler.h | |
virtual bool QuerySampleInfo
(
int32 UVTriangleID, |
Fill in the given SampleInfo for the given UV location in the given UVTriangleID. | Sampling/MeshSurfaceSampler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void InitializeUVMeshSpatial() |
Sampling/MeshSurfaceSampler.h |