|
Blender V5.3
|
#include <GEO_xpbd_constraint_rod_stretch_shear.hh>
Inherits blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >.
Public Member Functions | |
| RodStretchAndShearConstraintSet (const int geo_i, const IndexRange curves_range, const OffsetIndices< int > points_by_curve, const Span< float > rest_lengths, const Span< float > compliances, const float error_scale, MutableSpan< float3 > lambdas_pos, MutableSpan< float3 > lambdas_rot) | |
| 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< RodStretchAndShearConstraintSet > | |
| 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 Stretch and Shear" |
Additional Inherited Members | |
| Protected Attributes inherited from blender::xpbd::ConstraintSet | |
| int | constraints_num_ |
| Vector< int > | affected_geo_indices_ |
Considers a single rod at a time. Tries to enforce that the rotation of the rod is aligned with the actual tangent of the rod. If it is misaligned, it moves the start position, end position and rotation of the frame. At the same time, it enforces a certain length.
Definition at line 87 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
|
inline |
Definition at line 108 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
References RodStretchAndShearConstraintSet(), and blender::xpbd::TemplatedConstraintSet< RodStretchAndShearConstraintSet >::TemplatedConstraintSet().
Referenced by RodStretchAndShearConstraintSet().
|
inlineoverridevirtual |
Implements blender::xpbd::ConstraintSet.
Definition at line 169 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
References blender::xpbd::color_constraints__all_independent(), and blender::xpbd::ConstraintSet::constraints_num_.
|
inline |
Definition at line 127 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
References blender::IndexRange::slice().
|
inline |
Definition at line 136 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
References blender::xpbd::ConstraintSet::affected_geo_indices_, blender::xpbd::ConstraintSetParams::compliance_term_factor, blender::IndexRange::drop_back(), blender::xpbd::evaluate_rod_stretch_and_shear_constraint(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), blender::xpbd::ConstraintSetParams::inv_mass(), blender::xpbd::ConstraintSetParams::moment_of_inertia(), blender::xpbd::ConstraintSetParams::position(), blender::result, and blender::xpbd::ConstraintSetParams::rotation().
|
staticconstexpr |
Definition at line 106 of file GEO_xpbd_constraint_rod_stretch_shear.hh.