FDynamicMeshToMeshDescription::UpdateTangents

Update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed.

Windows
MacOS
Linux

References

Module

MeshConversion

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/MeshConversion/Public/DynamicMeshToMeshDescription.h

Include

#include "DynamicMeshToMeshDescription.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/MeshConversion/Private/DynamicMeshToMeshDescription.cpp

Syntax

void UpdateTangents
(
    const FDynamicMesh3 * MeshIn,
    FMeshDescription & MeshOut,
    const TMeshTangents< double > * Tangents
)

Remarks

Update the Tangent and BinormalSign attributes of the MeshDescription, assuming mesh topology has not changed. Does not modify any other attributes.

assumes the order of triangles in the MeshIn correspond to the ordering you'd get by iterating over polygons, then tris-in-polygons, on MeshOut This matches conversion currently used in MeshDescriptionToDynamicMesh.cpp, but if that changes we will need to change this function to match!

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