FSimpleHoleFiller::UpdateAttributes

Updates the normals and UV's of NewTriangles.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/Operations/SimpleHoleFiller.h

Include

#include "Operations/SimpleHoleFiller.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/Operations/SimpleHoleFiller.cpp

Syntax

bool UpdateAttributes
(
    TArray< FMeshRegionBoundaryLoops::VidOverlayMap< FVector2f >> & VidUVMaps
)

Remarks

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 the UV element for a vertex does not yet exist in the overlay, the corresponding element ID should be InvalidID. The function will update it to point to the new element once it inserts it.

Normals are shared among NewTriangles but not with the surrounding portions of the mesh.

Returns

false if there is an error, usually if VidsToUVsMap did not have an entry for a needed vertex ID.

Parameters

Parameter

Description

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.

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