|
Blender V5.3
|
#include <GEO_xpbd_constraint_rod_bend_twist.hh>
Inherits blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >.
Public Member Functions | |
| RodBendAndTwistConstraintSet (const int geo_i, const IndexRange curves_range, const OffsetIndices< int > points_by_curve, const Span< math::Quaternion > rest_rotations, const Span< float > compliances, const float error_scale, MutableSpan< float4 > 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 |
| ConstraintColoring | color_constraints (LinearAllocator<> &) const override |
| Public Member Functions inherited from blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet > | |
| TemplatedConstraintSet (const int constraints_num, Vector< int > affected_geo_indices) | |
| void | reset_forces () override |
| void | solve_sequential (const ConstraintSetParams ¶ms, 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 |
| void | solve_sequential_all (const ConstraintSetParams ¶ms, GaussSeidelUpdater &updater) |
| Span< int > | get_affected_geo_indices () const |
Static Public Attributes | |
| static constexpr StringRefNull | debug_name = "Rod Bend and Twist" |
Additional Inherited Members | |
| Protected Attributes inherited from blender::xpbd::ConstraintSet | |
| int | constraints_num_ |
| Vector< int > | affected_geo_indices_ |
Aligns rotations of two consecutive rods based on a rest rotation.
Definition at line 14 of file GEO_xpbd_constraint_rod_bend_twist.hh.
|
inline |
Definition at line 34 of file GEO_xpbd_constraint_rod_bend_twist.hh.
References RodBendAndTwistConstraintSet(), and blender::xpbd::TemplatedConstraintSet< RodBendAndTwistConstraintSet >::TemplatedConstraintSet().
Referenced by RodBendAndTwistConstraintSet().
|
inlineoverridevirtual |
Implements blender::xpbd::ConstraintSet.
Definition at line 89 of file GEO_xpbd_constraint_rod_bend_twist.hh.
References blender::xpbd::color_constraints__all_independent(), and blender::xpbd::ConstraintSet::constraints_num_.
|
inline |
Definition at line 51 of file GEO_xpbd_constraint_rod_bend_twist.hh.
References blender::IndexRange::slice().
|
inline |
Definition at line 59 of file GEO_xpbd_constraint_rod_bend_twist.hh.
References blender::xpbd::ConstraintSet::affected_geo_indices_, blender::xpbd::ConstraintSetParams::compliance_term_factor, blender::IndexRange::drop_back(), blender::xpbd::evaluate_align_rotations_constraint(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::xpbd::ConstraintSetParams::moment_of_inertia(), blender::result, and blender::xpbd::ConstraintSetParams::rotation().
|
staticconstexpr |
Definition at line 32 of file GEO_xpbd_constraint_rod_bend_twist.hh.