Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling > API/Plugins/DynamicMesh/Sampling/TMeshSurfaceUVSampler
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshSurfaceSampler.h |
| Include | #include "Sampling/MeshSurfaceSampler.h" |
virtual void Initialize
(
const FDynamicMesh3 * MeshIn,
const FDynamicMeshUVOverlay * UVOverlayIn,
EMeshSurfaceSamplerQueryType QueryTypeIn,
SampleType ZeroValueIn,
TUniqueFunction < void &SampleInfo, SampleType &SampleValueOut)> SampleValueFunctionIn
)
Remarks
Configure the sampler.
Parameters
| Name | Description |
|---|---|
| MeshIn | mesh to sample |
| UVOverlayIn | UV overlay of MeshIn to sample |
| QueryTypeIn | type of query functions we will call. Some queries are simpler and do not require spatial data structures. |
| ZeroValueIn | the value that is returned if a sample cannot be found |
| SampleValueFunctionIn | This function is called to compute the sample at a given UV location. SampleInfo provides the necessary UV/3D correspondence data. |