Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/TDynamicMeshOverlay
Description
Refine an existing overlay topology. For any element on a given triangle, if the predicate returns true, it gets topologically split out so it isn't shared by any other triangle. Used for creating sharp vertices in the normals overlay.
| Name | SplitVerticesWithPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/DynamicMeshOverlay.h |
| Include Path | #include "DynamicMesh/DynamicMeshOverlay.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/DynamicMeshOverlay.cpp |
void SplitVerticesWithPredicate
(
TFunctionRef < bool> ShouldSplitOutVertex,
TFunctionRef < void> GetNewElementValue
)
Parameters
| Name | Remarks |
|---|---|
| ShouldSplitOutVertex | predicate returns true of the element should be split out and not shared w/ any other triangle |
| GetNewElementValue | function to assign a new value to any element that is split out |