Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * Contributor(s): Ben Batt 00019 * 00020 * ***** END GPL LICENSE BLOCK ***** 00021 */ 00022 00028 #ifndef MOD_UTIL_H 00029 #define MOD_UTIL_H 00030 00031 /* so modifier types match their defines */ 00032 #include "MOD_modifiertypes.h" 00033 00034 struct CustomData; 00035 struct DerivedMesh; 00036 struct EditMesh; 00037 struct MDeformVert; 00038 struct ModifierData; 00039 struct Object; 00040 struct Scene; 00041 struct Tex; 00042 struct TexResult; 00043 00044 void get_texture_value(struct Tex *texture, float *tex_co, struct TexResult *texres); 00045 void get_texture_coords(struct MappingInfoModifierData *dmd, struct Object *ob, struct DerivedMesh *dm, float (*co)[3], float (*texco)[3], int numVerts); 00046 void modifier_vgroup_cache(struct ModifierData *md, float (*vertexCos)[3]); 00047 struct DerivedMesh *get_cddm(struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3]); 00048 struct DerivedMesh *get_dm(struct Object *ob, struct EditMesh *em, struct DerivedMesh *dm, float (*vertexCos)[3], int orco); 00049 void modifier_get_vgroup(struct Object *ob, struct DerivedMesh *dm, const char *name, struct MDeformVert **dvert, int *defgrp_index); 00050 00051 #endif /* MOD_UTIL_H */