Blender  V2.93
Functions
MOD_weightvg_util.c File Reference
#include "BLI_utildefines.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BLI_string.h"
#include "BLT_translation.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 "DNA_scene_types.h"
#include "BKE_colortools.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_deform.h"
#include "BKE_modifier.h"
#include "BKE_texture.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
#include "MEM_guardedalloc.h"
#include "MOD_ui_common.h"
#include "MOD_util.h"
#include "MOD_weightvg_util.h"
#include "RE_texture.h"

Go to the source code of this file.

Functions

void weightvg_do_map (int num, float *new_w, short falloff_type, const bool do_invert, CurveMapping *cmap, RNG *rng)
 
void weightvg_do_mask (const ModifierEvalContext *ctx, const int num, const int *indices, float *org_w, const float *new_w, Object *ob, Mesh *mesh, const float fact, const char defgrp_name[MAX_VGROUP_NAME], 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 (MDeformVert *dvert, int defgrp_idx, 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)
 

Function Documentation

◆ weightvg_do_map()

void weightvg_do_map ( int  num,
float new_w,
short  falloff_type,
const bool  do_invert,
CurveMapping cmap,
RNG rng 
)

◆ weightvg_do_mask()

void weightvg_do_mask ( const ModifierEvalContext ctx,
const int  num,
const int *  indices,
float org_w,
const float new_w,
Object ob,
Mesh mesh,
const float  fact,
const char  defgrp_name[MAX_VGROUP_NAME],
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 
)

◆ weightvg_ui_common()

void weightvg_ui_common ( const bContext C,
PointerRNA ob_ptr,
PointerRNA ptr,
uiLayout layout 
)

◆ weightvg_update_vg()

void weightvg_update_vg ( MDeformVert dvert,
int  defgrp_idx,
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 
)