Module |
|
Header |
/Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h |
Include |
#include "MeshUtilities.h" |
void CalculateTriangleTangent
(
const FSoftSkinVertex & VertexA,
const FSoftSkinVertex & VertexB,
const FSoftSkinVertex & VertexC,
TArray< FVector > & OutTangents,
float CompareThreshold
)
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.
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. |