UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothingMeshUtils::FVertexParameterMapper Class Reference

#include <ClothingMeshUtils.h>

Public Member Functions

 FVertexParameterMapper (TConstArrayView< FVector3f > InMesh0Positions, TConstArrayView< FVector3f > InMesh0Normals, TConstArrayView< FVector3f > InMesh1Positions, TConstArrayView< FVector3f > InMesh1Normals, TConstArrayView< uint32 > InMesh1Indices)
 
template<typename T , typename Lambda >
void Map (TConstArrayView< T > &SourceData, TArray< T > &DestData, const Lambda &Func)
 
CLOTHINGSYSTEMRUNTIMECOMMON_API void Map (TConstArrayView< float > Source, TArray< float > &Dest)
 

Detailed Description

Object used to map vertex parameters between two meshes using the same barycentric mesh to mesh mapping data we use for clothing

Constructor & Destructor Documentation

◆ FVertexParameterMapper()

ClothingMeshUtils::FVertexParameterMapper::FVertexParameterMapper ( TConstArrayView< FVector3f InMesh0Positions,
TConstArrayView< FVector3f InMesh0Normals,
TConstArrayView< FVector3f InMesh1Positions,
TConstArrayView< FVector3f InMesh1Normals,
TConstArrayView< uint32 InMesh1Indices 
)
inline

Member Function Documentation

◆ Map() [1/2]

void ClothingMeshUtils::FVertexParameterMapper::Map ( TConstArrayView< float Source,
TArray< float > &  Dest 
)

Remap float scalar values. This transfers the values from source to dest by matching the mesh topologies using barycentric coordinates of the dest mesh (Mesh0) positions over the source mesh (Mesh1).

◆ Map() [2/2]

template<typename T , typename Lambda >
void ClothingMeshUtils::FVertexParameterMapper::Map ( TConstArrayView< T > &  SourceData,
TArray< T > &  DestData,
const Lambda &  Func 
)
inline

Generic mapping function, can be used to map any type with a provided callable


The documentation for this class was generated from the following files: