Blender  V3.3
Functions
spline_bezier.cc File Reference
#include "BLI_array.hh"
#include "BLI_span.hh"
#include "BLI_task.hh"
#include "BKE_spline.hh"

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)
 

Function Documentation

◆ bezier_forward_difference_3d()

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

Definition at line 384 of file spline_bezier.cc.

References BLI_assert, q1, and result.

Referenced by BezierSpline::evaluate_segment().

◆ calculate_mappings_linear_resolution()

static void calculate_mappings_linear_resolution ( Span< int >  offsets,
const int  size,
const int  resolution,
const bool  is_cyclic,
MutableSpan< float r_mappings 
)
static

◆ interpolate_to_evaluated_impl()

template<typename T >
static void interpolate_to_evaluated_impl ( const BezierSpline spline,
const blender::VArray< T > &  src,
MutableSpan< T dst 
)
static

◆ next_position()

static float3 next_position ( Span< float3 positions,
const bool  cyclic,
const int  i 
)
static

◆ previous_position()

static float3 previous_position ( Span< float3 positions,
const bool  cyclic,
const int  i 
)
static

Definition at line 149 of file spline_bezier.cc.

References positions.

Referenced by BezierSpline::ensure_auto_handles().

◆ set_handle_position()

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