UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType > Struct Template Reference

#include <MeshAdapter.h>

Public Member Functions

void SetSources (const TArray< InVectorType > *SourceVerticesIn, const TArray< IndexType > *SourceTrianglesIn)
 
 TIndexMeshArrayAdapter ()
 
 TIndexMeshArrayAdapter (const TArray< InVectorType > *SourceVerticesIn, const TArray< IndexType > *SourceTrianglesIn)
 
bool IsTriangle (int32 Index) const
 
bool IsVertex (int32 Index) const
 
int32 MaxTriangleID () const
 
int32 MaxVertexID () const
 
int32 TriangleCount () const
 
int32 VertexCount () const
 
uint64 GetChangeStamp () const
 
FIndex3i GetTriangle (int32 Index) const
 
TVector< OutRealTypeGetVertex (int32 Index) const
 
void GetTriVertices (int32 TriIndex, UE::Math::TVector< OutRealType > &V0, UE::Math::TVector< OutRealType > &V1, UE::Math::TVector< OutRealType > &V2) const
 

Public Attributes

const TArray< InVectorType > * SourceVertices
 
const TArray< IndexType > * SourceTriangles
 

Detailed Description

template<typename IndexType, typename OutRealType, typename InVectorType = FVector>
struct UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >

Faster adapter specifically for the common index mesh case

Constructor & Destructor Documentation

◆ TIndexMeshArrayAdapter() [1/2]

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::TIndexMeshArrayAdapter ( )
inline

◆ TIndexMeshArrayAdapter() [2/2]

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::TIndexMeshArrayAdapter ( const TArray< InVectorType > *  SourceVerticesIn,
const TArray< IndexType > *  SourceTrianglesIn 
)
inline

Member Function Documentation

◆ GetChangeStamp()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
uint64 UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::GetChangeStamp ( ) const
inline

◆ GetTriangle()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
FIndex3i UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::GetTriangle ( int32  Index) const
inline

◆ GetTriVertices()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
void UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::GetTriVertices ( int32  TriIndex,
UE::Math::TVector< OutRealType > &  V0,
UE::Math::TVector< OutRealType > &  V1,
UE::Math::TVector< OutRealType > &  V2 
) const
inline

◆ GetVertex()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
TVector< OutRealType > UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::GetVertex ( int32  Index) const
inline

◆ IsTriangle()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
bool UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::IsTriangle ( int32  Index) const
inline

◆ IsVertex()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
bool UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::IsVertex ( int32  Index) const
inline

◆ MaxTriangleID()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
int32 UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::MaxTriangleID ( ) const
inline

◆ MaxVertexID()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
int32 UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::MaxVertexID ( ) const
inline

◆ SetSources()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
void UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::SetSources ( const TArray< InVectorType > *  SourceVerticesIn,
const TArray< IndexType > *  SourceTrianglesIn 
)
inline

◆ TriangleCount()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
int32 UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::TriangleCount ( ) const
inline

◆ VertexCount()

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
int32 UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::VertexCount ( ) const
inline

Member Data Documentation

◆ SourceTriangles

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
const TArray<IndexType>* UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::SourceTriangles

◆ SourceVertices

template<typename IndexType , typename OutRealType , typename InVectorType = FVector>
const TArray<InVectorType>* UE::Geometry::TIndexMeshArrayAdapter< IndexType, OutRealType, InVectorType >::SourceVertices

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