Module |
|
Header |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshNormals.h |
Include |
#include "MeshNormals.h" |
Source |
/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Private/MeshNormals.cpp |
static FVector3d ComputeVertexNormal
(
const FDynamicMesh3 & Mesh,
int32 VertIdx,
TFunctionRef< bool)> TriangleFilterFunc,
bool bWeightByArea,
bool bWeightByAngle
)
Compute normal at mesh vertex by weighted sum of subset of one-ring triangle normals. Can optionally weight by area, angle, or both (averaged)
the vertex normal at vertex VertIdx of Mesh.
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 |