43
43
void defgroup_copy_list(struct ListBase *lb1, struct ListBase *lb2);
44
44
struct bDeformGroup *defgroup_duplicate(struct bDeformGroup *ingroup);
45
struct bDeformGroup *defgroup_find_name(struct Object *ob, char *name);
46
int defgroup_find_index(struct Object *ob, struct bDeformGroup *dg);
47
int *defgroup_flip_map(struct Object *ob, int use_default);
45
struct bDeformGroup *defgroup_find_name(struct Object *ob, const char *name);
46
int *defgroup_flip_map(struct Object *ob, int *flip_map_len, int use_default);
47
int *defgroup_flip_map_single(struct Object *ob, int *flip_map_len, int use_default, int defgroup);
48
48
int defgroup_flip_index(struct Object *ob, int index, int use_default);
49
49
int defgroup_name_index(struct Object *ob, const char *name);
50
50
void defgroup_unique_name(struct bDeformGroup *dg, struct Object *ob);
52
struct MDeformWeight *defvert_find_index(const struct MDeformVert *dv, int defgroup);
53
struct MDeformWeight *defvert_verify_index(struct MDeformVert *dv, int defgroup);
55
float defvert_find_weight(const struct MDeformVert *dvert, int group_num);
56
float defvert_array_find_weight_safe(const struct MDeformVert *dvert, int index, int group_num);
58
void defvert_copy(struct MDeformVert *dvert_r, const struct MDeformVert *dvert);
59
void defvert_sync(struct MDeformVert *dvert_r, const struct MDeformVert *dvert, int use_verify);
60
void defvert_sync_mapped(struct MDeformVert *dvert_r, const struct MDeformVert *dvert, int *flip_map, int use_verify);
61
void defvert_remap (struct MDeformVert *dvert, int *map);
62
void defvert_flip(struct MDeformVert *dvert, int *flip_map);
52
struct MDeformWeight *defvert_find_index(const struct MDeformVert *dv, const int defgroup);
53
struct MDeformWeight *defvert_verify_index(struct MDeformVert *dv, const int defgroup);
54
void defvert_add_index_notest(struct MDeformVert *dv, int defgroup, const float weight);
55
void defvert_remove_group(struct MDeformVert *dvert, struct MDeformWeight *dw);
56
void defvert_clear(struct MDeformVert *dvert);
58
float defvert_find_weight(const struct MDeformVert *dvert, const int defgroup);
59
float defvert_array_find_weight_safe(const struct MDeformVert *dvert, const int index, const int defgroup);
61
void defvert_copy(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src);
62
void defvert_copy_index(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, const int defgroup);
63
void defvert_sync(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src, int use_verify);
64
void defvert_sync_mapped(struct MDeformVert *dvert_dst, const struct MDeformVert *dvert_src,
65
const int *flip_map, const int flip_map_len, const int use_verify);
66
void defvert_remap (struct MDeformVert *dvert, int *map, const int map_len);
67
void defvert_flip(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
68
void defvert_flip_merged(struct MDeformVert *dvert, const int *flip_map, const int flip_map_len);
63
69
void defvert_normalize(struct MDeformVert *dvert);
70
void defvert_normalize_lock(struct MDeformVert *dvert, const int def_nr_lock);
65
72
/* utility function, note that 32 chars is the maximum string length since its only
66
73
* used with defgroups currently */
67
void flip_side_name(char *name, const char *from_name, int strip_number);
74
void flip_side_name(char name[64], const char from_name[64], int strip_number);