Navigation
API > API/Runtime > API/Runtime/MeshConversion
Convert FMeshDescription to FDynamicMesh3
| Name | FMeshDescriptionToDynamicMesh |
| Type | class |
| Header File | /Engine/Source/Runtime/MeshConversion/Public/MeshDescriptionToDynamicMesh.h |
| Include Path | #include "MeshDescriptionToDynamicMesh.h" |
Syntax
class FMeshDescriptionToDynamicMesh
Enums
Public
| Name | Remarks |
|---|---|
| EPrimaryGroupMode | Various modes can be used to create output triangle groups |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCalculateMaps | bool | Should we calculate conversion index maps | MeshDescriptionToDynamicMesh.h | |
| bDisableAttributes | bool | Ignore all mesh attributes (e.g. UV/Normal layers, color layer, material groups) | MeshDescriptionToDynamicMesh.h | |
| bEnableOutputGroups | bool | Should we initialize triangle groups on output mesh | MeshDescriptionToDynamicMesh.h | |
| bPrintDebugMessages | bool | If true, will print some possibly-helpful debugging spew to output log | MeshDescriptionToDynamicMesh.h | |
| bTransformVertexColorsLinearToSRGB | bool | Should Vertex Colors of MeshDescription be transformed from Linear to SRGB | MeshDescriptionToDynamicMesh.h | |
| bUseCompactedPolygonGroupIDValues | bool | Set this flag to transform Polygon Group IDs to their compacted indices, before using them as material indices in other words, 'holes' in the Mesh Description's PolygonGroups array are removed by shifting the subsequent IDs down | MeshDescriptionToDynamicMesh.h | |
| bVIDsFromNonManifoldMeshDescriptionAttr | bool | If the source MeshDescription is non-manifold, store mesh vertex id as a vertex attribute on the result mesh This data can be accessed using FNonManifoldMappingSupport ( see NonManifoldMappingSupport.h) | MeshDescriptionToDynamicMesh.h | |
| GroupMode | EPrimaryGroupMode | Which mode to use to create groups on output mesh. Ignored if bEnableOutputGroups = false. | MeshDescriptionToDynamicMesh.h | |
| TriIDMap | TArray< FTriangleID > | Map from DynamicMesh triangle ID to MeshDescription FTriangleID | MeshDescriptionToDynamicMesh.h | |
| VertIDMap | TArray< FVertexID > | Map from DynamicMesh vertex Id to MeshDecription FVertexID. | MeshDescriptionToDynamicMesh.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PolygonGroupToMaterialIndexMap | TArray< int32 > | Mapping from mesh description polygon group element IDs to material indices | MeshDescriptionToDynamicMesh.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Convert
(
const FMeshDescription* MeshIn, |
Default conversion of MeshDescription to DynamicMesh | MeshDescriptionToDynamicMesh.h | |
void CopyTangents
(
const FMeshDescription* SourceMesh, |
Copy tangents from MeshDescription to a FMeshTangents instance. | MeshDescriptionToDynamicMesh.h | |
void CopyTangents
(
const FMeshDescription* SourceMesh, |
Copy tangents from MeshDescription to a FMeshTangents instance. | MeshDescriptionToDynamicMesh.h | |
void SetPolygonGroupToMaterialIndexMap
(
const TArray< int32 >& PolygonGroupToMaterialIndexMapIn |
Set an optional mapping from mesh description polygon group to dynamic mesh material indices; if unset, an identity map is assumed | MeshDescriptionToDynamicMesh.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ApplyVertexColorTransform
(
FVector4f& Color |
Applies an optional Linear-to-sRGB color transform on the input. | MeshDescriptionToDynamicMesh.h |