Navigation
API > API/Runtime > API/Runtime/ClothingSystemRuntimeCommon
| Name | ClothMeshDesc |
| Type | class |
| Header File | /Engine/Source/Runtime/ClothingSystemRuntimeCommon/Public/Utils/ClothingMeshUtils.h |
| Include Path | #include "Utils/ClothingMeshUtils.h" |
Syntax
class ClothMeshDesc
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ClothMeshDesc
(
TConstArrayView< FVector3f > InPositions, |
Construct a mesh descriptor with re-calculated (averaged) normals to match the simulation output. | Utils/ClothingMeshUtils.h | |
ClothMeshDesc
(
TConstArrayView< FVector3f > InPositions, |
Utils/ClothingMeshUtils.h | ||
ClothMeshDesc
(
TConstArrayView< FVector3f > InPositions, |
Utils/ClothingMeshUtils.h |
Structs
| Name | Remarks |
|---|---|
| FClothBvEntry |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AveragedNormals | TArray< FVector3f > | Utils/ClothingMeshUtils.h | ||
| bHasValidBVH | bool | Utils/ClothingMeshUtils.h | ||
| BVH | Chaos::TAABBTree< int32, Chaos::TAABBTreeLeafArray< int32, false >, false > | Utils/ClothingMeshUtils.h | ||
| FilteredTriangles | TArray< int32 > | Utils/ClothingMeshUtils.h | ||
| Indices | TConstArrayView< uint32 > | Utils/ClothingMeshUtils.h | ||
| MaxEdgeLengths | TArray< float > | Utils/ClothingMeshUtils.h | ||
| Normals | TConstArrayView< FVector3f > | Utils/ClothingMeshUtils.h | ||
| Positions | TConstArrayView< FVector3f > | Utils/ClothingMeshUtils.h | ||
| Tangents | TConstArrayView< FVector3f > | Utils/ClothingMeshUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float DistanceToTriangle
(
const FVector& Position, |
Find the distance to the specified triangle from a point. | Utils/ClothingMeshUtils.h | |
TArray< int32 > FindCandidateTriangles
(
const FVector& InPoint, |
Find the closest triangles from the specified point. | Utils/ClothingMeshUtils.h | |
void GatherAllSourceTrianglesForTargetVertex
(
const TArray< FMeshToMeshFilterSet >& FilterSets, |
Create an array with all source triangles whose filter set from the given array containts the specified target vertex. | Utils/ClothingMeshUtils.h | |
TArray< int32 > & GetFilteredTriangles() |
Return the current list of filtered triangles. | Utils/ClothingMeshUtils.h | |
const TConstArrayView< uint32 > & GetIndices() |
Utils/ClothingMeshUtils.h | ||
TConstArrayView< float > GetMaxEdgeLengths () |
Return the max edge length for each edge coming out of a mesh vertex. | Utils/ClothingMeshUtils.h | |
const TConstArrayView< FVector3f > & GetNormals() |
Utils/ClothingMeshUtils.h | ||
const TConstArrayView< FVector3f > & GetPositions() |
Utils/ClothingMeshUtils.h | ||
const TConstArrayView< FVector3f > & GetTangents() |
Utils/ClothingMeshUtils.h | ||
bool HasAveragedNormals() |
Return whether this descriptor has been initialized with the normals generated from the averaged triangle normals. | Utils/ClothingMeshUtils.h | |
bool HasTangents() |
Return whether this descriptor has been initialized with tangent information. | Utils/ClothingMeshUtils.h | |
bool HasValidMesh() |
Return whether the mesh descriptor has a valid number of normals and triangle indices. | Utils/ClothingMeshUtils.h |