FDynamicMeshToMeshDescription::ConvertPolygroupLayers

Transfer PolygroupLayers from DynamicMesh AttributeSet to MeshDescription.

Choose your operating system:

Windows

macOS

Linux

References

Module

MeshConversion

Header

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

Include

#include "DynamicMeshToMeshDescription.h"

Source

/Engine/Source/Runtime/MeshConversion/Private/DynamicMeshToMeshDescription.cpp

Syntax

void ConvertPolygroupLayers
(
    const FDynamicMesh3 * MeshIn,
    FMeshDescription & MeshOut,
    const TArray< FTriangleID > & IndexToTriangleIDMap
)

Remarks

Transfer PolygroupLayers from DynamicMesh AttributeSet to MeshDescription. Will copy to existing MeshDescription TriangleAttribute if one with the same name exists. Otherwise will register a new one.