2 * ***** BEGIN GPL LICENSE BLOCK *****
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 * The Original Code is Copyright (C) 2008 Blender Foundation.
19 * All rights reserved.
22 * Contributor(s): Blender Foundation
24 * ***** END GPL LICENSE BLOCK *****
27 /** \file ED_transverts.h
31 #ifndef __ED_TRANSVERTS_H__
32 #define __ED_TRANSVERTS_H__
36 typedef struct TransVert {
38 float oldloc[3], maploc[3];
43 typedef struct TransVertStore {
44 struct TransVert *transverts;
49 void ED_transverts_create_from_obedit(TransVertStore *tvs, struct Object *obedit, const int mode);
50 void ED_transverts_update_obedit(TransVertStore *tvs, struct Object *obedit);
51 void ED_transverts_free(TransVertStore *tvs);
52 bool ED_transverts_check_obedit(Object *obedit);
53 int ED_transverts_poll(struct bContext *C);
55 /* currently only used for bmesh index values */
57 TM_INDEX_ON = 1, /* tag to make trans verts */
58 TM_INDEX_OFF = 0, /* don't make verts */
59 TM_INDEX_SKIP = -1 /* dont make verts (when the index values point to trans-verts) */
64 TM_ALL_JOINTS = (1 << 0), /* all joints (for bones only) */
65 TM_SKIP_HANDLES = (1 << 1), /* skip handles when control point is selected (for curves only) */
66 TM_CALC_NORMALS = (1 << 2), /* fill in normals when available */
70 /* SELECT == (1 << 0) */
71 TX_VERT_USE_MAPLOC = (1 << 1),
72 TX_VERT_USE_NORMAL = (1 << 2), /* avoid nonzero check */
75 #endif /* __ED_TRANSVERTS_H__ */