FDynamicMeshEditor::DuplicateTriangles

Duplicate triangles of a mesh.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/DynamicMeshEditor.h

Include

#include "DynamicMeshEditor.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/DynamicMeshEditor.cpp

Syntax

void DuplicateTriangles
(
    const TArray< int > & Triangles,
    FMeshIndexMappings & IndexMaps,
    FDynamicMeshEditResult & ResultOut
)

Remarks

Duplicate triangles of a mesh. This duplicates the current groups and also any attributes existing on the triangles. Make a copy of provided triangles, with new vertices. You provide IndexMaps because you know if you are doing a small subset or a full-mesh-copy.

Parameters

Parameter

Description

Triangles

the triangles to duplicate

IndexMaps

returned mappings from old to new triangles/vertices/etc (you may initialize to optimize memory usage, etc)

ResultOut

lists of newly created triangles/vertices/etc

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