Navigation
API > API/Developer > API/Developer/MeshUtilities > API/Developer/MeshUtilities/IMeshUtilities
References
| Module | MeshUtilities |
| Header | /Engine/Source/Developer/MeshUtilities/Public/MeshUtilities.h |
| Include | #include "MeshUtilities.h" |
void CalculateTangents
&40;
const TArray< FVector3f > & InVertices,
const TArray< uint32 > & InIndices,
const TArray< FVector2f > & InUVs,
const TArray< uint32 > & InSmoothingGroupIndices,
const uint32 InTangentOptions,
TArray< FVector3f > & OutTangentX,
TArray< FVector3f > & OutTangentY,
TArray< FVector3f > & OutNormals
&41; const
Remarks
Calculates Tangents and Normals for a given set of vertex data
Parameters
| Name | Description |
|---|---|
| InVertices | Vertices that make up the mesh |
| InIndices | Indices for the Vertex array |
| InUVs | Texture coordinates (per-index based) |
| InSmoothingGroupIndices | Smoothing group index (per-face based) |
| InTangentOptions | Flags for Tangent calculation |
| OutTangentX | Array to hold calculated Tangents |
| OutTangentY | Array to hold calculated Bitangents |
| OutNormals | Array to hold calculated normals (if already contains normals will use those instead for the tangent calculation) |