FDynamicMesh3::CollapseEdge

Collapse the edge between the two vertices, if topologically possible.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

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

Include

#include "DynamicMesh3.h"

Source

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

Syntax

virtual EMeshResult CollapseEdge
(
    int KeepVertID,
    int RemoveVertID,
    double EdgeParameterT,
    FEdgeCollapseInfo & CollapseInfo
)

Remarks

Collapse the edge between the two vertices, if topologically possible.

Returns

Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.

Parameters

Parameter

Description

KeepVertID

index of the vertex that should be kept

RemoveVertID

index of the vertex that should be removed

EdgeParameterT

vKeep is moved to Lerp(KeepPos, RemovePos, collapse_t)

CollapseInfo

returned information about new and modified mesh elements

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