Blender V5.3
blender::xpbd::TemplatedConstraintSet< Child > Class Template Reference

#include <GEO_xpbd_constraint_set_templated.hh>

Inherits blender::xpbd::ConstraintSet.

Public Member Functions

 TemplatedConstraintSet (const int constraints_num, Vector< int > affected_geo_indices)
void reset_forces () override
void solve_sequential (const ConstraintSetParams &params, GaussSeidelUpdater &updater, const IndexMask &mask) override
StringRefNull debug_name () const final
Public Member Functions inherited from blender::xpbd::ConstraintSet
 ConstraintSet (int constraints_num, Vector< int > affected_geo_indices)
virtual ~ConstraintSet ()=default
virtual ConstraintColoring color_constraints (LinearAllocator<> &memory) const =0
void solve_sequential_all (const ConstraintSetParams &params, GaussSeidelUpdater &updater)
Span< int > get_affected_geo_indices () const

Additional Inherited Members

Protected Attributes inherited from blender::xpbd::ConstraintSet
int constraints_num_
Vector< int > affected_geo_indices_

Detailed Description

template<typename Child>
class blender::xpbd::TemplatedConstraintSet< Child >

Utility to implement a constraint evaluator that automatically works with multiple updaters like GaussSeidelUpdater.

Child classes have to implement the templated #solve_single method.

Definition at line 17 of file GEO_xpbd_constraint_set_templated.hh.

Constructor & Destructor Documentation

◆ TemplatedConstraintSet()

template<typename Child>
blender::xpbd::TemplatedConstraintSet< Child >::TemplatedConstraintSet ( const int constraints_num,
Vector< int > affected_geo_indices )
inline

Member Function Documentation

◆ debug_name()

template<typename Child>
StringRefNull blender::xpbd::TemplatedConstraintSet< Child >::debug_name ( ) const
inlinefinalvirtual

Implements blender::xpbd::ConstraintSet.

Definition at line 41 of file GEO_xpbd_constraint_set_templated.hh.

References final.

◆ reset_forces()

template<typename Child>
void blender::xpbd::TemplatedConstraintSet< Child >::reset_forces ( )
inlineoverridevirtual

◆ solve_sequential()

template<typename Child>
void blender::xpbd::TemplatedConstraintSet< Child >::solve_sequential ( const ConstraintSetParams & params,
GaussSeidelUpdater & updater,
const IndexMask & mask )
inlineoverridevirtual

Implements blender::xpbd::ConstraintSet.

Definition at line 32 of file GEO_xpbd_constraint_set_templated.hh.


The documentation for this class was generated from the following file: