|
Blender
V2.93
|
Go to the source code of this file.
Macros | |
| #define | MOD_WVG_ZEROFLOOR 1.0e-32f |
Functions | |
| void | weightvg_do_map (int num, float *new_w, short falloff_type, const bool do_invert, struct CurveMapping *cmap, struct RNG *rng) |
| void | weightvg_do_mask (const ModifierEvalContext *ctx, const int num, const int *indices, float *org_w, const float *new_w, Object *ob, struct Mesh *mesh, const float fact, const char defgrp_name[MAX_VGROUP_NAME], struct Scene *scene, Tex *texture, const int tex_use_channel, const int tex_mapping, Object *tex_map_object, const char *text_map_bone, const char *tex_uvlayer_name, const bool invert_vgroup_mask) |
| void | weightvg_update_vg (struct MDeformVert *dvert, int defgrp_idx, struct MDeformWeight **dws, int num, const int *indices, const float *weights, const bool do_add, const float add_thresh, const bool do_rem, const float rem_thresh, const bool do_normalize) |
| void | weightvg_ui_common (const bContext *C, PointerRNA *ob_ptr, PointerRNA *ptr, uiLayout *layout) |
| #define MOD_WVG_ZEROFLOOR 1.0e-32f |
Definition at line 54 of file MOD_weightvg_util.h.
| void weightvg_do_map | ( | int | num, |
| float * | new_w, | ||
| short | falloff_type, | ||
| const bool | do_invert, | ||
| struct CurveMapping * | cmap, | ||
| struct RNG * | rng | ||
| ) |
Definition at line 66 of file MOD_weightvg_util.c.
References BKE_curvemapping_evaluateF(), BKE_curvemapping_init(), BLI_assert, BLI_rng_get_float(), ELEM, MOD_WVG_MAPPING_CURVE, MOD_WVG_MAPPING_NONE, MOD_WVG_MAPPING_RANDOM, MOD_WVG_MAPPING_ROOT, MOD_WVG_MAPPING_SHARP, MOD_WVG_MAPPING_SMOOTH, MOD_WVG_MAPPING_SPHERE, MOD_WVG_MAPPING_STEP, NULL, and sqrtf.
Referenced by do_map(), and modifyMesh().
| void weightvg_do_mask | ( | const ModifierEvalContext * | ctx, |
| const int | num, | ||
| const int * | indices, | ||
| float * | org_w, | ||
| const float * | new_w, | ||
| Object * | ob, | ||
| struct Mesh * | mesh, | ||
| const float | fact, | ||
| const char | defgrp_name[MAX_VGROUP_NAME], | ||
| struct Scene * | scene, | ||
| Tex * | texture, | ||
| const int | tex_use_channel, | ||
| const int | tex_mapping, | ||
| Object * | tex_map_object, | ||
| const char * | text_map_bone, | ||
| const char * | tex_uvlayer_name, | ||
| const bool | invert_vgroup_mask | ||
| ) |
Definition at line 135 of file MOD_weightvg_util.c.
References BKE_defvert_find_weight(), BKE_object_defgroup_name_index(), BKE_texture_get_value(), BLI_strncpy(), CD_MDEFORMVERT, CustomData_get_layer(), float(), indices, MappingInfoModifierData::map_bone, MappingInfoModifierData::map_object, MEM_calloc_arrayN, MEM_freeN, mesh, MOD_get_texture_coords(), MOD_init_texture(), MOD_WVG_MASK_TEX_USE_ALPHA, MOD_WVG_MASK_TEX_USE_BLUE, MOD_WVG_MASK_TEX_USE_GREEN, MOD_WVG_MASK_TEX_USE_HUE, MOD_WVG_MASK_TEX_USE_INT, MOD_WVG_MASK_TEX_USE_RED, MOD_WVG_MASK_TEX_USE_SAT, MOD_WVG_MASK_TEX_USE_VAL, TexResult::nor, NULL, rgb_to_hsv_v(), scene, TexResult::ta, TexResult::tb, MappingInfoModifierData::texmapping, MappingInfoModifierData::texture, TexResult::tg, TexResult::tin, Mesh::totvert, TexResult::tr, and MappingInfoModifierData::uvlayer_name.
Referenced by modifyMesh().
| void weightvg_ui_common | ( | const bContext * | C, |
| PointerRNA * | ob_ptr, | ||
| PointerRNA * | ptr, | ||
| uiLayout * | layout | ||
| ) |
Definition at line 345 of file MOD_weightvg_util.c.
References C, IFACE_, MOD_DISP_MAP_OBJECT, MOD_DISP_MAP_UV, modifier_vgroup_ui(), NULL, OB_MESH, ptr, RNA_enum_get(), RNA_pointer_get(), RNA_pointer_is_null(), RNA_string_length(), UI_ITEM_R_SLIDER, uiItemPointerR(), uiItemR(), uiLayoutSetPropSep(), and uiTemplateID().
Referenced by influence_panel_draw().
| void weightvg_update_vg | ( | struct MDeformVert * | dvert, |
| int | defgrp_idx, | ||
| struct MDeformWeight ** | dws, | ||
| int | num, | ||
| const int * | indices, | ||
| const float * | weights, | ||
| const bool | do_add, | ||
| const float | add_thresh, | ||
| const bool | do_rem, | ||
| const float | rem_thresh, | ||
| const bool | do_normalize | ||
| ) |
Definition at line 276 of file MOD_weightvg_util.c.
References BKE_defvert_add_index_notest(), BKE_defvert_find_index(), BKE_defvert_remove_group(), CLAMP, fabsf, indices, NULL, w(), and MDeformWeight::weight.
Referenced by modifyMesh().