|
Blender V5.3
|
Classes | |
| struct | AlignRotationsConstraintResult |
| class | AngularDampingConstraintSet |
| class | CollisionEdgeConstraintSet |
| class | CollisionFaceConstraintSet |
| struct | ConstraintColoring |
| class | ConstraintSet |
| class | ConstraintSetParams |
| struct | DistanceConstraintResult |
| class | DistanceConstraintSet |
| class | FrictionEdgeConstraintSet |
| class | FrictionFaceConstraintSet |
| class | GaussSeidelUpdater |
| struct | GeometryRef |
| class | LinearDampingConstraintSet |
| class | PinPositionConstraintSet |
| class | PinRotationConstraintSet |
| struct | PlaneIntersection |
| class | RodBendAndTwistConstraintSet |
| struct | RodStretchAndShearConstraintResult |
| class | RodStretchAndShearConstraintSet |
| struct | SegmentClosestToRay |
| class | TemplatedConstraintSet |
| class | TemplatedVelocityConstraintSet |
| class | VelocityConstraintSet |
| class | VelocityUpdater |
Functions | |
| AlignRotationsConstraintResult | evaluate_align_rotations_constraint (const math::Quaternion &r0, const math::Quaternion &r1, const float3 &inertia0, const float3 &inertia1, const math::Quaternion &rest_rotation, const float compliance_term, const float4 &lambda_prev) |
| ConstraintColoring | color_constraints__unary (const Span< int > affected_points, LinearAllocator<> &memory) |
| ConstraintColoring | color_constraints__binary (const Span< int2 > affected_points, LinearAllocator<> &memory) |
| ConstraintColoring | color_constraints__n_ary (const GroupedSpan< int > affected_points, LinearAllocator<> &memory) |
| ConstraintColoring | color_constraints__all_independent (const int constraints_num) |
| DistanceConstraintResult | evaluate_distance_constraint (const float3 &p0, const float3 &p1, const float inv_m0, const float inv_m1, const float rest_distance, const float compliance_term, const float lambda_prev) |
| std::optional< PlaneIntersection > | intersect_plane (const float3 &pos0, const float3 &pos1, const float3 &origin, const float3 &edge, const float3 &normal) |
| SegmentClosestToRay | closest_on_segment_to_ray (const float3 &pos0, const float3 &pos1, const float3 &ray_pos, const float3 &ray_dir, const bool clamp) |
| RodStretchAndShearConstraintResult | evaluate_rod_stretch_and_shear_constraint (const float3 &p0, const float3 &p1, const math::Quaternion &rot, const float inv_m0, const float inv_m1, const float3 &inertia, const float rest_length, const float compliance_term, const float3 &lambda_pos_prev, const float3 &lambda_rot_prev) |
| math::Quaternion | apply_rotation_offset (math::Quaternion rotation, float4 offset) |
| template<typename PointID, typename GetConstraintPointIdsFn> | |
| int | color_constraints (GetConstraintPointIdsFn &&get_constraint_point_ids_fn, MutableSpan< int > r_colors) |
| template<typename PointID, typename GetConstraintPointIdsFn> | |
| ConstraintColoring | generic_constraint_coloring (GetConstraintPointIdsFn &&get_constraint_points_fn, const int constraints_num, LinearAllocator<> &memory) |
|
inline |
Definition at line 13 of file GEO_xpbd_updater_gauss_seidel.hh.
References apply_rotation_offset(), and blender::math::normalize().
Referenced by apply_rotation_offset(), and blender::xpbd::GaussSeidelUpdater::update_rotation().
|
inline |
Find closest point of a segment to a ray.
| pos0 | First point of the line segment. |
| pos1 | Second point of the line segment. |
| ray_pos | Origin of the ray. |
| ray_dir | Direction of the ray. |
Definition at line 72 of file GEO_xpbd_constraint_math.hh.
References b, blender::BLI_assert(), blender::math::clamp(), clamp(), closest_on_segment_to_ray(), blender::math::dot(), blender::e, blender::math::is_unit(), blender::math::length_squared(), and blender::math::safe_divide().
Referenced by closest_on_segment_to_ray(), and blender::xpbd::CollisionEdgeConstraintSet::solve_single().
|
inline |
Definition at line 12 of file xpbd_constraint_coloring.cc.
References blender::MultiValueMap< Key, Value >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), color_constraints(), blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), blender::IndexRange::IndexRange(), blender::MultiValueMap< Key, Value >::lookup(), and blender::MutableSpan< T >::size().
Referenced by color_constraints(), and generic_constraint_coloring().
| ConstraintColoring blender::xpbd::color_constraints__all_independent | ( | const int | constraints_num | ) |
Definition at line 93 of file xpbd_constraint_coloring.cc.
References color_constraints__all_independent(), and blender::IndexMask::IndexMask().
Referenced by blender::xpbd::RodBendAndTwistConstraintSet::color_constraints(), blender::xpbd::RodStretchAndShearConstraintSet::color_constraints(), and color_constraints__all_independent().
| ConstraintColoring blender::xpbd::color_constraints__binary | ( | const Span< int2 > | affected_points, |
| LinearAllocator<> & | memory ) |
Definition at line 75 of file xpbd_constraint_coloring.cc.
References color_constraints__binary(), generic_constraint_coloring(), and blender::Span< T >::size().
Referenced by blender::xpbd::CollisionEdgeConstraintSet::color_constraints(), blender::xpbd::DistanceConstraintSet::color_constraints(), and color_constraints__binary().
| ConstraintColoring blender::xpbd::color_constraints__n_ary | ( | const GroupedSpan< int > | affected_points, |
| LinearAllocator<> & | memory ) |
Definition at line 84 of file xpbd_constraint_coloring.cc.
References color_constraints__n_ary(), generic_constraint_coloring(), and blender::offset_indices::GroupedSpan< T >::size().
Referenced by color_constraints__n_ary().
| ConstraintColoring blender::xpbd::color_constraints__unary | ( | const Span< int > | affected_points, |
| LinearAllocator<> & | memory ) |
Definition at line 66 of file xpbd_constraint_coloring.cc.
References color_constraints__unary(), generic_constraint_coloring(), and blender::Span< T >::size().
Referenced by blender::xpbd::CollisionFaceConstraintSet::color_constraints(), blender::xpbd::PinPositionConstraintSet::color_constraints(), blender::xpbd::PinRotationConstraintSet::color_constraints(), and color_constraints__unary().
|
inline |
Definition at line 19 of file GEO_xpbd_constraint_align_rotations.hh.
References blender::math::conjugate(), evaluate_align_rotations_constraint(), blender::math::invert_normalized(), blender::math::length_squared(), and blender::math::safe_rcp().
Referenced by evaluate_align_rotations_constraint(), blender::xpbd::PinRotationConstraintSet::solve_single(), and blender::xpbd::RodBendAndTwistConstraintSet::solve_single().
|
inline |
Definition at line 19 of file GEO_xpbd_constraint_distance.hh.
References evaluate_distance_constraint(), length(), blender::math::normalize_and_get_length(), and blender::math::square().
Referenced by evaluate_distance_constraint(), blender::xpbd::DistanceConstraintSet::solve_single(), and blender::xpbd::PinPositionConstraintSet::solve_single().
|
inline |
Definition at line 23 of file GEO_xpbd_constraint_rod_stretch_shear.hh.
References evaluate_rod_stretch_and_shear_constraint(), blender::math::length(), blender::math::length_squared(), blender::pow2f(), blender::result, rot, blender::math::safe_rcp(), and blender::math::transform_point().
Referenced by evaluate_rod_stretch_and_shear_constraint(), and blender::xpbd::RodStretchAndShearConstraintSet::solve_single().
|
inline |
Definition at line 44 of file xpbd_constraint_coloring.cc.
References color_constraints(), blender::xpbd::ConstraintColoring::colors, blender::IndexMask::from_indices(), generic_constraint_coloring(), and blender::IndexRange::IndexRange().
Referenced by color_constraints__binary(), color_constraints__n_ary(), color_constraints__unary(), and generic_constraint_coloring().
|
inline |
Test intersection of a line segment with a plane defined by two tangent vectors.
| pos0 | First point of the line segment. |
| pos1 | Second point of the line segment. |
| origin | Point on the half-plane edge. |
| edge | Edge of the half-plane. |
| normal | Direction away from the half-plane. |
Definition at line 29 of file GEO_xpbd_constraint_math.hh.
References blender::math::abs(), blender::BLI_assert(), blender::math::cross(), blender::math::dot(), blender::e, blender::math::interpolate(), intersect_plane(), blender::math::is_unit(), len(), and position.
Referenced by intersect_plane(), and blender::xpbd::CollisionEdgeConstraintSet::solve_single().