Navigation
API > API/Plugins > API/Plugins/DynamicMesh
Description
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).
| Name | UE::Geometry::ComputeNewGroupIDsAlongEdgeLoop |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/PolyEditingEdgeUtil.h |
| Include Path | #include "Operations/PolyEditingEdgeUtil.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/PolyEditingEdgeUtil.cpp |
namespace UE
{
namespace Geometry
{
void UE::Geometry::ComputeNewGroupIDsAlongEdgeLoop
(
FDynamicMesh3 & Mesh,
const TArray < int32 > & LoopEdgeIDs,
TArray < int32 > & NewLoopEdgeGroupIDsOut,
TArray < int32 > & NewGroupIDsOut,
TFunctionRef < bool> EdgesShouldHaveSameGroupFunc
)
}
}
Parameters
| Name | Remarks |
|---|---|
| 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 |