FDynamicMeshToMeshDescription

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

Windows
MacOS
Linux

References

Module

MeshConversion

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/MeshConversion/Public/DynamicMeshToMeshDescription.h

Include

#include "DynamicMeshToMeshDescription.h"

Syntax

class FDynamicMeshToMeshDescription

Remarks

Variables

Name Description

Public variable

bool

 

bPrintDebugMessages

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

Public variable

FConversionToMe...

 

ConversionOptions

General settings for conversions to mesh description

Constructors

Functions

Name Description

Public function

void

 

Convert

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut
)

Default conversion of DynamicMesh to MeshDescription. Calls functions below depending on mesh state

Public function

void

 

Convert_NoAttributes

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut
)

Internal functions that you can also call directly Ignore any Attributes on input Mesh, calculate per-vertex normals and have MeshDescription compute tangents.

Public function

void

 

Convert_NoSharedInstances

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut
)

Convert with no shared VertexInstances.

Public function

void

 

Convert_SharedInstances

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut
)

Convert while minimizing VertexInstance count, IE new VertexInstances are only created if a unique UV or Normal is required.

Public function

bool

 

HaveMatchingElementCounts

(
    const FDynamicMesh3* DynamicMe...,
    const FMeshDescription* MeshDe...
)

Checks if element counts match.

Public function Static

bool

 

HaveMatchingElementCounts

(
    const FDynamicMesh3* DynamicMe...,
    const FMeshDescription* MeshDe...,
    bool bVerticesOnly,
    bool bAttributesOnly
)

Checks if element counts match. If false then Update can't be called you must call Convert

Public function

void

 

Update

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut,
    bool bUpdateNormals,
    bool bUpdateUVs
)

Update existing MeshDescription based on DynamicMesh.

Public function

void

 

UpdateAttributes

(
    const FDynamicMesh3* MeshIn,
    FMeshDescription& MeshOut,
    bool bUpdateNormals,
    bool bUpdateUVs
)

Update only attributes, assuming the mesh topology has not changed.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss