|
Blender V4.3
|
#include "DNA_armature_types.h"#include "DNA_mesh_types.h"#include "DNA_object_types.h"#include "MEM_guardedalloc.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string_utils.hh"#include "BKE_action.hh"#include "BKE_armature.hh"#include "BKE_attribute.hh"#include "BKE_deform.hh"#include "BKE_mesh_iterators.hh"#include "BKE_modifier.hh"#include "BKE_object.hh"#include "BKE_object_deform.h"#include "BKE_report.hh"#include "BKE_subsurf.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_query.hh"#include "ED_armature.hh"#include "ED_mesh.hh"#include "ED_object_vgroup.hh"#include "ANIM_bone_collections.hh"#include "armature_intern.hh"#include "meshlaplacian.h"Go to the source code of this file.
Functions | |
| static int | bone_skinnable_cb (Object *, Bone *bone, void *datap) |
| static int | vgroup_add_unique_bone_cb (Object *ob, Bone *bone, void *) |
| static int | dgroup_skinnable_cb (Object *ob, Bone *bone, void *datap) |
| static void | envelope_bone_weighting (Object *ob, Mesh *mesh, float(*verts)[3], int numbones, Bone **bonelist, bDeformGroup **dgrouplist, bDeformGroup **dgroupflip, float(*root)[3], float(*tip)[3], const bool *selected, float scale) |
| static void | add_verts_to_dgroups (ReportList *reports, Depsgraph *depsgraph, Scene *, Object *ob, Object *par, int heat, const bool mirror) |
| void | ED_object_vgroup_calc_from_armature (ReportList *reports, Depsgraph *depsgraph, Scene *scene, Object *ob, Object *par, const int mode, const bool mirror) |
API's for creating vertex groups from bones
Definition in file armature_skinning.cc.
|
static |
Definition at line 265 of file armature_skinning.cc.
References ANIM_bone_in_visible_collection(), Bone::arm_head, Bone::arm_mat, Bone::arm_tail, BKE_mesh_foreach_mapped_vert_coords_get(), BKE_modifiers_findby_type(), BKE_object_defgroup_data_create(), BKE_object_defgroup_find_name(), BKE_object_get_evaluated_mesh(), BKE_pchan_bbone_spline_setup(), BKE_pose_channel_find_name(), BKE_report(), BLI_string_flip_side_name(), bone_looper(), BONE_SELECTED, bone_skinnable_cb(), bArmature::bonebase, copy_v3_v3(), Object::data, DEG_get_evaluated_object(), depsgraph, dgroup_skinnable_cb(), ED_mesh_mirror_spatial_table_end(), eModifierType_Subsurf, envelope_bone_weighting(), error(), ListBase::first, Bone::flag, float, heat_bone_weighting(), Mat4::mat, mat4_to_scale(), MAX_BBONE_SUBDIV, MAXBONENAME, MEM_callocN, MEM_freeN(), mesh, Object::mode, mul_m4_v3(), mul_v3_m4v3(), bDeformGroup::name, Bone::name, OB_MODE_WEIGHT_PAINT, Object::pose, RPT_WARNING, Bone::segments, subsurf_calculate_limit_positions(), verts, and Mesh::verts_num.
Referenced by ED_object_vgroup_calc_from_armature().
Definition at line 46 of file armature_skinning.cc.
References BKE_pose_channel_find_name(), BONE_HIDDEN_P, BONE_NO_DEFORM, Bone::flag, Bone::name, and Bone::segments.
Referenced by add_verts_to_dgroups().
Definition at line 119 of file armature_skinning.cc.
References ANIM_bone_in_visible_collection(), BKE_object_defgroup_add_name(), BKE_object_defgroup_find_name(), BKE_pose_channel_find_name(), BONE_HIDDEN_P, BONE_NO_DEFORM, BONE_SELECTED, DG_LOCK_WEIGHT, bDeformGroup::flag, Bone::flag, Bone::name, and Bone::segments.
Referenced by add_verts_to_dgroups().
| void ED_object_vgroup_calc_from_armature | ( | ReportList * | reports, |
| Depsgraph * | depsgraph, | ||
| Scene * | scene, | ||
| Object * | ob, | ||
| Object * | par, | ||
| const int | mode, | ||
| const bool | mirror ) |
Definition at line 470 of file armature_skinning.cc.
References add_verts_to_dgroups(), ARM_GROUPS_AUTO, ARM_GROUPS_ENVELOPE, ARM_GROUPS_NAME, BKE_object_defgroup_count(), bone_looper(), bArmature::bonebase, Object::data, depsgraph, ELEM, ListBase::first, vgroup_add_unique_bone_cb(), and blender::ed::object::vgroup_data_clamp_range().
Referenced by blender::ed::object::parent_set(), and weight_from_bones_exec().
|
static |
Definition at line 191 of file armature_skinning.cc.
References Bone::dist, distfactor_to_bone(), ME_EDIT_MIRROR_TOPO, ME_EDIT_PAINT_FACE_SEL, ME_EDIT_PAINT_VERT_SEL, mesh_get_x_mirror_vert(), Object::mode, OB_MODE_WEIGHT_PAINT, Bone::rad_head, Bone::rad_tail, verts, blender::ed::object::vgroup_vert_add(), blender::ed::object::vgroup_vert_remove(), and WEIGHT_REPLACE.
Referenced by add_verts_to_dgroups().
Definition at line 104 of file armature_skinning.cc.
References BKE_object_defgroup_add_name(), BKE_object_defgroup_find_name(), BONE_NO_DEFORM, Bone::flag, and Bone::name.
Referenced by ED_object_vgroup_calc_from_armature().