Blender  V3.3
Functions
BKE_anim_path.h File Reference

Go to the source code of this file.

Functions

int BKE_anim_path_get_array_size (const struct CurveCache *curve_cache)
 
float BKE_anim_path_get_length (const struct CurveCache *curve_cache)
 
void BKE_anim_path_calc_data (struct Object *ob)
 
bool BKE_where_on_path (const struct Object *ob, float ctime, float r_vec[4], float r_dir[3], float r_quat[4], float *r_radius, float *r_weight)
 

Function Documentation

◆ BKE_anim_path_calc_data()

void BKE_anim_path_calc_data ( struct Object ob)

This function populates the 'ob->runtime.curve_cache->anim_path_accum_length' data. You should never have to call this manually as it should already have been called by 'BKE_displist_make_curveTypes'. Do not call this manually unless you know what you are doing.

Definition at line 56 of file anim_path.c.

References CurveCache::anim_path_accum_length, CurveCache::bev, BevList::bevpoints, BLI_assert, CLOG_WARN, Object_Runtime::curve_cache, ListBase::first, get_bevlist_seg_array_size(), len_v3v3(), LOG, MEM_freeN, MEM_mallocN, BevList::nr, NULL, OB_CURVES_LEGACY, BevList::poly, Object::runtime, Object::type, and BevPoint::vec.

Referenced by evaluate_curve_type_object().

◆ BKE_anim_path_get_array_size()

int BKE_anim_path_get_array_size ( const struct CurveCache curve_cache)

Referenced by position_tail_on_spline().

◆ BKE_anim_path_get_length()

float BKE_anim_path_get_length ( const struct CurveCache curve_cache)

◆ BKE_where_on_path()

bool BKE_where_on_path ( const struct Object ob,
float  ctime,
float  r_vec[4],
float  r_dir[3],
float  r_quat[4],
float r_radius,
float r_weight 
)

Calculate the deformation implied by the curve path at a given parametric position, and returns whether this operation succeeded.

Parameters
ctimeTime is normalized range <0-1>.
Returns
success.

Referenced by calc_curve_deform(), clampto_evaluate(), do_guides(), followpath_get_tarmat(), ob_parcurve(), precalculate_effector(), splineik_evaluate_bone(), and vfont_to_curve().