Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling > API/Plugins/DynamicMesh/Sampling/FMeshBaseBaker
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshBaseBaker.h |
| Include | #include "Sampling/MeshBaseBaker.h" |
Syntax
enum ECorrespondenceStrategy
&123;
RaycastStandard,
NearestPoint,
RaycastStandardThenNearest,
Identity,
Custom,
&125;
Values
| Name | Description |
|---|---|
| RaycastStandard | Raycast inwards from Point+Thickness*Normal, if that misses, try Outwards from Point, then Inwards from Point |
| NearestPoint | Use geometrically nearest point. Thickness is ignored |
| RaycastStandardThenNearest | Use RaycastStandard but fall back to NearestPoint if none of the rays hit |
| Identity | Assume that BakeTarget == DetailMesh and so no mapping is necessary |
| Custom | Use user-defined strategy for finding correspondence |
Remarks
ECorrespondenceStrategy determines the basic approach that will be used to establish a mapping from points on the BakeTarget Mesh (usually low-poly) to points on the Detail Mesh (eg highpoly). Geometrically this is not a 1-1 mapping so there are various options