Blender V2.61 - r43446
Functions

BKE_deform.h File Reference

support for deformation groups and hooks. More...

Go to the source code of this file.

Functions

void defgroup_copy_list (struct ListBase *lb1, struct ListBase *lb2)
struct bDeformGroupdefgroup_duplicate (struct bDeformGroup *ingroup)
struct bDeformGroupdefgroup_find_name (struct Object *ob, const char *name)
int * defgroup_flip_map (struct Object *ob, int *flip_map_len, int use_default)
int * defgroup_flip_map_single (struct Object *ob, int *flip_map_len, int use_default, int defgroup)
int defgroup_flip_index (struct Object *ob, int index, int use_default)
int defgroup_name_index (struct Object *ob, const char *name)
void defgroup_unique_name (struct bDeformGroup *dg, struct Object *ob)
struct MDeformWeightdefvert_find_index (const struct MDeformVert *dv, const int defgroup)
struct MDeformWeightdefvert_verify_index (struct MDeformVert *dv, const int defgroup)
void defvert_add_index_notest (struct MDeformVert *dv, int defgroup, const float weight)
void defvert_remove_group (struct MDeformVert *dvert, struct MDeformWeight *dw)
float defvert_find_weight (const struct MDeformVert *dvert, const int defgroup)
float defvert_array_find_weight_safe (const struct MDeformVert *dvert, const int index, const int defgroup)
void defvert_copy (struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src)
void defvert_copy_index (struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, const int defgroup)
void defvert_sync (struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, int use_verify)
void defvert_sync_mapped (struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, const int *flip_map, const int flip_map_len, const int use_verify)
void defvert_remap (struct MDeformVert *dvert, int *map, const int map_len)
void defvert_flip (struct MDeformVert *dvert, const int *flip_map, const int flip_map_len)
void defvert_normalize (struct MDeformVert *dvert)
void defvert_normalize_lock (struct MDeformVert *dvert, const int def_nr_lock)
void flip_side_name (char name[64], const char from_name[64], int strip_number)

Detailed Description

support for deformation groups and hooks.

Since:
June 2001
Author:
Reevan McKay et al

Definition in file BKE_deform.h.


Function Documentation

void defgroup_copy_list ( struct ListBase lb1,
struct ListBase lb2 
)

Definition at line 48 of file deform.c.

References BLI_addtail(), defgroup_duplicate(), ListBase::first, ListBase::last, bDeformGroup::next, and NULL.

Referenced by copy_object().

struct bDeformGroup* defgroup_duplicate ( struct bDeformGroup ingroup) [read]

Definition at line 60 of file deform.c.

References MEM_callocN(), bDeformGroup::next, NULL, and bDeformGroup::prev.

Referenced by defgroup_copy_list(), and vgroup_duplicate().

struct bDeformGroup* defgroup_find_name ( struct Object ob,
const char *  name 
) [read]
int defgroup_flip_index ( struct Object ob,
int  index,
int  use_default 
)
int* defgroup_flip_map ( struct Object ob,
int *  flip_map_len,
int  use_default 
)
int* defgroup_flip_map_single ( struct Object ob,
int *  flip_map_len,
int  use_default,
int  defgroup 
)
int defgroup_name_index ( struct Object ob,
const char *  name 
)
void defgroup_unique_name ( struct bDeformGroup dg,
struct Object ob 
)
void defvert_add_index_notest ( struct MDeformVert dv,
int  defgroup,
const float  weight 
)
float defvert_array_find_weight_safe ( const struct MDeformVert dvert,
const int  index,
const int  defgroup 
)
void defvert_copy ( struct MDeformVert dvert_dst,
const struct MDeformVert dvert_src 
)
void defvert_copy_index ( struct MDeformVert dvert_dst,
const struct MDeformVert dvert_src,
const int  defgroup 
)

Referenced by dvert_mirror_op().

struct MDeformWeight* defvert_find_index ( const struct MDeformVert dv,
const int  defgroup 
) [read]
float defvert_find_weight ( const struct MDeformVert dvert,
const int  defgroup 
)
void defvert_flip ( struct MDeformVert dvert,
const int *  flip_map,
const int  flip_map_len 
)

Definition at line 249 of file deform.c.

References MDeformWeight::def_nr, MDeformVert::dw, and i.

Referenced by doMirrorOnAxis(), and dvert_mirror_op().

void defvert_normalize ( struct MDeformVert dvert)
void defvert_normalize_lock ( struct MDeformVert dvert,
const int  def_nr_lock 
)
void defvert_remap ( struct MDeformVert dvert,
int *  map,
const int  map_len 
)

Definition at line 164 of file deform.c.

References BLI_assert, MDeformWeight::def_nr, MDeformVert::dw, i, and MDeformVert::totweight.

Referenced by vgroup_do_remap().

void defvert_remove_group ( struct MDeformVert dvert,
struct MDeformWeight dw 
)
void defvert_sync ( struct MDeformVert dvert_dst,
const struct MDeformVert dvert_src,
int  use_verify 
)
void defvert_sync_mapped ( struct MDeformVert dvert_dst,
const struct MDeformVert dvert_src,
const int *  flip_map,
const int  flip_map_len,
const int  use_verify 
)

Referenced by editvert_mirror_update().

struct MDeformWeight* defvert_verify_index ( struct MDeformVert dv,
const int  defgroup 
) [read]
void flip_side_name ( char  name[64],
const char  from_name[64],
int  strip_number 
)