|
Blender
V2.59
|
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 bDeformGroup * | defgroup_duplicate (struct bDeformGroup *ingroup) |
| struct bDeformGroup * | defgroup_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 MDeformWeight * | defvert_find_index (const struct MDeformVert *dv, const int defgroup) |
| struct MDeformWeight * | defvert_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) |
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 | ||
| ) |
Definition at line 219 of file deform.c.
References Object::defbase, ListBase::first, bDeformGroup::next, and NULL.
Referenced by do_versions(), ED_vgroup_vert_add(), ED_vgroup_vert_remove(), ED_vgroup_vert_weight(), and wpaint_stroke_test_start().
| struct bDeformGroup* defgroup_find_name | ( | struct Object * | ob, |
| const char * | name | ||
| ) | [read] |
Definition at line 184 of file deform.c.
References Object::defbase, ListBase::first, bDeformGroup::name, bDeformGroup::next, and NULL.
Referenced by add_verts_to_dgroups(), dgroup_skinnable_cb(), do_versions(), ED_armature_bone_rename(), join_mesh_exec(), vgroup_add_unique_bone_cb(), and wpaint_stroke_test_start().
| int defgroup_flip_index | ( | struct Object * | ob, |
| int | index, | ||
| int | use_default | ||
| ) |
Definition at line 295 of file deform.c.
References BLI_findlink(), Object::defbase, defgroup_name_index(), flip_side_name(), bDeformGroup::name, and ImBuf::name.
Referenced by editvert_mirror_update().
| int* defgroup_flip_map | ( | struct Object * | ob, |
| int | use_default | ||
| ) |
Definition at line 260 of file deform.c.
References BLI_countlist(), Object::defbase, defgroup_name_index(), ListBase::first, flip_side_name(), i, MEM_mallocN(), bDeformGroup::name, ImBuf::name, bDeformGroup::next, and NULL.
Referenced by doMirrorOnAxis(), ED_vgroup_mirror(), and editvert_mirror_update().
| int defgroup_name_index | ( | struct Object * | ob, |
| const char * | name | ||
| ) |
Definition at line 199 of file deform.c.
References Object::defbase, ListBase::first, bDeformGroup::name, and bDeformGroup::next.
Referenced by applyModifier(), armature_deform_verts(), calc_latt_deform(), contarget_get_lattice_mat(), contarget_get_mesh_mat(), curve_deform_verts(), defgroup_flip_index(), defgroup_flip_map(), ED_vgroup_select_by_name(), get_weights_array(), lattice_deform_verts(), mesh_to_softbody(), modifier_get_vgroup(), and shrinkwrapModifier_deform().
| void defgroup_unique_name | ( | struct bDeformGroup * | dg, |
| struct Object * | ob | ||
| ) |
Definition at line 332 of file deform.c.
References BLI_uniquename_cb(), defgroup_unique_check(), and bDeformGroup::name.
Referenced by do_versions(), ED_vgroup_add_name(), namebutton_cb(), and vgroup_duplicate().
| float defvert_array_find_weight_safe | ( | const struct MDeformVert * | dvert, |
| int | index, | ||
| int | group_num | ||
| ) |
Definition at line 462 of file deform.c.
References defvert_find_weight(), and NULL.
Referenced by shrinkwrap_calc_nearest_surface_point(), shrinkwrap_calc_nearest_vertex(), shrinkwrap_calc_normal_projection(), and SimpleDeformModifier_do().
| void defvert_copy | ( | struct MDeformVert * | dvert_r, |
| const struct MDeformVert * | dvert | ||
| ) |
Referenced by dvert_mirror_op(), and vgroup_copy_active_to_sel().
| 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 | ||
| ) |
Definition at line 456 of file deform.c.
References defvert_find_index(), and MDeformWeight::weight.
Referenced by applyModifier(), armature_deform_verts(), calc_latt_deform(), createFacepa(), curve_deform_verts(), deformVerts(), defvert_array_find_weight_safe(), displaceModifier_do(), editvert_mirror_update(), get_weights_array(), lattice_deform_verts(), return_editmesh_vgroup(), warpModifier_do(), waveModifier_do(), and weight_sample_invoke().
| 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] |
Definition at line 487 of file deform.c.
References MDeformWeight::def_nr, defvert_find_index(), MDeformVert::dw, MEM_callocN(), MEM_freeN(), NULL, MDeformVert::totweight, and MDeformWeight::weight.
Referenced by defvert_sync(), defvert_sync_mapped(), do_weight_paint_vertex(), editvert_mirror_update(), vgroup_blend(), vgroup_duplicate(), vgroup_invert(), wpaint_fill(), and wpaint_stroke_update_step().
| void flip_side_name | ( | char | name[32], |
| const char | from_name[32], | ||
| int | strip_number | ||
| ) |