EDuplicateTriBehavior

In ReinsertSubmesh, a problem can arise where the mesh we are inserting has duplicate triangles of the base mesh.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "DynamicMeshEditor.h"

Syntax

enum EDuplicateTriBehavior
{
    EnsureContinue,
    EnsureAbort,
    UseExisting,
    Replace,
}

Values

Name

Description

EnsureContinue

EnsureAbort

UseExisting

Replace

Remarks

In ReinsertSubmesh, a problem can arise where the mesh we are inserting has duplicate triangles of the base mesh.

This can lead to problematic behavior later. We can do various things, like delete and replace that existing triangle, or just use it instead of adding a new one. Or fail, or ignore it.

This enum/argument controls the behavior. However, fundamentally this kind of problem should be handled upstream!! For example by not trying to remesh areas that contain nonmanifold geometry...

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