UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSkeletalMeshLODRenderDataMeshAdapter Struct Reference

#include <SkeletalMeshLODRenderDataMeshAdapter.h>

Public Types

using FIndex3i = UE::Geometry::FIndex3i
 

Public Member Functions

 FSkeletalMeshLODRenderDataMeshAdapter (const FSkeletalMeshLODRenderData *MeshIn)
 
void SetBuildScale (const FVector3d &BuildScaleIn, bool bScaleNormalsIn)
 
bool IsTriangle (int32 TID) const
 
bool IsVertex (int32 VID) const
 
int32 MaxTriangleID () const
 
int32 TriangleCount () const
 
int32 MaxVertexID () const
 
int32 VertexCount () const
 
uint64 GetChangeStamp () const
 
const FSkelMeshRenderSectionTriangleToSection (int32 &InOutIDValue) const
 
FIndex3i GetTriangle (int32 IDValue) const
 
FVector3d GetVertex (int32 IDValue) const
 
void GetTriVertices (int32 IDValue, FVector3d &V0, FVector3d &V1, FVector3d &V2) const
 
template<typename VectorType >
void GetTriVertices (int32 IDValue, VectorType &V0, VectorType &V1, VectorType &V2) const
 
bool HasNormals () const
 
bool IsNormal (int32 NID) const
 
int32 MaxNormalID () const
 
int32 NormalCount () const
 
FVector3f GetNormal (int32 IDValue) const
 
template<typename VectorType >
void GetTriNormals (int32 TriId, VectorType &N0, VectorType &N1, VectorType &N2)
 
FVector3f GetTangentX (int32 IDValue) const
 
template<typename VectorType >
void GetTriTangentsX (int32 TriId, VectorType &T0, VectorType &T1, VectorType &T2)
 
FVector3f GetTangentY (int32 IDValue) const
 
template<typename VectorType >
void GetTriTangentsY (int32 TriId, VectorType &T0, VectorType &T1, VectorType &T2)
 
bool HasUVs (const int32 UVLayer=0) const
 
int32 NumUVLayers () const
 
bool IsUV (const int32 UVId) const
 
int32 MaxUVID () const
 
int32 UVCount () const
 
FVector2f GetUV (const int32 IDValue, const int32 UVLayer) const
 
template<typename VectorType >
void GetTriUVs (const int32 TriId, const int32 UVLayer, VectorType &UV0, VectorType &UV1, VectorType &UV2)
 
bool HasColors () const
 
bool IsColor (int32 ColorIndex) const
 
int32 MaxColorID () const
 
int32 ColorCount () const
 
FColor GetColor (int32 IDValue) const
 
void GetTriColors (int32 TriId, FColor &C0, FColor &C1, FColor &C2)
 
bool HasSkinWeights ()
 
FSkinWeightInfo GetSkinWeightInfo (int32 VID)
 

Protected Member Functions

 FSkeletalMeshLODRenderDataMeshAdapter ()
 

Protected Attributes

const FSkeletalMeshLODRenderDataMesh
 
FVector3d BuildScale = FVector3d::One()
 
FVector3d InvBuildScale = FVector3d::One()
 
bool bScaleNormals = false
 
TArray< const FSkelMeshRenderSection * > ValidSections
 
TArray< int32TriangleOffsetArray
 
int32 NumTriangles
 
TArray< uint32SrcIndexBuffer
 
TArray< FSkinWeightInfoSkinWeights
 

Detailed Description

Basic struct to adapt a FSkeletalMeshLODRenderData for use by GeometryProcessing classes that template the mesh type and expect a standard set of basic accessors For example, this adapter will let you use a FSkeletalMeshLODRenderData with GeometryProcessing's TMeshAABBTree3

Member Typedef Documentation

◆ FIndex3i

Constructor & Destructor Documentation

◆ FSkeletalMeshLODRenderDataMeshAdapter() [1/2]

FSkeletalMeshLODRenderDataMeshAdapter::FSkeletalMeshLODRenderDataMeshAdapter ( )
inlineprotected

◆ FSkeletalMeshLODRenderDataMeshAdapter() [2/2]

FSkeletalMeshLODRenderDataMeshAdapter::FSkeletalMeshLODRenderDataMeshAdapter ( const FSkeletalMeshLODRenderData MeshIn)
inline

Member Function Documentation

◆ ColorCount()

int32 FSkeletalMeshLODRenderDataMeshAdapter::ColorCount ( ) const
inline

◆ GetChangeStamp()

uint64 FSkeletalMeshLODRenderDataMeshAdapter::GetChangeStamp ( ) const
inline

◆ GetColor()

FColor FSkeletalMeshLODRenderDataMeshAdapter::GetColor ( int32  IDValue) const
inline

◆ GetNormal()

FVector3f FSkeletalMeshLODRenderDataMeshAdapter::GetNormal ( int32  IDValue) const
inline

◆ GetSkinWeightInfo()

FSkinWeightInfo FSkeletalMeshLODRenderDataMeshAdapter::GetSkinWeightInfo ( int32  VID)
inline

◆ GetTangentX()

FVector3f FSkeletalMeshLODRenderDataMeshAdapter::GetTangentX ( int32  IDValue) const
inline

◆ GetTangentY()

FVector3f FSkeletalMeshLODRenderDataMeshAdapter::GetTangentY ( int32  IDValue) const
inline

◆ GetTriangle()

FIndex3i FSkeletalMeshLODRenderDataMeshAdapter::GetTriangle ( int32  IDValue) const
inline

◆ GetTriColors()

void FSkeletalMeshLODRenderDataMeshAdapter::GetTriColors ( int32  TriId,
FColor C0,
FColor C1,
FColor C2 
)
inline

Get Colors for a given Triangle

◆ GetTriNormals()

template<typename VectorType >
void FSkeletalMeshLODRenderDataMeshAdapter::GetTriNormals ( int32  TriId,
VectorType &  N0,
VectorType &  N1,
VectorType &  N2 
)
inline

Get Normals for a given Triangle

◆ GetTriTangentsX()

template<typename VectorType >
void FSkeletalMeshLODRenderDataMeshAdapter::GetTriTangentsX ( int32  TriId,
VectorType &  T0,
VectorType &  T1,
VectorType &  T2 
)
inline

Get Tangent X for a given Triangle

◆ GetTriTangentsY()

template<typename VectorType >
void FSkeletalMeshLODRenderDataMeshAdapter::GetTriTangentsY ( int32  TriId,
VectorType &  T0,
VectorType &  T1,
VectorType &  T2 
)
inline

Get Tangent Y for a given Triangle

◆ GetTriUVs()

template<typename VectorType >
void FSkeletalMeshLODRenderDataMeshAdapter::GetTriUVs ( const int32  TriId,
const int32  UVLayer,
VectorType &  UV0,
VectorType &  UV1,
VectorType &  UV2 
)
inline

Get UVs for a given UVLayer and Triangle

◆ GetTriVertices() [1/2]

void FSkeletalMeshLODRenderDataMeshAdapter::GetTriVertices ( int32  IDValue,
FVector3d V0,
FVector3d V1,
FVector3d V2 
) const
inline

◆ GetTriVertices() [2/2]

template<typename VectorType >
void FSkeletalMeshLODRenderDataMeshAdapter::GetTriVertices ( int32  IDValue,
VectorType &  V0,
VectorType &  V1,
VectorType &  V2 
) const
inline

◆ GetUV()

FVector2f FSkeletalMeshLODRenderDataMeshAdapter::GetUV ( const int32  IDValue,
const int32  UVLayer 
) const
inline

Get UV by VertexInstanceID for a given UVLayer

◆ GetVertex()

FVector3d FSkeletalMeshLODRenderDataMeshAdapter::GetVertex ( int32  IDValue) const
inline

◆ HasColors()

bool FSkeletalMeshLODRenderDataMeshAdapter::HasColors ( ) const
inline

◆ HasNormals()

bool FSkeletalMeshLODRenderDataMeshAdapter::HasNormals ( ) const
inline

◆ HasSkinWeights()

bool FSkeletalMeshLODRenderDataMeshAdapter::HasSkinWeights ( )
inline

◆ HasUVs()

bool FSkeletalMeshLODRenderDataMeshAdapter::HasUVs ( const int32  UVLayer = 0) const
inline

◆ IsColor()

bool FSkeletalMeshLODRenderDataMeshAdapter::IsColor ( int32  ColorIndex) const
inline

◆ IsNormal()

bool FSkeletalMeshLODRenderDataMeshAdapter::IsNormal ( int32  NID) const
inline

◆ IsTriangle()

bool FSkeletalMeshLODRenderDataMeshAdapter::IsTriangle ( int32  TID) const
inline

◆ IsUV()

bool FSkeletalMeshLODRenderDataMeshAdapter::IsUV ( const int32  UVId) const
inline

◆ IsVertex()

bool FSkeletalMeshLODRenderDataMeshAdapter::IsVertex ( int32  VID) const
inline

◆ MaxColorID()

int32 FSkeletalMeshLODRenderDataMeshAdapter::MaxColorID ( ) const
inline

◆ MaxNormalID()

int32 FSkeletalMeshLODRenderDataMeshAdapter::MaxNormalID ( ) const
inline

◆ MaxTriangleID()

int32 FSkeletalMeshLODRenderDataMeshAdapter::MaxTriangleID ( ) const
inline

◆ MaxUVID()

int32 FSkeletalMeshLODRenderDataMeshAdapter::MaxUVID ( ) const
inline

◆ MaxVertexID()

int32 FSkeletalMeshLODRenderDataMeshAdapter::MaxVertexID ( ) const
inline

◆ NormalCount()

int32 FSkeletalMeshLODRenderDataMeshAdapter::NormalCount ( ) const
inline

◆ NumUVLayers()

int32 FSkeletalMeshLODRenderDataMeshAdapter::NumUVLayers ( ) const
inline

◆ SetBuildScale()

void FSkeletalMeshLODRenderDataMeshAdapter::SetBuildScale ( const FVector3d BuildScaleIn,
bool  bScaleNormalsIn 
)
inline

◆ TriangleCount()

int32 FSkeletalMeshLODRenderDataMeshAdapter::TriangleCount ( ) const
inline

◆ TriangleToSection()

const FSkelMeshRenderSection & FSkeletalMeshLODRenderDataMeshAdapter::TriangleToSection ( int32 InOutIDValue) const
inline

◆ UVCount()

int32 FSkeletalMeshLODRenderDataMeshAdapter::UVCount ( ) const
inline

◆ VertexCount()

int32 FSkeletalMeshLODRenderDataMeshAdapter::VertexCount ( ) const
inline

Member Data Documentation

◆ bScaleNormals

bool FSkeletalMeshLODRenderDataMeshAdapter::bScaleNormals = false
protected

◆ BuildScale

FVector3d FSkeletalMeshLODRenderDataMeshAdapter::BuildScale = FVector3d::One()
protected

◆ InvBuildScale

FVector3d FSkeletalMeshLODRenderDataMeshAdapter::InvBuildScale = FVector3d::One()
protected

◆ Mesh

const FSkeletalMeshLODRenderData* FSkeletalMeshLODRenderDataMeshAdapter::Mesh
protected

◆ NumTriangles

int32 FSkeletalMeshLODRenderDataMeshAdapter::NumTriangles
protected

◆ SkinWeights

TArray<FSkinWeightInfo> FSkeletalMeshLODRenderDataMeshAdapter::SkinWeights
protected

◆ SrcIndexBuffer

TArray<uint32> FSkeletalMeshLODRenderDataMeshAdapter::SrcIndexBuffer
protected

◆ TriangleOffsetArray

TArray<int32> FSkeletalMeshLODRenderDataMeshAdapter::TriangleOffsetArray
protected

◆ ValidSections

TArray<const FSkelMeshRenderSection*> FSkeletalMeshLODRenderDataMeshAdapter::ValidSections
protected

The documentation for this struct was generated from the following file: