FMeshNormals::QuickComputeVertexNormalsForTriangles

Compute per-vertex normals for the vertices of a set of triangles of a Mesh

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshNormals.h

Include

#include "MeshNormals.h"

Source

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshNormals.cpp

Syntax

static void QuickComputeVertexNormalsForTriangles
(
    FDynamicMesh3 & Mesh,
    const TArray< int32 > & Triangles,
    bool bWeightByArea,
    bool bWeightByAngle,
    bool bInvert
)

Remarks

Compute per-vertex normals for the vertices of a set of triangles of a Mesh

Parameters

Parameter

Description

bWeightByArea

weight neighbor triangles by area

bWeightByAngle

weight neighbor triangles by angle

bInvert

if true, normals are flipped

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