TDynamicMeshOverlay::SplitElementWithNewParent

Create a new copy of ElementID, and update connected triangles in the TrianglesToUpdate array to reference the copy of ElementID where they used to reference ElementID.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "DynamicMeshOverlay.h"

Source

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

Syntax

int SplitElementWithNewParent
(
    int ElementID,
    int SplitParentVertexID,
    const TArrayView< const int > & TrianglesToUpdate
)

Remarks

Create a new copy of ElementID, and update connected triangles in the TrianglesToUpdate array to reference the copy of ElementID where they used to reference ElementID. The new element will have the given parent vertex ID.

Returns

the ID of the newly created element

Parameters

Parameter

Description

ElementID

the element to copy

SplitParentVertexID

the new parent vertex for copied elements

TrianglesToUpdate

the triangles that should now reference the new element. Note: this is allowed to include triangles that do not have the element at all; sometimes you may want to do so to avoid creating a new array for each call.

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