#include <PBDExtremeDeformationConstraints.h>
|
| template<int32 Valence UE_REQUIRES> |
| | FPBDExtremeDeformationConstraints (const FSolverParticlesRange &Particles, const TArray< TVector< int32, Valence > > &InConstraints, const TMap< FString, TConstArrayView< FRealSingle > > &WeightMaps, const TMap< FString, const TSet< int32 > * > &VertexSets, const FCollectionPropertyConstFacade &PropertyCollection, bool bTrimKinematicConstraints=false) |
| |
| template<int32 Valence UE_REQUIRES> |
| | FPBDExtremeDeformationConstraints (const FSolverParticles &Particles, int32 InParticleOffset, int32 InParticleCount, const TArray< TVector< int32, Valence > > &InConstraints, const TMap< FString, TConstArrayView< FRealSingle > > &WeightMaps, const TMap< FString, const TSet< int32 > * > &VertexSets, const FCollectionPropertyConstFacade &PropertyCollection, bool bTrimKinematicConstraints=false) |
| |
| virtual | ~FPBDExtremeDeformationConstraints () |
| |
| void | SetProperties (const FCollectionPropertyConstFacade &PropertyCollection, const TMap< FString, TConstArrayView< FRealSingle > > &WeightMaps) |
| |
| const TArray< TVec2< int32 > > & | GetConstraints () const |
| |
| CHAOS_API FSolverReal | GetThreshold () const |
| |
| CHAOS_API bool | IsExtremelyDeformed (TConstArrayView< Softs::FSolverVec3 > Positions) const |
| |
| CHAOS_API bool | IsExtremelyDeformed (TConstArrayView< Softs::FSolverVec3 > Positions, const Softs::FSolverVec3 *const RefencePositions) const |
| |
| CHAOS_API TArray< TVec2< int32 > > | GetExtremelyDeformedEdges (TConstArrayView< Softs::FSolverVec3 > Positions) const |
| |
| CHAOS_API TArray< TVec2< int32 > > | GetExtremelyDeformedEdges (TConstArrayView< Softs::FSolverVec3 > Positions, const Softs::FSolverVec3 *const RefencePositions) const |
| |
◆ FPBDExtremeDeformationConstraints() [1/2]
◆ FPBDExtremeDeformationConstraints() [2/2]
| Chaos::Softs::FPBDExtremeDeformationConstraints::FPBDExtremeDeformationConstraints |
( |
const FSolverParticles & |
Particles, |
|
|
int32 |
InParticleOffset, |
|
|
int32 |
InParticleCount, |
|
|
const TArray< TVector< int32, Valence > > & |
InConstraints, |
|
|
const TMap< FString, TConstArrayView< FRealSingle > > & |
WeightMaps, |
|
|
const TMap< FString, const TSet< int32 > * > & |
VertexSets, |
|
|
const FCollectionPropertyConstFacade & |
PropertyCollection, |
|
|
bool |
bTrimKinematicConstraints = false |
|
) |
| |
|
inline |
◆ ~FPBDExtremeDeformationConstraints()
| virtual Chaos::Softs::FPBDExtremeDeformationConstraints::~FPBDExtremeDeformationConstraints |
( |
| ) |
|
|
inlinevirtual |
◆ GetConstraints()
| const TArray< TVec2< int32 > > & Chaos::Softs::FPBDExtremeDeformationConstraints::GetConstraints |
( |
| ) |
const |
|
inline |
◆ GetExtremelyDeformedEdges() [1/2]
Returns all edges (after being pruned during initialization) that are deformed above threshold compared to the rest positions.
- Parameters
-
| Positions | The solver particle positions, e.g. ClothingSimulationSolver.GetParticleXs(). |
| Threshold | edge ratio threshold to trigger detection. |
◆ GetExtremelyDeformedEdges() [2/2]
Returns edges that are deformed above threshold compared to reference positions.
- Parameters
-
| Positions | The solver particle positions, e.g. ClothingSimulationSolver.GetParticleXs(). |
| ReferencePositions | The reference particle positions, e.g. ClothingSimulationSolver.GetAnimationPositions(ParticleRangeId) if using the animation pose as reference. |
| Threshold | edge ratio threshold to trigger detection. |
◆ GetThreshold()
| FSolverReal Chaos::Softs::FPBDExtremeDeformationConstraints::GetThreshold |
( |
| ) |
const |
◆ IsEnabled()
◆ IsExtremelyDeformed() [1/2]
Returns if edges (after being pruned during initialization) are deformed above threshold compared to the rest positions.
- Parameters
-
| Positions | The solver particle positions, e.g. ClothingSimulationSolver.GetParticleXs(). |
| Threshold | edge ratio threshold to trigger detection. |
◆ IsExtremelyDeformed() [2/2]
Returns if edges (after being pruned during initialization) are deformed above threshold compared to the reference positions.
- Parameters
-
| Positions | The solver particle positions, e.g. ClothingSimulationSolver.GetParticleXs(). |
| ReferencePositions | The reference particle positions, e.g. ClothingSimulationSolver.GetAnimationPositions(ParticleRangeId) if using the animation pose as reference. |
| Threshold | edge ratio threshold to trigger detection. |
◆ SetProperties()
The documentation for this class was generated from the following files: