Navigation
API > API/Runtime > API/Runtime/StaticMeshDescription > API/Runtime/StaticMeshDescription/FStaticMeshOperations
Description
Check the mesh description's vertex instance normals and tangents to see if any of the values are invalid (e.g. nearly zero or they contain a NaN).
This does not check if the vectors are normalized (which they should for correct normals and tangents).
| Name | HasInvalidVertexInstanceNormalsOrTangents |
| Type | function |
| Header File | /Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h |
| Include Path | #include "StaticMeshOperations.h" |
| Source | /Engine/Source/Runtime/StaticMeshDescription/Private/StaticMeshOperations.cpp |
static void HasInvalidVertexInstanceNormalsOrTangents
(
const FMeshDescription & MeshDescription,
bool & bHasInvalidNormals,
bool & bHasInvalidTangents
)
Parameters
| Name | Remarks |
|---|---|
| MeshDescription | The mesh description object to check. |
| bHasInvalidNormals | The vertex instance normal attribute contains a near zero-length vector or a NaN component value. |
| bHasInvalidTangents | The vertex instance tangent attribute contains a near zero-length vector or a NaN component value. |