Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Sampling
Inheritance Hierarchy
- IMeshBakerDetailSampler
- FMeshBakerDynamicMeshSampler
- FSceneCapturePhotoSetSampler
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Sampling/MeshBakerCommon.h |
| Include | #include "Sampling/MeshBakerCommon.h" |
Syntax
class IMeshBakerDetailSampler
Remarks
Base bake detail sampler class.
This class defines the interface for all sample queries that FMeshBaseBaker supports including the spatial queries for base to detail correspondence sampling.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void * | ComputeCustomCorrespondence
(
const FMeshUVSampleInfo& SampleInfo, |
||
| const void * | FindNearestHitTriangle
(
const FRay3d& Ray, |
Find nearest triangle from the given ray | |
| const void * | FindNearestTriangle
(
const FVector3d& Point, |
||
| FAxisAlignedBox3d | GetBounds () |
||
| void | GetCurvature
(
const void* Mesh, |
TODO: Rework the curvature interface to only compute the minimal set of work. | |
| int32 | GetMaterialID
(
const void* Mesh, |
||
| const FBakeDetailNormalTexture * | GetNormalTextureMap
(
const void* Mesh |
||
| int32 | GetPolyGroupID
(
const void* Mesh, |
||
| const FBakeDetailTexture * | GetTextureMap
(
const void* Mesh |
Retrieve a texture map and UV layer index from a given mesh in the detail set | |
| FIndex3i | GetTriangle
(
const void* Mesh, |
||
| int32 | GetTriangleCount
(
const void* Mesh |
||
| FVector3d | GetTriNormal
(
const void* Mesh, |
||
| bool | HasColors
(
const void* Mesh |
||
| bool | HasNormals
(
const void* Mesh |
||
| bool | HasTangents
(
const void* Mesh |
||
| bool | HasUVs
(
const void* Mesh, |
||
| bool | IsTriangle
(
const void* Mesh, |
||
| bool | IsValidCorrespondence
(
const FMeshMapEvaluator::FCorrespondenceSample& Sample |
||
| void | ProcessMeshes
(
TFunctionRef< void(const void*)> ProcessFn |
Iterate over each mesh in the detail set. | |
| void | SetNormalTextureMap
(
const void* Mesh, |
Associate a normal map and UV layer index for a given mesh in the detail set | |
| void | SetTangents
(
const void* Mesh, |
Set the tangents for a given mesh | |
| void | SetTextureMap
(
const void* Mesh, |
Associate a texture map and UV layer index for a given mesh in the detail set | |
| bool | |||
| bool | |||
| bool | |||
| bool | |||
| bool | TestAnyHitTriangle
(
const FRay3d& Ray, |
Return true if any triangles hit by the given ray | |
| bool | TriBaryInterpolateColor
(
const void* Mesh, |
Compute interpolated vertex color value inside triangle using barycentric coordinates | |
| bool | TriBaryInterpolateNormal
(
const void* Mesh, |
Compute interpolated Normal value inside triangle using barycentric coordinates | |
| FVector3d | TriBaryInterpolatePoint
(
const void* Mesh, |
Compute interpolated Position value inside triangle using barycentric coordinates | |
| bool | TriBaryInterpolateTangents
(
const void* Mesh, |
Compute interpolated tangent values inside triangle using barycentric coordinates | |
| bool | TriBaryInterpolateUV
(
const void* Mesh, |
Compute interpolated UV value inside triangle using barycentric coordinates |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EBakeDetailNormalSpace |
Typedefs
| Name | Description |
|---|---|
| FBakeDetailNormalTexture | (Image, NormalSpace, UVLayer) tuple for detail normal textures |
| FBakeDetailTexture | (Image, UVLayer) pair for detail textures |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| const FBakeDetailTexture * | GetNormalMap
(
const void* Mesh |
Use GetNormalTextureMap instead. This implementation assumes tangent normals. | |
| void | SetNormalMap
(
const void* Mesh, |
Use SetNormalTextureMap instead. This implementation assumes tangent normals. |