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 FMeshBakerDynamicMeshSampler : public UE::Geometry::IMeshBakerDetailSampler
Remarks
DynamicMesh bake detail sampler for baking 1 detail mesh to 1 target mesh.
Variables
| Type | Name | Description | |
|---|---|---|---|
| const FDynamicMesh3 * | DetailMesh | ||
| FBakeDetailNormalTexture | DetailNormalTextureMap | ||
| const FDynamicMeshAABBTree3 * | DetailSpatial | ||
| const FMeshTangentsd * | DetailTangents | ||
| FBakeDetailTexture | DetailTextureMap |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMeshBakerDynamicMeshSampler
(
const FDynamicMesh3* Mesh, |
Overridden from IMeshBakerDetailSampler
| Type | Name | Description | |
|---|---|---|---|
| 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, |
||
| 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 | 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 |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FMeshBakerDynamicMeshSampler & | |||
| FMeshBakerDynamicMeshSampler & | operator=
(
const FMeshBakerDynamicMeshSampler& |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| FBakeDetailTexture | DetailNormalMap | Use DetailNormalTextureMap instead. |
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. |