Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/FMeshNormals
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FVector3d ComputeVertexNormal
(
const FDynamicMesh3& Mesh, |
Compute normal at mesh vertex by weighted sum of one-ring triangle normals. | DynamicMesh/MeshNormals.h | |
static FVector3d ComputeVertexNormal
(
const FDynamicMesh3& Mesh, |
Compute normal at mesh vertex by weighted sum of subset of one-ring triangle normals. | DynamicMesh/MeshNormals.h |
ComputeVertexNormal(const FDynamicMesh3 &, int, bool, bool)
Description
Compute normal at mesh vertex by weighted sum of one-ring triangle normals. Can optionally weight by area, angle, or both (averaged)
| Name | ComputeVertexNormal |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/MeshNormals.h |
| Include Path | #include "DynamicMesh/MeshNormals.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/MeshNormals.cpp |
static FVector3d ComputeVertexNormal
(
const FDynamicMesh3 & Mesh,
int VertIdx,
bool bWeightByArea,
bool bWeightByAngle
)
the vertex normal at vertex VertIdx of Mesh.
Parameters
| Name | Remarks |
|---|---|
| bWeightByArea | weight neighbor triangles by area |
| bWeightByAngle | weight neighbor triangles by angle |
ComputeVertexNormal(const FDynamicMesh3 &, int32, TFunctionRef< bool(int32)>, bool, bool)
Description
Compute normal at mesh vertex by weighted sum of subset of one-ring triangle normals. Can optionally weight by area, angle, or both (averaged)
| Name | ComputeVertexNormal |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/DynamicMesh/MeshNormals.h |
| Include Path | #include "DynamicMesh/MeshNormals.h" |
| Source | /Engine/Source/Runtime/GeometryCore/Private/DynamicMesh/MeshNormals.cpp |
static FVector3d ComputeVertexNormal
(
const FDynamicMesh3 & Mesh,
int32 VertIdx,
TFunctionRef < bool> TriangleFilterFunc,
bool bWeightByArea,
bool bWeightByAngle
)
the vertex normal at vertex VertIdx of Mesh.
Parameters
| Name | Remarks |
|---|---|
| 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 |