IMeshUtilities::CalculateNormals

Calculates Normals for a given set of vertex data

Windows
MacOS
Linux

References

Module

MeshUtilities

Header

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

Include

#include "MeshUtilities.h"

Syntax

void CalculateNormals
(
    const TArray< FVector > & InVertices,
    const TArray< uint32 > & InIndices,
    const TArray< FVector2D > & InUVs,
    const TArray< uint32 > & InSmoothingGroupIndices,
    const uint32 InTangentOptions,
    TArray< FVector > & OutNormals
) const

Remarks

Calculates Normals for a given set of vertex data

Parameters

Parameter

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

OutNormals

Array to hold calculated normals

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