FMeshNormals::ComputeVertexNormal

Compute normal at mesh vertex by weighted sum of subset of one-ring triangle normals.

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 FVector3d ComputeVertexNormal
(
    const FDynamicMesh3 & Mesh,
    int32 VertIdx,
    TFunctionRef< bool)> TriangleFilterFunc,
    bool bWeightByArea,
    bool bWeightByAngle
)

Remarks

Compute normal at mesh vertex by weighted sum of subset of one-ring triangle normals. Can optionally weight by area, angle, or both (averaged)

Returns

the vertex normal at vertex VertIdx of Mesh.

Parameters

Parameter

Description

TriangleFilterFunc

Only one-ring triangles for which this function returns true will be included

bWeightByArea

weight neighbor triangles by area

bWeightByAngle

weight neighbor triangles by angle

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