![]() |
Blender V2.61 - r43446
|
#include "BLI_math.h"#include "BLI_rand.h"#include "BLI_string.h"#include "BLI_utildefines.h"#include "DNA_color_types.h"#include "DNA_mesh_types.h"#include "DNA_meshdata_types.h"#include "DNA_modifier_types.h"#include "DNA_object_types.h"#include "BKE_cdderivedmesh.h"#include "BKE_colortools.h"#include "BKE_deform.h"#include "BKE_mesh.h"#include "BKE_modifier.h"#include "BKE_texture.h"#include "depsgraph_private.h"#include "MEM_guardedalloc.h"#include "MOD_util.h"#include "MOD_weightvg_util.h"#include "RE_shader_ext.h"Go to the source code of this file.
Functions | |
| void | weightvg_do_map (int num, float *new_w, short falloff_type, CurveMapping *cmap) |
| void | weightvg_do_mask (int num, const int *indices, float *org_w, const float *new_w, Object *ob, DerivedMesh *dm, float fact, const char defgrp_name[MAX_VGROUP_NAME], Tex *texture, int tex_use_channel, int tex_mapping, Object *tex_map_object, const char *tex_uvlayer_name) |
| void | weightvg_update_vg (MDeformVert *dvert, int defgrp_idx, MDeformWeight **dws, int num, const int *indices, const float *weights, int do_add, float add_thresh, int do_rem, float rem_thresh) |
Definition in file MOD_weightvg_util.c.
| void weightvg_do_map | ( | int | num, |
| float * | new_w, | ||
| short | falloff_type, | ||
| CurveMapping * | cmap | ||
| ) |
Definition at line 61 of file MOD_weightvg_util.c.
References BLI_frand(), BLI_rand(), BLI_srand(), curvemapping_evaluateF(), ELEM7, i, MOD_WVG_MAPPING_CURVE, 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 sqrt().
Referenced by applyModifier(), and do_map().
| void weightvg_do_mask | ( | int | num, |
| const int * | indices, | ||
| float * | org_w, | ||
| const float * | new_w, | ||
| Object * | ob, | ||
| DerivedMesh * | dm, | ||
| float | fact, | ||
| const char | defgrp_name[MAX_VGROUP_NAME], | ||
| Tex * | texture, | ||
| int | tex_use_channel, | ||
| int | tex_mapping, | ||
| Object * | tex_map_object, | ||
| const char * | tex_uvlayer_name | ||
| ) |
Definition at line 114 of file MOD_weightvg_util.c.
References BLI_strncpy(), CD_MDEFORMVERT, defgroup_name_index(), defvert_find_weight(), get_texture_coords(), get_texture_value(), DerivedMesh::getVertCos, DerivedMesh::getVertDataArray, i, MappingInfoModifierData::map_object, MEM_callocN(), MEM_freeN(), MEM_mallocN(), 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(), TexResult::ta, TexResult::tb, MappingInfoModifierData::texmapping, MappingInfoModifierData::texture, TexResult::tg, TexResult::tin, TexResult::tr, and MappingInfoModifierData::uvlayer_name.
Referenced by applyModifier().
| void weightvg_update_vg | ( | MDeformVert * | dvert, |
| int | defgrp_idx, | ||
| MDeformWeight ** | dws, | ||
| int | num, | ||
| const int * | indices, | ||
| const float * | weights, | ||
| int | do_add, | ||
| float | add_thresh, | ||
| int | do_rem, | ||
| float | rem_thresh | ||
| ) |
Definition at line 234 of file MOD_weightvg_util.c.
References CLAMP(), defvert_add_index_notest(), defvert_find_index(), defvert_remove_group(), i, NULL, simple_enum_gen::w, and MDeformWeight::weight.
Referenced by applyModifier().