Blender  V3.3
ED_transverts.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2008 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 struct Object;
15 struct bContext;
16 
17 typedef struct TransVert {
18  float *loc;
19  float oldloc[3], maploc[3];
20  float normal[3];
21  int flag;
23 
24 typedef struct TransVertStore {
27  int mode;
29 
34 void ED_transverts_create_from_obedit(TransVertStore *tvs, const struct Object *obedit, int mode);
35 void ED_transverts_update_obedit(TransVertStore *tvs, struct Object *obedit);
37 bool ED_transverts_check_obedit(const struct Object *obedit);
38 bool ED_transverts_poll(struct bContext *C);
39 
40 /* currently only used for bmesh index values */
41 enum {
48 };
49 
50 /* mode flags: */
51 enum {
53  TM_ALL_JOINTS = (1 << 0),
55  TM_SKIP_HANDLES = (1 << 1),
57  TM_CALC_NORMALS = (1 << 2),
59  TM_CALC_MAPLOC = (1 << 2),
60 };
61 
62 enum {
63  /* SELECT == (1 << 0) */
65  TX_VERT_USE_MAPLOC = (1 << 1),
67  TX_VERT_USE_NORMAL = (1 << 2),
68 };
69 
70 #ifdef __cplusplus
71 }
72 #endif
struct TransVert TransVert
@ TM_INDEX_OFF
Definition: ED_transverts.h:45
@ TM_INDEX_ON
Definition: ED_transverts.h:43
@ TM_INDEX_SKIP
Definition: ED_transverts.h:47
void ED_transverts_update_obedit(TransVertStore *tvs, struct Object *obedit)
Definition: ed_transverts.c:37
void ED_transverts_create_from_obedit(TransVertStore *tvs, const struct Object *obedit, int mode)
bool ED_transverts_poll(struct bContext *C)
void ED_transverts_free(TransVertStore *tvs)
struct TransVertStore TransVertStore
@ TM_SKIP_HANDLES
Definition: ED_transverts.h:55
@ TM_CALC_MAPLOC
Definition: ED_transverts.h:59
@ TM_CALC_NORMALS
Definition: ED_transverts.h:57
@ TM_ALL_JOINTS
Definition: ED_transverts.h:53
@ TX_VERT_USE_MAPLOC
Definition: ED_transverts.h:65
@ TX_VERT_USE_NORMAL
Definition: ED_transverts.h:67
bool ED_transverts_check_obedit(const struct Object *obedit)
#define C
Definition: RandGen.cpp:25
struct TransVert * transverts
Definition: ED_transverts.h:25
float * loc
Definition: ED_transverts.h:18
float maploc[3]
Definition: ED_transverts.h:19
float oldloc[3]
Definition: ED_transverts.h:19
float normal[3]
Definition: ED_transverts.h:20