Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshRegionBoundaryLoops.h |
Include |
#include "MeshRegionBoundaryLoops.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshRegionBoundaryLoops.cpp |
template<typename StorageType, int ElementSize, typename ElementType>
bool GetLoopOverlayMap
(
const FEdgeLoop & LoopIn,
const TDynamicMeshOverlay< StorageType, ElementSize > & Overlay,
VidOverlayMap< ElementType > & LoopVidsToOverlayElementsOut
)
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.
false if there is an error (if the overlay does not have an element for one of the vids)