Blender V4.3
ED_transverts.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2008 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11struct Object;
12struct bContext;
13
14struct TransVert {
15 float *loc;
16 float oldloc[3], maploc[3];
17 float normal[3];
18 int flag;
19};
20
26
31void ED_transverts_create_from_obedit(TransVertStore *tvs, const Object *obedit, int mode);
34bool ED_transverts_check_obedit(const Object *obedit);
36
37/* currently only used for bmesh index values */
38enum {
45};
46
47/* mode flags: */
48enum {
50 TM_ALL_JOINTS = (1 << 0),
52 TM_SKIP_HANDLES = (1 << 1),
54 TM_CALC_NORMALS = (1 << 2),
56 TM_CALC_MAPLOC = (1 << 2),
57};
58
59enum {
60 /* SELECT == (1 << 0) */
65};
bool ED_transverts_check_obedit(const Object *obedit)
bool ED_transverts_poll(bContext *C)
@ TM_INDEX_OFF
@ TM_INDEX_ON
@ TM_INDEX_SKIP
void ED_transverts_create_from_obedit(TransVertStore *tvs, const Object *obedit, int mode)
void ED_transverts_free(TransVertStore *tvs)
void ED_transverts_update_obedit(TransVertStore *tvs, Object *obedit)
@ TX_VERT_USE_MAPLOC
@ TX_VERT_USE_NORMAL
@ TM_SKIP_HANDLES
@ TM_CALC_MAPLOC
@ TM_CALC_NORMALS
@ TM_ALL_JOINTS
TransVert * transverts
float * loc
float maploc[3]
float oldloc[3]