Blender
V5.3
source
blender
editors
include
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
8
9
#pragma once
10
11
namespace
blender
{
12
13
struct
Object
;
14
struct
bContext
;
15
16
struct
TransVert
{
17
float
*
loc
;
18
float
oldloc
[3],
maploc
[3];
19
float
normal
[3];
20
int
flag
;
21
};
22
23
struct
TransVertStore
{
24
TransVert
*
transverts
;
25
int
transverts_tot
;
26
int
mode
;
27
};
28
33
void
ED_transverts_create_from_obedit
(
TransVertStore
*tvs,
const
Object
*obedit,
int
mode);
34
void
ED_transverts_update_obedit
(
TransVertStore
*tvs,
Object
*obedit);
35
void
ED_transverts_free
(
TransVertStore
*tvs);
36
bool
ED_transverts_check_obedit
(
const
Object
*obedit);
37
bool
ED_transverts_poll
(
bContext
*
C
);
38
39
/* currently only used for bmesh index values */
40
enum
{
42
TM_INDEX_ON
= 1,
44
TM_INDEX_OFF
= 0,
46
TM_INDEX_SKIP
= -1,
47
};
48
49
/* mode flags: */
50
enum
{
52
TM_ALL_JOINTS
= (1 << 0),
54
TM_SKIP_HANDLES
= (1 << 1),
56
TM_CALC_NORMALS
= (1 << 2),
58
TM_CALC_MAPLOC
= (1 << 2),
59
};
60
61
enum
{
62
/* SELECT == (1 << 0) */
64
TX_VERT_USE_MAPLOC
= (1 << 1),
66
TX_VERT_USE_NORMAL
= (1 << 2),
67
};
68
69
}
// namespace blender
C
#define C
Definition
RandGen.cpp:29
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::ED_transverts_update_obedit
void ED_transverts_update_obedit(TransVertStore *tvs, Object *obedit)
Definition
ed_transverts.cc:46
blender::TM_INDEX_OFF
@ TM_INDEX_OFF
Definition
ED_transverts.hh:44
blender::TM_INDEX_ON
@ TM_INDEX_ON
Definition
ED_transverts.hh:42
blender::TM_INDEX_SKIP
@ TM_INDEX_SKIP
Definition
ED_transverts.hh:46
blender::TX_VERT_USE_MAPLOC
@ TX_VERT_USE_MAPLOC
Definition
ED_transverts.hh:64
blender::TX_VERT_USE_NORMAL
@ TX_VERT_USE_NORMAL
Definition
ED_transverts.hh:66
blender::ED_transverts_poll
bool ED_transverts_poll(bContext *C)
Definition
ed_transverts.cc:574
blender::TM_SKIP_HANDLES
@ TM_SKIP_HANDLES
Definition
ED_transverts.hh:54
blender::TM_CALC_MAPLOC
@ TM_CALC_MAPLOC
Definition
ED_transverts.hh:58
blender::TM_CALC_NORMALS
@ TM_CALC_NORMALS
Definition
ED_transverts.hh:56
blender::TM_ALL_JOINTS
@ TM_ALL_JOINTS
Definition
ED_transverts.hh:52
blender::ED_transverts_create_from_obedit
void ED_transverts_create_from_obedit(TransVertStore *tvs, const Object *obedit, int mode)
Definition
ed_transverts.cc:231
blender::ED_transverts_free
void ED_transverts_free(TransVertStore *tvs)
Definition
ed_transverts.cc:568
blender::ED_transverts_check_obedit
bool ED_transverts_check_obedit(const Object *obedit)
Definition
ed_transverts.cc:218
blender::Object
Definition
DNA_object_types.h:466
blender::TransVertStore
Definition
ED_transverts.hh:23
blender::TransVertStore::transverts_tot
int transverts_tot
Definition
ED_transverts.hh:25
blender::TransVertStore::transverts
TransVert * transverts
Definition
ED_transverts.hh:24
blender::TransVertStore::mode
int mode
Definition
ED_transverts.hh:26
blender::TransVert
Definition
ED_transverts.hh:16
blender::TransVert::loc
float * loc
Definition
ED_transverts.hh:17
blender::TransVert::maploc
float maploc[3]
Definition
ED_transverts.hh:18
blender::TransVert::flag
int flag
Definition
ED_transverts.hh:20
blender::TransVert::oldloc
float oldloc[3]
Definition
ED_transverts.hh:18
blender::TransVert::normal
float normal[3]
Definition
ED_transverts.hh:19
blender::bContext
Definition
blenkernel/intern/context.cc:65
Generated on
for Blender by
doxygen
1.18.0