Navigation
API > API/Runtime > API/Runtime/StaticMeshDescription > API/Runtime/StaticMeshDescription/FStaticMeshOperations
References
| Module | StaticMeshDescription |
| Header | /Engine/Source/Runtime/StaticMeshDescription/Public/StaticMeshOperations.h |
| Include | #include "StaticMeshOperations.h" |
| Source | /Engine/Source/Runtime/StaticMeshDescription/Private/StaticMeshOperations.cpp |
static void HasInvalidVertexInstanceNormalsOrTangents
(
const FMeshDescription & MeshDescription,
bool & bHasInvalidNormals,
bool & bHasInvalidTangents
)
Remarks
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).
Parameters
| Name | Description |
|---|---|
| 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. |