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