Navigation
API > API/Plugins > API/Plugins/DynamicMesh > API/Plugins/DynamicMesh/FSimpleHoleFiller
Description
Updates the normals and UV's of NewTriangles. UV's are taken from VidUVMaps, which is an array of maps (1:1 with UV layers) that map vid's of vertices on the boundary to their UV elements and values. If an entry for NewVertex is not provided, it is set to be the average of the boundary UV's. For other UV's, an entry must exist, though the UV element ID can be InvalidID if an element does not exist for that UV value. The function will update the element ID in the map to point to the new element once it inserts it.
Normals are shared among NewTriangles but not with the surrounding portions of the mesh.
| Name | UpdateAttributes |
| Type | function |
| Header File | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Public/Operations/SimpleHoleFiller.h |
| Include Path | #include "Operations/SimpleHoleFiller.h" |
| Source | /Engine/Plugins/Runtime/GeometryProcessing/Source/DynamicMesh/Private/Operations/SimpleHoleFiller.cpp |
bool UpdateAttributes
(
TArray < FMeshRegionBoundaryLoops::VidOverlayMap< FVector2f > > & VidUVMaps
)
false if there is an error, usually if VidsToUVsMap did not have an entry for a needed vertex ID.
Parameters
| Name | Remarks |
|---|---|
| VidsToUVsMap | A map from vertex ID's of the boundary vertices to UV element ID's and/or their values. When the element ID is invalid, a new element is generated using the value, and the map is updated accordingly. |