Navigation
API > API/Developer > API/Developer/MeshUtilities > API/Developer/MeshUtilities/IMeshUtilities
Description
Calculate The tangent, bi normal and normal for the triangle define by the tree SoftSkinVertex.
The function will always fill properly the OutTangents array with 3 FVector. If the triangle is degenerated the OutTangent will contain zeroed vectors.
| Name | CalculateTriangleTangent |
| Type | function |
| Header File | /Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h |
| Include Path | #include "MeshUtilities.h" |
void CalculateTriangleTangent
(
const FSoftSkinVertex & VertexA,
const FSoftSkinVertex & VertexB,
const FSoftSkinVertex & VertexC,
TArray < FVector3f > & OutTangents,
float CompareThreshold
)
Parameters
| Name | Remarks |
|---|---|
| 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. |