FMeshDescriptionToDynamicMesh

Convert [FMeshDescription](API\Runtime\MeshDescription\FMeshDescription) to FDynamicMesh3

Choose your operating system:

Windows

macOS

Linux

References

Module

MeshConversion

Header

/Engine/Source/Runtime/MeshConversion/Public/MeshDescriptionToDynamicMesh.h

Include

#include "MeshDescriptionToDynamicMesh.h"

Syntax

class FMeshDescriptionToDynamicMesh

Remarks

Convert FMeshDescription to FDynamicMesh3

Variables

Name Description

Public variable

bool

 

bCalculateMaps

Should we calculate conversion index maps

Public variable

bool

 

bDisableAttributes

Ignore all mesh attributes (e.g. UV/Normal layers, color layer, material groups)

Public variable

bool

 

bEnableOutputGroups

Should we initialize triangle groups on output mesh

Public variable

bool

 

bPrintDebugMessages

If true, will print some possibly-helpful debugging spew to output log

Public variable

EPrimaryGroupMo...

 

GroupMode

Which mode to use to create groups on output mesh. Ignored if bEnableOutputGroups = false.

Public variable

TArray< FTriang...

 

TriIDMap

Map from DynamicMesh triangle ID to MeshDescription FTriangleID

Public variable

TArray< FVertex...

 

VertIDMap

Map from DynamicMesh vertex Id to MeshDecription FVertexID.

Functions

Name Description

Public function

void

 

Convert

(
    const FMeshDescription* MeshIn,
    FDynamicMesh3& MeshOut,
    bool bCopyTangents
)

Default conversion of MeshDescription to DynamicMesh

Public function

void

 

CopyTangents

(
    const FMeshDescription* Source...,
    const FDynamicMesh3* TargetMes...,
    UE::Geometry::TMeshTangents< float ...
)

Copy tangents from MeshDescription to a FMeshTangents instance.

Public function

void

 

CopyTangents

(
    const FMeshDescription* Source...,
    const FDynamicMesh3* TargetMes...,
    UE::Geometry::TMeshTangents< double...
)

Copy tangents from MeshDescription to a FMeshTangents instance.

Enums

Name

Description

Public enum

EPrimaryGroupMode

Various modes can be used to create output triangle groups