IMeshUtilities::CalculateTriangleTangent

Calculate The tangent, bi normal and normal for the triangle define by the tree SoftSkinVertex.

Windows
MacOS
Linux

References

Module

MeshUtilities

Header

/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h

Include

#include "MeshUtilities.h"

Syntax

void CalculateTriangleTangent
(
    const FSoftSkinVertex & VertexA,
    const FSoftSkinVertex & VertexB,
    const FSoftSkinVertex & VertexC,
    TArray< FVector > & OutTangents,
    float CompareThreshold
)

Remarks

Calculate The tangent, bi normal and normal for the triangle define by the tree SoftSkinVertex.

@note The function will always fill properly the OutTangents array with 3 FVector. If the triangle is degenerated the OutTangent will contain zeroed vectors.

Parameters

Parameter

Description

VertexA

First triangle vertex.

VertexB

Second triangle vertex.

VertexC

Third triangle vertex.

OutTangents

The function allocate the TArray with 3 FVector, to represent the triangle tangent, bi normal and normal.

CompareThreshold

The threshold use to compare a tangent vector with zero.

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