TMeshSurfaceUVSampler::Initialize

Configure the sampler.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshSurfaceSampler.h

Include

#include "Sampling/MeshSurfaceSampler.h"

Syntax

virtual void Initialize
(
    const FDynamicMesh3 * MeshIn,
    const FDynamicMeshUVOverlay * UVOverlayIn,
    EMeshSurfaceSamplerQueryType QueryTypeIn,
    SampleType ZeroValueIn,
    TUniqueFunction< void &SampleInfo, SampleType &SampleValueOut)> SampleValueFunctionIn
)

Remarks

Configure the sampler.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss