|
Blender
V2.93
|
#include <stdio.h>#include "BLI_utildefines.h"#include "BLI_math_vector.h"#include "DNA_gpencil_modifier_types.h"#include "DNA_gpencil_types.h"#include "DNA_material_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "BKE_deform.h"#include "BKE_gpencil_modifier.h"#include "BKE_material.h"#include "MOD_gpencil_modifiertypes.h"#include "MOD_gpencil_util.h"Go to the source code of this file.
Macros | |
| #define | INIT_GP_TYPE(typeName) (types[eGpencilModifierType_##typeName] = &modifierType_Gpencil_##typeName) |
Functions | |
| void | gpencil_modifier_type_init (GpencilModifierTypeInfo *types[]) |
| bool | is_stroke_affected_by_modifier (Object *ob, char *mlayername, Material *material, const int mpassindex, const int gpl_passindex, const int minpoints, bGPDlayer *gpl, bGPDstroke *gps, const bool inv1, const bool inv2, const bool inv3, const bool inv4) |
| float | get_modifier_point_weight (MDeformVert *dvert, bool inverse, int def_nr) |
| #define INIT_GP_TYPE | ( | typeName | ) | (types[eGpencilModifierType_##typeName] = &modifierType_Gpencil_##typeName) |
| float get_modifier_point_weight | ( | MDeformVert * | dvert, |
| bool | inverse, | ||
| int | def_nr | ||
| ) |
Definition at line 147 of file MOD_gpencil_util.c.
References BKE_defvert_find_index(), inverse(), NULL, and MDeformWeight::weight.
Referenced by deformStroke().
| void gpencil_modifier_type_init | ( | GpencilModifierTypeInfo * | types[] | ) |
Definition at line 43 of file MOD_gpencil_util.c.
References Color, INIT_GP_TYPE, KDL::Multiply(), Noise, Texture, and Time.
Referenced by BKE_gpencil_modifier_init().
| bool is_stroke_affected_by_modifier | ( | Object * | ob, |
| char * | mlayername, | ||
| Material * | material, | ||
| const int | mpassindex, | ||
| const int | gpl_passindex, | ||
| const int | minpoints, | ||
| bGPDlayer * | gpl, | ||
| bGPDstroke * | gps, | ||
| const bool | inv1, | ||
| const bool | inv2, | ||
| const bool | inv3, | ||
| const bool | inv4 | ||
| ) |
Definition at line 70 of file MOD_gpencil_util.c.
References BKE_gpencil_material(), Material::gp_style, MaterialGPencilStyle::index, bGPDlayer::info, bGPDstroke::mat_nr, material, NULL, bGPDlayer::pass_index, STREQ, and bGPDstroke::totpoints.
Referenced by bakeModifier(), deformStroke(), and generate_geometry().