Blender  V2.59
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_find_index (struct Object *ob, struct bDeformGroup *dg)
int * defgroup_flip_map (struct Object *ob, int use_default)
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)
float defvert_find_weight (const struct MDeformVert *dvert, const int group_num)
float defvert_array_find_weight_safe (const struct MDeformVert *dvert, int index, int group_num)
void defvert_copy (struct MDeformVert *dvert_r, const struct MDeformVert *dvert)
void defvert_sync (struct MDeformVert *dvert_r, const struct MDeformVert *dvert, int use_verify)
void defvert_sync_mapped (struct MDeformVert *dvert_r, const struct MDeformVert *dvert, const int *flip_map, int use_verify)
void defvert_remap (struct MDeformVert *dvert, int *map)
void defvert_flip (struct MDeformVert *dvert, const int *flip_map)
void defvert_normalize (struct MDeformVert *dvert)
void flip_side_name (char name[32], const char from_name[32], 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 54 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 66 of file deform.c.

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

Referenced by defgroup_copy_list(), and vgroup_duplicate().

int defgroup_find_index ( struct Object ob,
struct bDeformGroup dg 
)
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  use_default 
)
int defgroup_name_index ( struct Object ob,
const char *  name 
)
void defgroup_unique_name ( struct bDeformGroup dg,
struct Object ob 
)
float defvert_array_find_weight_safe ( const struct MDeformVert dvert,
int  index,
int  group_num 
)
void defvert_copy ( struct MDeformVert dvert_r,
const struct MDeformVert dvert 
)
struct MDeformWeight* defvert_find_index ( const struct MDeformVert dv,
const int  defgroup 
) [read]
float defvert_find_weight ( const struct MDeformVert dvert,
const int  group_num 
)
void defvert_flip ( struct MDeformVert dvert,
const int *  flip_map 
)

Definition at line 173 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)

Definition at line 151 of file deform.c.

References MDeformVert::dw, i, MDeformVert::totweight, and MDeformWeight::weight.

Referenced by vgroup_normalize_active().

void defvert_remap ( struct MDeformVert dvert,
int *  map 
)

Definition at line 142 of file deform.c.

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

Referenced by vgroup_do_remap().

void defvert_sync ( struct MDeformVert dvert_r,
const struct MDeformVert dvert,
int  use_verify 
)
void defvert_sync_mapped ( struct MDeformVert dvert_r,
const struct MDeformVert dvert,
const int *  flip_map,
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[32],
const char  from_name[32],
int  strip_number 
)