Navigation
API > API/Runtime > API/Runtime/MeshConversion
Convert FDynamicMesh3 to FMeshDescription
| Name | FDynamicMeshToMeshDescription |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshConversion/Public/DynamicMeshToMeshDescription.h |
| Include Path | #include "DynamicMeshToMeshDescription.h" |
Syntax
class FDynamicMeshToMeshDescription
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDynamicMeshToMeshDescription
(
FConversionToMeshDescriptionOptions ConversionOptions |
DynamicMeshToMeshDescription.h | ||
| DynamicMeshToMeshDescription.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bPrintDebugMessages | bool | If true, will print some possibly-helpful debugging spew to output log | DynamicMeshToMeshDescription.h | |
| ConversionOptions | FConversionToMeshDescriptionOptions | General settings for conversions to mesh description | DynamicMeshToMeshDescription.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaterialIDToPolygroupIDMap | TArray< int32 > | Optional remapping from dynamic mesh material ID to desired mesh description polygroup IDs. | DynamicMeshToMeshDescription.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Convert
(
const FDynamicMesh3* MeshIn, |
Default conversion of DynamicMesh to MeshDescription. | DynamicMeshToMeshDescription.h | |
void Convert_NoAttributes
(
const FDynamicMesh3* MeshIn, |
Internal functions that you can also call directly Ignore any Attributes on input Mesh, calculate per-vertex normals and have MeshDescription compute tangents. | DynamicMeshToMeshDescription.h | |
void Convert_NoSharedInstances
(
const FDynamicMesh3* MeshIn, |
Convert with no shared VertexInstances. | DynamicMeshToMeshDescription.h | |
void Convert_SharedInstances
(
const FDynamicMesh3* MeshIn, |
Convert while minimizing VertexInstance count, IE new VertexInstances are only created if a unique UV or Normal is required. | DynamicMeshToMeshDescription.h | |
bool HaveMatchingElementCounts
(
const FDynamicMesh3* DynamicMesh, |
Checks if element counts match. | DynamicMeshToMeshDescription.h | |
void SetMaterialIDMapFromInverseMap
(
TArrayView< const int32 > PolygroupIDToMaterialIDMap |
Set MaterialID to Polygroup mapping via the reverse mapping. | DynamicMeshToMeshDescription.h | |
void Update
(
const FDynamicMesh3* MeshIn, |
Update existing MeshDescription based on DynamicMesh. | DynamicMeshToMeshDescription.h | |
void UpdateAttributes
(
const FDynamicMesh3* MeshIn, |
Update only attributes, assuming the mesh topology has not changed. | DynamicMeshToMeshDescription.h | |
void UpdateTangents
(
const FDynamicMesh3* MeshIn, |
Use the MeshIn Overlays to update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed. | DynamicMeshToMeshDescription.h | |
void UpdateTangents
(
const FDynamicMesh3* MeshIn, |
Use the TMeshTangents to update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed. | DynamicMeshToMeshDescription.h | |
void UpdateUsingConversionOptions
(
const FDynamicMesh3* MeshIn, |
Updates the given mesh description based conversion options provided in the constructor. | DynamicMeshToMeshDescription.h | |
void UpdateVertexColors
(
const FDynamicMesh3* MeshIn, |
Update only vertex colors, assuming the mesh topology has not changed. | DynamicMeshToMeshDescription.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyVertexColorTransform
(
FVector4f& Color |
Applies an optional sRGB-to-Linear color transform on the input. | DynamicMeshToMeshDescription.h | |
void ConvertPolygroupLayers
(
const FDynamicMesh3* MeshIn, |
Transfer PolygroupLayers from DynamicMesh AttributeSet to MeshDescription. | DynamicMeshToMeshDescription.h | |
void ConvertWeightLayers
(
const FDynamicMesh3* MeshIn, |
Transfer WeightLayers from DynamicMesh AttributeSet to MeshDescription. | DynamicMeshToMeshDescription.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool HaveMatchingElementCounts
(
const FDynamicMesh3* DynamicMesh, |
Checks if element counts match. If false then Update can't be called you must call Convert | DynamicMeshToMeshDescription.h |