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

#include <ClothingMeshUtils.h>

Classes

struct  FClothBvEntry
 

Public Member Functions

 ClothMeshDesc (TConstArrayView< FVector3f > InPositions, TConstArrayView< FVector3f > InNormals, TConstArrayView< uint32 > InIndices)
 
 ClothMeshDesc (TConstArrayView< FVector3f > InPositions, TConstArrayView< FVector3f > InNormals, TConstArrayView< FVector3f > InTangents, TConstArrayView< uint32 > InIndices)
 
 ClothMeshDesc (TConstArrayView< FVector3f > InPositions, TConstArrayView< uint32 > InIndices)
 
const TConstArrayView< FVector3f > & GetPositions () const
 
const TConstArrayView< FVector3f > & GetNormals () const
 
const TConstArrayView< FVector3f > & GetTangents () const
 
const TConstArrayView< uint32 > & GetIndices () const
 
bool HasValidMesh () const
 
bool HasTangents () const
 
bool HasAveragedNormals () const
 
CLOTHINGSYSTEMRUNTIMECOMMON_API float DistanceToTriangle (const FVector &Position, int32 TriangleBaseIndex) const
 
TArray< int32 > & GetFilteredTriangles () const
 
void GatherAllSourceTrianglesForTargetVertex (const TArray< FMeshToMeshFilterSet > &FilterSets, int32 TargetVertex) const
 
CLOTHINGSYSTEMRUNTIMECOMMON_API TArray< int32FindCandidateTriangles (const FVector &InPoint, float InTolerance=KINDA_SMALL_NUMBER) const
 
CLOTHINGSYSTEMRUNTIMECOMMON_API TConstArrayView< floatGetMaxEdgeLengths () const
 

Constructor & Destructor Documentation

◆ ClothMeshDesc() [1/3]

ClothingMeshUtils::ClothMeshDesc::ClothMeshDesc ( TConstArrayView< FVector3f InPositions,
TConstArrayView< FVector3f InNormals,
TConstArrayView< uint32 InIndices 
)
inline

◆ ClothMeshDesc() [2/3]

ClothingMeshUtils::ClothMeshDesc::ClothMeshDesc ( TConstArrayView< FVector3f InPositions,
TConstArrayView< FVector3f InNormals,
TConstArrayView< FVector3f InTangents,
TConstArrayView< uint32 InIndices 
)
inline

◆ ClothMeshDesc() [3/3]

ClothingMeshUtils::ClothMeshDesc::ClothMeshDesc ( TConstArrayView< FVector3f InPositions,
TConstArrayView< uint32 InIndices 
)
inline

Member Function Documentation

◆ DistanceToTriangle()

float ClothingMeshUtils::ClothMeshDesc::DistanceToTriangle ( const FVector Position,
int32  TriangleBaseIndex 
) const

Find the distance to the specified triangle from a point.

◆ FindCandidateTriangles()

TArray< int32 > ClothingMeshUtils::ClothMeshDesc::FindCandidateTriangles ( const FVector InPoint,
float  InTolerance = KINDA_SMALL_NUMBER 
) const

Find the closest triangles from the specified point.

◆ GatherAllSourceTrianglesForTargetVertex()

void ClothingMeshUtils::ClothMeshDesc::GatherAllSourceTrianglesForTargetVertex ( const TArray< FMeshToMeshFilterSet > &  FilterSets,
int32  TargetVertex 
) const

Create an array with all source triangles whose filter set from the given array containts the specified target vertex.

◆ GetFilteredTriangles()

TArray< int32 > & ClothingMeshUtils::ClothMeshDesc::GetFilteredTriangles ( ) const
inline

Return the current list of filtered triangles.

◆ GetIndices()

const TConstArrayView< uint32 > & ClothingMeshUtils::ClothMeshDesc::GetIndices ( ) const
inline

◆ GetMaxEdgeLengths()

TConstArrayView< float > ClothingMeshUtils::ClothMeshDesc::GetMaxEdgeLengths ( ) const

Return the max edge length for each edge coming out of a mesh vertex. Useful for guiding the search radius when searching for nearest triangles.

◆ GetNormals()

const TConstArrayView< FVector3f > & ClothingMeshUtils::ClothMeshDesc::GetNormals ( ) const
inline

◆ GetPositions()

const TConstArrayView< FVector3f > & ClothingMeshUtils::ClothMeshDesc::GetPositions ( ) const
inline

◆ GetTangents()

const TConstArrayView< FVector3f > & ClothingMeshUtils::ClothMeshDesc::GetTangents ( ) const
inline

◆ HasAveragedNormals()

bool ClothingMeshUtils::ClothMeshDesc::HasAveragedNormals ( ) const
inline

Return whether this descriptor has been initialized with the normals generated from the averaged triangle normals.

◆ HasTangents()

bool ClothingMeshUtils::ClothMeshDesc::HasTangents ( ) const
inline

Return whether this descriptor has been initialized with tangent information.

◆ HasValidMesh()

bool ClothingMeshUtils::ClothMeshDesc::HasValidMesh ( ) const
inline

Return whether the mesh descriptor has a valid number of normals and triangle indices.


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