Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyEditingEdgeUtil.h |
| Include | #include "Operations/PolyEditingEdgeUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyEditingEdgeUtil.cpp |
namespace UE
{
namespace Geometry
{
void UE&58;&58;Geometry&58;&58;ComputeNewGroupIDsAlongEdgeLoop
&40;
FDynamicMesh3 & Mesh,
const TArray< int32 > & LoopEdgeIDs,
TArray< int32 > & NewLoopEdgeGroupIDsOut,
TArray< int32 > & NewGroupIDsOut,
TFunctionRef< bool(int32 Eid1, int32 Eid2)> EdgesShouldHaveSameGroupFunc
&41;
}
}
Remarks
Compute a new set of GroupIDs along an edge loop under the assumption that the edge loop is about to be split and new geometry introduced. The decision is based on a provided EdgesShouldHaveSameGroupFunc function which is called with sequential pairs of edges. For example if this function returns true when the GroupIDs are the same on both edges, then this function will create a new GroupID for each sequential span of non-matching GroupIDs (ie often the "expected" behavior).
Parameters
| Name | Description |
|---|---|
| LoopEdgeIDs | the EdgeIDs of the loop |
| NewLoopEdgeGroupIDsOut | returned with new GroupID for each input EdgeID, same length as LoopEdgeIDs |
| NewGroupIDsOut | list of newly-allocated GroupIDs |
| EdgesShouldHaveSameGroupFunc | predicate that determines where new GroupIDs will be allocated |