Blender
V3.3
|
Go to the source code of this file.
Functions | |
static float3 | previous_position (Span< float3 > positions, const bool cyclic, const int i) |
static float3 | next_position (Span< float3 > positions, const bool cyclic, const int i) |
static void | set_handle_position (const float3 &position, const HandleType type, const HandleType type_other, const float3 &new_value, float3 &handle, float3 &handle_other) |
static void | bezier_forward_difference_3d (const float3 &point_0, const float3 &point_1, const float3 &point_2, const float3 &point_3, MutableSpan< float3 > result) |
static void | calculate_mappings_linear_resolution (Span< int > offsets, const int size, const int resolution, const bool is_cyclic, MutableSpan< float > r_mappings) |
template<typename T > | |
static void | interpolate_to_evaluated_impl (const BezierSpline &spline, const blender::VArray< T > &src, MutableSpan< T > dst) |
|
static |
Definition at line 384 of file spline_bezier.cc.
References BLI_assert, q1, and result.
Referenced by BezierSpline::evaluate_segment().
|
static |
Definition at line 460 of file spline_bezier.cc.
References Spline::is_cyclic(), blender::MutableSpan< T >::last(), max, blender::threading::parallel_for(), BezierSpline::resolution(), and BezierSpline::size().
Referenced by BezierSpline::evaluated_mappings().
|
static |
Definition at line 603 of file spline_bezier.cc.
References BLI_assert, BezierSpline::evaluated_mappings(), BezierSpline::evaluated_points_num(), blender::MutableSpan< T >::index_range(), interp(), BezierSpline::interpolation_data_from_index_factor(), blender::attribute_math::mix2(), blender::MutableSpan< T >::size(), BezierSpline::size(), src, and T.
Definition at line 160 of file spline_bezier.cc.
References positions.
Referenced by blender::bke::curves::bezier::calculate_point_handles(), and BezierSpline::ensure_auto_handles().
Definition at line 149 of file spline_bezier.cc.
References positions.
Referenced by BezierSpline::ensure_auto_handles().
|
static |
Definition at line 259 of file spline_bezier.cc.
References BEZIER_HANDLE_ALIGN, BEZIER_HANDLE_AUTO, BEZIER_HANDLE_VECTOR, blender::math::distance(), ELEM, Spline::length(), blender::math::normalize(), and Spline::type().
Referenced by BezierSpline::set_handle_position_left(), and BezierSpline::set_handle_position_right().