Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | FGaussSeidelSphereRepulsionConstraints |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h |
| Include Path | #include "Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h" |
Syntax
template<typename T, typename ParticleType>
class FGaussSeidelSphereRepulsionConstraints
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGaussSeidelSphereRepulsionConstraints
(
FSolverReal InRadius, |
TODO(Yushan): Add unit tests for Gauss Seidel Sphere Repulsion Constraints. | Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FGaussSeidelSphereRepulsionConstraints() |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h |
Structs
| Name | Remarks |
|---|---|
| FSphereSpatialEntry |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DebugDrawParams | FDeformableXPBDWeakConstraintParams | Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | ||
| ReferencePositions | TArray< FSolverVec3 > | Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSphereRepulsionHessian
(
const int32 p, |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | ||
void AddSphereRepulsionResidual
(
const ParticleType& InParticles, |
Energy = k/2*(2r-d)^2 Residual = de/dx = -force = -k*(2r-d)*dd/dx Hessian = de2/dx2 = k*dd/dx*dd/dx-k*(2r-d)*(-dd/dx*dd/dx^T+I)/d | Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | |
void AddSphereRepulsionResidualAndHessian
(
const ParticleType& InParticles, |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | ||
void Init
(
const FSolverParticles& InParticles, |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | ||
| Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | |||
void UpdateSphereRepulsionConstraints
(
const FSolverParticles& Particles, |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h | ||
void VisualizeAllBindings
(
const FSolverParticles& InParticles, |
Chaos/Deformable/GaussSeidelSphereRepulsionConstraints.h |