FMeshRegionBoundaryLoops::GetLoopOverlayMap

Generates a map from vertex ID's of the loop vertices to corresponding overlay element ID's and values.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshRegionBoundaryLoops.h

Include

#include "MeshRegionBoundaryLoops.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshRegionBoundaryLoops.cpp

Syntax

template<typename StorageType, int ElementSize, typename ElementType>
bool GetLoopOverlayMap
(
    const FEdgeLoop & LoopIn,
    const TDynamicMeshOverlay< StorageType, ElementSize > & Overlay,
    VidOverlayMap< ElementType > & LoopVidsToOverlayElementsOut
)

Remarks

Generates a map from vertex ID's of the loop vertices to corresponding overlay element ID's and values. The elements chosen are those associated with the internal triangle whose edge goes out of that vertex in the loop direction. The function is useful in cases where the triangles inside the loop will be deleted and replaced, and we want to keep the same UV's on the border vertices. Does not clear LoopVidsToOverlayElementsOut before use (simply adds to it), so could be used for multiple loops.

Returns

false if there is an error (if the overlay does not have an element for one of the vids)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss