Navigation
API > API/Runtime > API/Runtime/MeshConversion
References
| Module | MeshConversion |
| Header | /Engine/Source/Runtime/MeshConversion/Public/MeshDescriptionToDynamicMesh.h |
| Include | #include "MeshDescriptionToDynamicMesh.h" |
Syntax
class FMeshDescriptionToDynamicMesh
Remarks
Convert FMeshDescription to FDynamicMesh3
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCalculateMaps | Should we calculate conversion index maps | |
| bool | bDisableAttributes | Ignore all mesh attributes (e.g. UV/Normal layers, color layer, material groups) | |
| bool | bEnableOutputGroups | Should we initialize triangle groups on output mesh | |
| bool | bPrintDebugMessages | If true, will print some possibly-helpful debugging spew to output log | |
| bool | bTransformVertexColorsLinearToSRGB | Should Vertex Colors of MeshDescription be transformed from Linear to SRGB | |
| bool | bVIDsFromNonManifoldMeshDescriptionAttr | 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) | |
| EPrimaryGroupMode | GroupMode | Which mode to use to create groups on output mesh. Ignored if bEnableOutputGroups = false. | |
| TArray< FTriangleID > | TriIDMap | Map from DynamicMesh triangle ID to MeshDescription FTriangleID | |
| TArray< FVertexID > | VertIDMap | Map from DynamicMesh vertex Id to MeshDecription FVertexID. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyVertexColorTransform
(
FVector4f& Color |
Applies an optional Linear-to-sRGB color transform on the input. | |
| void | Convert
(
const FMeshDescription* MeshIn, |
Default conversion of MeshDescription to DynamicMesh | |
| void | CopyTangents
(
const FMeshDescription* SourceMesh, |
Copy tangents from MeshDescription to a FMeshTangents instance. | |
| void | CopyTangents
(
const FMeshDescription* SourceMesh, |
Copy tangents from MeshDescription to a FMeshTangents instance. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EPrimaryGroupMode | Various modes can be used to create output triangle groups |