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 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: all of this file. 00022 * 00023 * Contributor(s): none yet. 00024 * 00025 * ***** END GPL LICENSE BLOCK ***** 00026 */ 00027 00028 #ifndef BKE_LATTICE_H 00029 #define BKE_LATTICE_H 00030 00037 struct Lattice; 00038 struct Object; 00039 struct Scene; 00040 struct DerivedMesh; 00041 struct BPoint; 00042 struct MDeformVert; 00043 00044 void resizelattice(struct Lattice *lt, int u, int v, int w, struct Object *ltOb); 00045 struct Lattice *add_lattice(const char *name); 00046 struct Lattice *copy_lattice(struct Lattice *lt); 00047 void free_lattice(struct Lattice *lt); 00048 void make_local_lattice(struct Lattice *lt); 00049 void calc_lat_fudu(int flag, int res, float *fu, float *du); 00050 00051 void init_latt_deform(struct Object *oblatt, struct Object *ob); 00052 void calc_latt_deform(struct Object *, float *co, float weight); 00053 void end_latt_deform(struct Object *); 00054 00055 int object_deform_mball(struct Object *ob, struct ListBase *dispbase); 00056 void outside_lattice(struct Lattice *lt); 00057 00058 void curve_deform_verts(struct Scene *scene, struct Object *cuOb, struct Object *target, 00059 struct DerivedMesh *dm, float (*vertexCos)[3], 00060 int numVerts, const char *vgroup, short defaxis); 00061 void curve_deform_vector(struct Scene *scene, struct Object *cuOb, struct Object *target, 00062 float *orco, float *vec, float mat[][3], int no_rot_axis); 00063 00064 void lattice_deform_verts(struct Object *laOb, struct Object *target, 00065 struct DerivedMesh *dm, float (*vertexCos)[3], 00066 int numVerts, const char *vgroup); 00067 void armature_deform_verts(struct Object *armOb, struct Object *target, 00068 struct DerivedMesh *dm, float (*vertexCos)[3], 00069 float (*defMats)[3][3], int numVerts, int deformflag, 00070 float (*prevCos)[3], const char *defgrp_name); 00071 00072 float (*lattice_getVertexCos(struct Object *ob, int *numVerts_r))[3]; 00073 void lattice_applyVertexCos(struct Object *ob, float (*vertexCos)[3]); 00074 void lattice_calc_modifiers(struct Scene *scene, struct Object *ob); 00075 00076 struct MDeformVert* lattice_get_deform_verts(struct Object *lattice); 00077 00078 #endif 00079