UDynamicMeshComponent::FastNotifyTriangleVerticesUpdated_ApplyPrecompute

This function updates vertex positions/attributes of existing SceneProxy render buffers if possible, for the given triangles.

Choose your operating system:

Windows

macOS

Linux

References

Module

GeometryFramework

Header

/Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h

Include

#include "Components/DynamicMeshComponent.h"

Source

/Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp

Syntax

void FastNotifyTriangleVerticesUpdated_ApplyPrecompute
(
    const TArray< int32 > & Triangles,
    EMeshRenderAttributeFlags UpdatedAttributes,
    TFuture< bool > & Precompute,
    const TArray< int32 > & UpdateSets,
    const UE::Geometry::FAxisAlignedBox3d & UpdateSetBounds
)

Remarks

This function updates vertex positions/attributes of existing SceneProxy render buffers if possible, for the given triangles. The assumption is that FastNotifyTriangleVerticesUpdated_TryPrecompute() was used to get the Precompute future, this function will Wait() until it is done and then use the UpdateSets and UpdateSetBounds that were computed (must be the same variables passed to FastNotifyTriangleVerticesUpdated_TryPrecompute). If the Precompute future returns false, then we forward the call to FastNotifyTriangleVerticesUpdated(), which will do more work.