#include <MeshTangents.h>
|
| GEOMETRYCORE_API | FDynamicMeshTangents (const FDynamicMesh3 *MeshIn) |
| |
| GEOMETRYCORE_API bool | HasValidTangents (bool bCheckValues=false) const |
| |
| GEOMETRYCORE_API void | GetTangentFrame (int32 TriangleID, int32 TriVertexIndex, FVector3f &NormalOut, FVector3f &TangentOut, FVector3f &BitangentOut) const |
| |
| GEOMETRYCORE_API void | GetTangentVectors (int32 TriangleID, int32 TriVertexIndex, const FVector3f &Normal, FVector3f &TangentOut, FVector3f &BitangentOut) const |
| |
| GEOMETRYCORE_API void | GetTangentVectors (int32 TriangleID, int32 TriVertexIndex, FVector3f &TangentOut, FVector3f &BitangentOut) const |
| |
FDynamicMeshTangents is a helper object for accessing tangents stored in the AttributeSet of a FDynamicMesh3.
◆ FDynamicMeshTangents()
| FDynamicMeshTangents::FDynamicMeshTangents |
( |
const FDynamicMesh3 * |
MeshIn | ) |
|
◆ GetTangentFrame()
If tangents are available in the overlays, returns them. If only Normal is available, computes orthogonal basis. Falls back to unit axes if no overlays are available.
◆ GetTangentVectors() [1/2]
If tangents are available in the overlays, returns them. Otherwise computes orthogonal basis to Normal argument.
◆ GetTangentVectors() [2/2]
If tangents are available in the overlays, returns them, otherwise falls back to unit X/Y axes.
◆ HasValidTangents()
| bool FDynamicMeshTangents::HasValidTangents |
( |
bool |
bCheckValues = false | ) |
const |
Checks the mesh for valid tangents. When bCheckValues == true, inspects the tangents for invalid values (ex. zero, NaN).
- Parameters
-
| bCheckValues | inspect tangent values for zero/NaN |
- Returns
- true if the mesh has valid tangents
◆ Bitangents
◆ Mesh
| const FDynamicMesh3* UE::Geometry::FDynamicMeshTangents::Mesh = nullptr |
◆ Normals
◆ Tangents
The documentation for this class was generated from the following files: