UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ClothTetherData.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2#pragma once
3
4#include "Containers/Array.h"
7#include "Templates/Tuple.h"
8#include "UObject/Class.h"
10
11#include "ClothTetherData.generated.h"
12
13class FArchive;
14
20USTRUCT()
22{
24
25
27
32 CLOTHINGSYSTEMRUNTIMECOMMON_API void GenerateTethers(
33 const TConstArrayView<FVector3f>& Points, // Reference pose
34 const TConstArrayView<uint32>& Indices, // Triangle mesh
35 const TConstArrayView<float>& MaxDistances, // Mask for sorting the kinematic from the dynamic points
36 bool bUseGeodesicDistance); // Whether to use geodesic (walking along the surface) or euclidean (beeline) distances to find the tethers.
37
42 CLOTHINGSYSTEMRUNTIMECOMMON_API void GenerateTethers(
43 const TConstArrayView<FVector3f>& Points, // Reference pose
44 const TConstArrayView<uint32>& Indices, // Triangle mesh
45 const TConstArrayView<float>& MaxDistances, // Mask for sorting the kinematic from the dynamic points
46 const TConstArrayView<float>& TetherEnds, // Separate mask for specifying tether ends (using same < 0.1 cutoff as MaxDistances). Actual tether end set is the intersection of tether ends and kinematic points.
47 bool bUseGeodesicDistance); // Whether to use geodesic (walking along the surface) or euclidean (beeline) distances to find the tethers.
48
53 CLOTHINGSYSTEMRUNTIMECOMMON_API void GenerateTethers(
54 const TConstArrayView<FVector3f>& Points, // Reference pose
55 const TConstArrayView<uint32>& Indices, // Triangle mesh
56 const TSet<int32>& KinematicNodes, // kinematic indices
57 bool bUseGeodesicDistance); // Whether to use geodesic (walking along the surface) or euclidean (beeline) distances to find the tethers.
58
63 CLOTHINGSYSTEMRUNTIMECOMMON_API void GenerateTethers(
64 const TConstArrayView<FVector3f>& Points, // Reference pose
65 const TConstArrayView<uint32>& Indices, // Triangle mesh
66 const TSet<int32>& KinematicNodes, // all kinematic indices
67 const TSet<int32>& FixedEndNodes, // subset of kinematic indices used for fixed end.
68 const TSet<int32>& DynamicEndNodes, // subset of dynamic indices to create tethers for.
69 bool bUseGeodesicDistance); // Whether to use geodesic (walking along the surface) or euclidean (beeline) distances to find the tethers.
70
75 CLOTHINGSYSTEMRUNTIMECOMMON_API void GenerateTethers(
77
79 bool Serialize(FArchive& Ar);
80};
81
84{
85 enum
86 {
87 WithSerializer = true,
88 };
89 static constexpr EPropertyObjectReferenceType WithSerializerObjectReferences = EPropertyObjectReferenceType::None;
90};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define USTRUCT(...)
Definition ObjectMacros.h:746
EPropertyObjectReferenceType
Definition ObjectMacros.h:533
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Archive.h:1208
Definition Array.h:670
Definition ClothTetherData.h:22
Definition StructOpsTypeTraits.h:11
Definition StructOpsTypeTraits.h:46
Definition Tuple.h:652