Blender V5.3
blender::xpbd::FrictionEdgeConstraintSet Class Reference

#include <GEO_xpbd_constraint_friction_edge.hh>

Inherits blender::xpbd::TemplatedVelocityConstraintSet< FrictionEdgeConstraintSet >.

Public Member Functions

 FrictionEdgeConstraintSet (const int geo_i, const Span< int2 > point_pairs, const Span< float3 > separating_axes, const Span< float3 > contact_velocities, const Span< float > dynamic_friction_terms, const Span< float > lambdas_normal, const Span< float > point_mix_factors, MutableSpan< float > lambdas)
void reset_force (const int constraint_i) const
template<typename UpdaterT>
void solve_single (const ConstraintSetParams &params, UpdaterT &updater, const int constraint_i) const
Public Member Functions inherited from blender::xpbd::TemplatedVelocityConstraintSet< FrictionEdgeConstraintSet >
 TemplatedVelocityConstraintSet (int constraints_num, Vector< int > affected_geo_indices)
void reset_forces () override
void solve_sequential (const ConstraintSetParams &params, 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 = "Friction"

Additional Inherited Members

Protected Attributes inherited from blender::xpbd::TemplatedVelocityConstraintSet< FrictionEdgeConstraintSet >
const int constraint_num_
Protected Attributes inherited from blender::xpbd::VelocityConstraintSet
Vector< int > affected_geo_indices_

Detailed Description

Definition at line 12 of file GEO_xpbd_constraint_friction_edge.hh.

Constructor & Destructor Documentation

◆ FrictionEdgeConstraintSet()

blender::xpbd::FrictionEdgeConstraintSet::FrictionEdgeConstraintSet ( const int geo_i,
const Span< int2 > point_pairs,
const Span< float3 > separating_axes,
const Span< float3 > contact_velocities,
const Span< float > dynamic_friction_terms,
const Span< float > lambdas_normal,
const Span< float > point_mix_factors,
MutableSpan< float > lambdas )
inline

Member Function Documentation

◆ reset_force()

void blender::xpbd::FrictionEdgeConstraintSet::reset_force ( const int constraint_i) const
inline

Definition at line 49 of file GEO_xpbd_constraint_friction_edge.hh.

◆ solve_single()

template<typename UpdaterT>
void blender::xpbd::FrictionEdgeConstraintSet::solve_single ( const ConstraintSetParams & params,
UpdaterT & updater,
const int constraint_i ) const
inline

Member Data Documentation

◆ debug_name

StringRefNull blender::xpbd::FrictionEdgeConstraintSet::debug_name = "Friction"
staticconstexpr

Definition at line 27 of file GEO_xpbd_constraint_friction_edge.hh.


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