|
Blender V5.3
|
#include <GEO_xpbd_constraint_damping_linear.hh>
Inherits blender::xpbd::TemplatedVelocityConstraintSet< LinearDampingConstraintSet >.
Public Member Functions | |
| LinearDampingConstraintSet (const int geo_i, const IndexRange points, const Span< float > linear_dampings, MutableSpan< float > lambdas) | |
| void | reset_force (const int constraint_i) const |
| template<typename UpdaterT> | |
| void | solve_single (const ConstraintSetParams ¶ms, UpdaterT &updater, const int constraint_i) const |
| Public Member Functions inherited from blender::xpbd::TemplatedVelocityConstraintSet< LinearDampingConstraintSet > | |
| TemplatedVelocityConstraintSet (int constraints_num, Vector< int > affected_geo_indices) | |
| void | reset_forces () override |
| void | solve_sequential (const ConstraintSetParams ¶ms, VelocityUpdater &updater) override |
| StringRef | debug_name () const |
| Public Member Functions inherited from blender::xpbd::VelocityConstraintSet | |
| VelocityConstraintSet (Vector< int > affected_geo_indices) | |
| virtual | ~VelocityConstraintSet ()=default |
| Span< int > | get_affected_geo_indices () const |
Static Public Attributes | |
| static constexpr StringRefNull | debug_name = "Linear Damping" |
Additional Inherited Members | |
| Protected Attributes inherited from blender::xpbd::TemplatedVelocityConstraintSet< LinearDampingConstraintSet > | |
| const int | constraint_num_ |
| Protected Attributes inherited from blender::xpbd::VelocityConstraintSet | |
| Vector< int > | affected_geo_indices_ |
Definition at line 11 of file GEO_xpbd_constraint_damping_linear.hh.
|
inline |
Definition at line 23 of file GEO_xpbd_constraint_damping_linear.hh.
References LinearDampingConstraintSet(), and blender::xpbd::TemplatedVelocityConstraintSet< LinearDampingConstraintSet >::TemplatedVelocityConstraintSet().
Referenced by LinearDampingConstraintSet().
|
inline |
Definition at line 35 of file GEO_xpbd_constraint_damping_linear.hh.
|
inline |
Definition at line 41 of file GEO_xpbd_constraint_damping_linear.hh.
References blender::xpbd::ConstraintSetParams::delta_time, blender::math::normalize_and_get_length(), and blender::xpbd::ConstraintSetParams::velocity().
|
staticconstexpr |
Definition at line 21 of file GEO_xpbd_constraint_damping_linear.hh.