1 /* BKE_deform.h June 2001
3 * support for deformation groups and hooks
9 * ***** BEGIN GPL LICENSE BLOCK *****
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software Foundation,
23 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
26 * All rights reserved.
28 * The Original Code is: all of this file.
30 * Contributor(s): none yet.
32 * ***** END GPL LICENSE BLOCK *****
43 void copy_defgroups (struct ListBase *lb1, struct ListBase *lb2);
44 struct bDeformGroup *copy_defgroup (struct bDeformGroup *ingroup);
45 struct bDeformGroup *get_named_vertexgroup (Object *ob, char *name);
46 int get_defgroup_num (struct Object *ob, struct bDeformGroup *dg);
47 int get_named_vertexgroup_num (Object *ob, char *name);
48 void unique_vertexgroup_name (struct bDeformGroup *dg, struct Object *ob);
50 float deformvert_get_weight(const struct MDeformVert *dvert, int group_num);
51 float vertexgroup_get_vertex_weight(const struct MDeformVert *dvert, int index, int group_num);