54#if MOCHI_LANGUAGE_CPP20
constexpr bool kIsotropicReferenceStiffness
Opt-in trait: a material params type declares this true iff its reference (F=I) tangent is isotropic ...
MaterialPsdStrategy
Strategy for ensuring positive semi-definite (PSD) Hessian matrices in material models.
@ Projection
Eigenvalue clamping: U * Max(Λ, ε) * U^T.
constexpr real kDefaultArapStiffness
Default ARAP stiffness (μ) [Pa].
#define MOCHI_STRUCT_END()
#define MOCHI_FIELD(name)
#define MOCHI_STRUCT_BEGIN(name)
#define MOCHI_ATTRIBUTE(...)
Parameters for the As-Rigid-As-Possible (ARAP) material model.
bool operator==(ArapMaterialParams const &) const =default
MaterialPsdStrategy psdStrategy
Strategy for ensuring positive semi-definite Hessian matrices.
real stiffness
ARAP stiffness parameter (μ) [Pa].