Navigation
API > API/Plugins > API/Plugins/MeshPartition > API/Plugins/MeshPartition/FMeshData
Description
Merge pairs of vertices, mapping all indices in triangles from the discarded vertex to the kept vertex. Any attributes on the discarded vertex are simply discarded and only the attributes on the kept vertex remain.
This function is optimized for performance and does not support or validate that the list of merge pairs does not contain duplicates, or that the same vertex does not map to two separate kept vertices. These constraints are left up to the caller to ensure.
| Name | MergeVertexPairs |
| Type | function |
| Header File | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Public/MeshPartitionMeshData.h |
| Include Path | #include "MeshPartitionMeshData.h" |
| Source | /Engine/Plugins/Experimental/MeshPartition/Source/MeshPartition/Private/MeshPartitionMeshData.cpp |
void MergeVertexPairs
(
TConstArrayView< TPair< int, int > > InMergePairs,
TOptional < TConstArrayView< int > > InTriangleFilter
)
Parameters
| Name | Remarks |
|---|---|
| InMergePairs | List of pairs of merges in the format {KeepVID, DiscardVID}. |
| InTriangleFilter | Optional parameter which reduces the subset of triangles which could possibly be modified when fixing triangle indices. This improves the performance as the VID -> TriangleID map is restricted. |