Blender V2.61 - r43446
|
#include "MOD_modifiertypes.h"
Go to the source code of this file.
Functions | |
void | get_texture_value (struct Tex *texture, float *tex_co, struct TexResult *texres) |
void | get_texture_coords (struct MappingInfoModifierData *dmd, struct Object *ob, struct DerivedMesh *dm, float(*co)[3], float(*texco)[3], int numVerts) |
void | modifier_vgroup_cache (struct ModifierData *md, float(*vertexCos)[3]) |
struct DerivedMesh * | get_cddm (struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float(*vertexCos)[3]) |
struct DerivedMesh * | get_dm (struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float(*vertexCos)[3], int orco) |
void | modifier_get_vgroup (struct Object *ob, struct DerivedMesh *dm, const char *name, struct MDeformVert **dvert, int *defgrp_index) |
Definition in file MOD_util.h.
struct DerivedMesh* get_cddm | ( | struct Object * | ob, |
struct EditMesh * | em, | ||
struct DerivedMesh * | dm, | ||
float(*) | vertexCos[3] | ||
) | [read] |
Definition at line 160 of file MOD_util.c.
References CDDM_apply_vert_coords(), CDDM_calc_normals(), CDDM_copy(), DM_TYPE_CDDM, get_dm(), and DerivedMesh::type.
Referenced by deformVerts(), and deformVertsEM().
struct DerivedMesh* get_dm | ( | struct Object * | ob, |
struct EditMesh * | em, | ||
struct DerivedMesh * | dm, | ||
float(*) | vertexCos[3], | ||
int | orco | ||
) | [read] |
Definition at line 180 of file MOD_util.c.
References CD_ASSIGN, CD_ORCO, CDDM_apply_vert_coords(), CDDM_from_curve(), CDDM_from_editmesh(), CDDM_from_mesh(), Object::data, DM_add_vert_layer(), ELEM3, get_mesh_orco_verts(), OB_CURVE, OB_FONT, OB_MESH, OB_SURF, and Object::type.
Referenced by deformVerts(), deformVertsEM(), get_cddm(), and meshdeformModifier_do().
void get_texture_coords | ( | struct MappingInfoModifierData * | dmd, |
struct Object * | ob, | ||
struct DerivedMesh * | dm, | ||
float(*) | co[3], | ||
float(*) | texco[3], | ||
int | numVerts | ||
) |
Definition at line 78 of file MOD_util.c.
References CD_MTFACE, co, copy_v3_v3(), CustomData_get_layer_named(), CustomData_has_layer(), CustomData_validate_layer_name(), DerivedMesh::faceData, DerivedMesh::getFaceArray, DerivedMesh::getNumFaces, i, invert_m4_m4(), MappingInfoModifierData::map_object, MAX_CUSTOMDATA_LAYER_NAME, MEM_callocN(), MEM_freeN(), MOD_DISP_MAP_GLOBAL, MOD_DISP_MAP_LOCAL, MOD_DISP_MAP_OBJECT, MOD_DISP_MAP_UV, mul_m4_v3(), mul_v3_m4v3(), Object::obmat, MappingInfoModifierData::texmapping, MTFace::uv, and MappingInfoModifierData::uvlayer_name.
Referenced by displaceModifier_do(), warpModifier_do(), waveModifier_do(), and weightvg_do_mask().
Definition at line 60 of file MOD_util.c.
References multitex_ext_safe(), TexResult::tb, TEX_RGB, TexResult::tg, TexResult::tin, and TexResult::tr.
Referenced by displaceModifier_do(), warpModifier_do(), waveModifier_do(), and weightvg_do_mask().
void modifier_get_vgroup | ( | struct Object * | ob, |
struct DerivedMesh * | dm, | ||
const char * | name, | ||
struct MDeformVert ** | dvert, | ||
int * | defgrp_index | ||
) |
Definition at line 204 of file MOD_util.c.
References CD_MDEFORMVERT, defgroup_name_index(), DerivedMesh::getVertDataArray, lattice_get_deform_verts(), NULL, OB_LATTICE, and Object::type.
Referenced by applyModifier(), cuboid_do(), deformVerts_do(), displaceModifier_do(), meshdeformModifier_do(), SimpleDeformModifier_do(), smoothModifier_do(), sphere_do(), warpModifier_do(), and waveModifier_do().
void modifier_vgroup_cache | ( | struct ModifierData * | md, |
float(*) | vertexCos[3] | ||
) |
Definition at line 147 of file MOD_util.c.
References eModifierType_Armature, MEM_dupallocN(), ArmatureModifierData::multi, ModifierData::next, NULL, ArmatureModifierData::prevCos, and ModifierData::type.
Referenced by deformVerts(), and deformVertsEM().