Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/DynamicMesh > API/Runtime/GeometryCore/DynamicMesh/FDynamicMesh3 > API/Runtime/GeometryCore/DynamicMesh/FDynamicMesh3/CollapseEdge
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMesh3.h |
| Include | #include "DynamicMesh/DynamicMesh3.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMesh3_Edits.cpp |
virtual EMeshResult CollapseEdge
(
int KeepVertID,
int RemoveVertID,
double EdgeParameterT,
FEdgeCollapseInfo & CollapseInfo
)
Remarks
Collapse the edge between the two vertices, if topologically possible. Equivalent to calling the options overload with default options. Ok on success, or enum value indicates why operation cannot be applied. Mesh remains unmodified on error.
Parameters
| Name | 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, EdgeParameterT) |
| CollapseInfo | returned information about new and modified mesh elements |