2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2010-04-11 22:12:30 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version. The Blender
|
|
|
|
|
* Foundation also sells licenses for use in proprietary software under
|
|
|
|
|
* the Blender License. See http://www.blender.org/BL/ for information
|
|
|
|
|
* about this.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful;
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation;
|
2010-08-10 21:22:26 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2010-04-11 22:12:30 +00:00
|
|
|
*
|
|
|
|
|
* Contributor(s): Ben Batt
|
|
|
|
|
*
|
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
*/
|
|
|
|
|
|
2011-02-25 13:57:17 +00:00
|
|
|
/** \file blender/modifiers/intern/MOD_util.h
|
|
|
|
|
* \ingroup modifiers
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2010-04-11 22:12:30 +00:00
|
|
|
#ifndef MOD_UTIL_H
|
|
|
|
|
#define MOD_UTIL_H
|
|
|
|
|
|
2011-02-13 14:16:36 +00:00
|
|
|
/* so modifier types match their defines */
|
|
|
|
|
#include "MOD_modifiertypes.h"
|
|
|
|
|
|
2010-04-11 22:12:30 +00:00
|
|
|
struct CustomData;
|
|
|
|
|
struct DerivedMesh;
|
|
|
|
|
struct EditMesh;
|
2011-07-11 09:15:20 +00:00
|
|
|
struct MDeformVert;
|
2010-04-11 22:12:30 +00:00
|
|
|
struct ModifierData;
|
2011-07-11 09:15:20 +00:00
|
|
|
struct Object;
|
|
|
|
|
struct Scene;
|
|
|
|
|
struct Tex;
|
|
|
|
|
struct TexResult;
|
2010-04-11 22:12:30 +00:00
|
|
|
|
|
|
|
|
void get_texture_value(struct Tex *texture, float *tex_co, struct TexResult *texres);
|
2011-05-01 15:16:59 +00:00
|
|
|
void get_texture_coords(struct MappingInfoModifierData *dmd, struct Object *ob, struct DerivedMesh *dm, float (*co)[3], float (*texco)[3], int numVerts);
|
2010-04-11 22:12:30 +00:00
|
|
|
void modifier_vgroup_cache(struct ModifierData *md, float (*vertexCos)[3]);
|
|
|
|
|
void validate_layer_name(const struct CustomData *data, int type, char *name, char *outname);
|
2010-10-14 06:29:17 +00:00
|
|
|
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);
|
2011-07-18 18:14:22 +00:00
|
|
|
void modifier_get_vgroup(struct Object *ob, struct DerivedMesh *dm, const char *name, struct MDeformVert **dvert, int *defgrp_index);
|
2010-04-25 01:10:03 +00:00
|
|
|
|
2010-04-11 22:12:30 +00:00
|
|
|
#endif /* MOD_UTIL_H */
|