Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/Operations > API/Plugins/DynamicMesh/Operations/FAverageOverlayToVertices
References
| Module | DynamicMesh |
| Header | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/AverageOverlayToVertices.h |
| Include | #include "Operations/AverageOverlayToVertices.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/AverageOverlayToVertices.cpp |
template<typename RealType, int ElementSize>
bool AverageOverlay
(
const TDynamicMeshOverlay < RealType, ElementSize > * Overlay,
TArray < RealType > & VertexValues,
TArray < bool > & HasElements
)
Remarks
Compute the per-vertex values which are the weighted average of all vertex element values stored in the overlay. true on success, false otherwise
Parameters
| Name | Description |
|---|---|
| Overlay | Overlay containing the element values to be averaged. |
| VertexValues | Array of per-vertex averaged element values. The size is either equal to the ElementSizeMesh.MaxVertexID() or ElementSizeSelection.Num() if Selection is not empty. |
| HasElements | Array of per-vertex flags, indicating if the vertex had at least one element set in the overlay and contains correct averaged value. |