Blender V4.3
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 59 of file anim_path.cc.

References BevList::bevpoints, CLOG_WARN, get_bevlist_seg_array_size(), len_v3v3(), LOG, MEM_mallocN, MEM_SAFE_FREE, BevList::nr, 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(), blender::draw::overlay::ForceFields::object_sync(), OVERLAY_forcefield(), precalculate_effector(), splineik_evaluate_bone(), and vfont_to_curve().