TMeshTangents

[TMeshTangents](API\Plugins\DynamicMesh\TMeshTangents) is a utility class that can calculate and store various types of tangent vectors for a FDynamicMesh.

Windows
MacOS
Linux

References

Module

DynamicMesh

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/DynamicMesh/Public/MeshTangents.h

Include

#include "MeshTangents.h"

Syntax

template<typename RealType>
class TMeshTangents

Remarks

TMeshTangents is a utility class that can calculate and store various types of tangent vectors for a FDynamicMesh.

Variables

Name Description

Protected variable

TArray< FVector...

 

Bitangents

Set of computed bitangents

Protected variable

const FDynamicM...

 

Mesh

Target Mesh

Protected variable

TArray< FVector...

 

Tangents

Set of computed tangents

Constructors

Name Description

Public function

TMeshTangents()

Public function

TMeshTangents

(
    const FDynamicMesh3* Mesh
)

Functions

Name Description

Public function

void

 

ComputePerTriangleTangents

(
    const FDynamicMeshNormalOverlay...,
    const FDynamicMeshUVOverlay* U...
)

Calculate per-triangle tangent spaces based on the given per-triangle normal and UV overlays.

Public function Const

const TArray...

 

GetBitangents()

Public function Const

void

 

GetPerTriangleTangent

(
    int TriangleID,
    int TriVertIdx,
    FVector3< RealType >& TangentOut,
    FVector3< RealType >& BitangentOut
)

Return tangent and bitangent at a vertex of triangle for per-triangle computed tangents

Public function Const

const TArray...

 

GetTangents()

Public function

void

 

InitializePerTriangleTangents

(
    bool bClearToZero
)

Set internal buffer sizes suitable for calculating per-triangle tangents.

Protected function

void

 

Internal_ComputePerTriangleTangents

(
    const FDynamicMeshNormalOverlay...,
    const FDynamicMeshUVOverlay* U...
)

Calculate per-triangle tangents.

Public function

void

 

SetMesh

(
    const FDynamicMesh3* MeshIn
)

Public function

void

 

SetPerTriangleTangent

(
    int TriangleID,
    int TriVertIdx,
    const FVector3< RealType >& Tangen...,
    const FVector3< RealType >& Bitang...
)

Set tangent and bitangent at a vertex of triangle for per-triangle computed tangents.

Protected function

void

 

SetTangentCount

(
    int Count,
    bool bClearToZero
)

Set the size of the Tangents array to Count, and optionally clear all values to (0,0,0)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss