|
Blender V5.3
|
#include <GEO_xpbd_constraint_set.hh>
Inherited by blender::xpbd::TemplatedConstraintSet< CollisionEdgeConstraintSet >, blender::xpbd::TemplatedConstraintSet< CollisionFaceConstraintSet >, blender::xpbd::TemplatedConstraintSet< DistanceConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinPositionConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinRotationConstraintSet >, blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >, blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >, and blender::xpbd::TemplatedConstraintSet< Child >.
Public Member Functions | |
| ConstraintSet (int constraints_num, Vector< int > affected_geo_indices) | |
| virtual | ~ConstraintSet ()=default |
| virtual StringRefNull | debug_name () const =0 |
| virtual void | solve_sequential (const ConstraintSetParams ¶ms, GaussSeidelUpdater &updater, const IndexMask &mask)=0 |
| virtual void | reset_forces ()=0 |
| virtual ConstraintColoring | color_constraints (LinearAllocator<> &memory) const =0 |
| void | solve_sequential_all (const ConstraintSetParams ¶ms, GaussSeidelUpdater &updater) |
| Span< int > | get_affected_geo_indices () const |
Protected Attributes | |
| int | constraints_num_ |
| Vector< int > | affected_geo_indices_ |
Base class for constraint evaluators. It evaluate a batch of constraints and writes back the results using a passed in "updater".
Use TemplatedConstraintSet to instantiate the constraint evaluation for each updater automatically. This avoids having to implement separate Jacobian and Gauss Seidel code paths for such constraints.
Definition at line 26 of file GEO_xpbd_constraint_set.hh.
|
inline |
Definition at line 32 of file GEO_xpbd_constraint_set.hh.
References affected_geo_indices_, and constraints_num_.
Referenced by blender::xpbd::TemplatedConstraintSet< Child >::TemplatedConstraintSet().
|
virtualdefault |
|
pure virtual |
Implemented in blender::xpbd::CollisionEdgeConstraintSet, blender::xpbd::CollisionFaceConstraintSet, blender::xpbd::DistanceConstraintSet, blender::xpbd::PinPositionConstraintSet, blender::xpbd::PinRotationConstraintSet, blender::xpbd::RodBendAndTwistConstraintSet, and blender::xpbd::RodStretchAndShearConstraintSet.
|
pure virtual |
Implemented in blender::xpbd::TemplatedConstraintSet< Child >, blender::xpbd::TemplatedConstraintSet< CollisionEdgeConstraintSet >, blender::xpbd::TemplatedConstraintSet< CollisionFaceConstraintSet >, blender::xpbd::TemplatedConstraintSet< DistanceConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinPositionConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinRotationConstraintSet >, blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >, and blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >.
|
inline |
Definition at line 51 of file GEO_xpbd_constraint_set.hh.
References affected_geo_indices_.
|
pure virtual |
Implemented in blender::xpbd::TemplatedConstraintSet< Child >, blender::xpbd::TemplatedConstraintSet< CollisionEdgeConstraintSet >, blender::xpbd::TemplatedConstraintSet< CollisionFaceConstraintSet >, blender::xpbd::TemplatedConstraintSet< DistanceConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinPositionConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinRotationConstraintSet >, blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >, and blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >.
|
pure virtual |
Implemented in blender::xpbd::TemplatedConstraintSet< Child >, blender::xpbd::TemplatedConstraintSet< CollisionEdgeConstraintSet >, blender::xpbd::TemplatedConstraintSet< CollisionFaceConstraintSet >, blender::xpbd::TemplatedConstraintSet< DistanceConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinPositionConstraintSet >, blender::xpbd::TemplatedConstraintSet< PinRotationConstraintSet >, blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >, and blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >.
Referenced by solve_sequential_all().
|
inline |
Definition at line 46 of file GEO_xpbd_constraint_set.hh.
References constraints_num_, blender::IndexMask::IndexMask(), and solve_sequential().
|
protected |
Definition at line 29 of file GEO_xpbd_constraint_set.hh.
Referenced by ConstraintSet(), get_affected_geo_indices(), blender::xpbd::DistanceConstraintSet::solve_single(), blender::xpbd::PinPositionConstraintSet::solve_single(), blender::xpbd::PinRotationConstraintSet::solve_single(), blender::xpbd::RodBendAndTwistConstraintSet::solve_single(), and blender::xpbd::RodStretchAndShearConstraintSet::solve_single().
|
protected |
Definition at line 28 of file GEO_xpbd_constraint_set.hh.
Referenced by blender::xpbd::RodBendAndTwistConstraintSet::color_constraints(), blender::xpbd::RodStretchAndShearConstraintSet::color_constraints(), ConstraintSet(), blender::xpbd::TemplatedConstraintSet< Child >::reset_forces(), and solve_sequential_all().