Blender V5.3
DNA_lattice_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2001-2002 NaN Holding BV. All rights reserved.
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "DNA_ID.h"
12#include "DNA_defs.h"
13#include "DNA_key_types.h"
14
15#include "BLI_enum_flags.hh"
16
17namespace blender {
18
19struct AnimData;
20struct BPoint;
21struct Key;
22struct MDeformVert;
23
24namespace draw {
26}
27
29enum eLattice_Flag : short {
30 LT_GRID = 1 << 0,
31 LT_OUTSIDE = 1 << 1,
32
33 LT_DS_EXPAND = 1 << 2,
34};
36
37#define LT_ACTBP_NONE -1
38
39#
40#
41struct EditLatt {
43
44 struct Lattice *latt = nullptr;
45
46 int shapenr = 0;
47
53};
54
55struct Lattice {
56#ifdef __cplusplus
59 static constexpr ID_Type id_type = ID_LT;
60#endif
61
63 struct AnimData *adt = nullptr;
64
65 short pntsu = 0, pntsv = 0, pntsw = 0;
67 short opntsu = 0, opntsv = 0, opntsw = 0;
68 char _pad2[3] = {};
69 /* KeyInterpolationType */
73
74 float fu = 0, fv = 0, fw = 0, du = 0, dv = 0, dw = 0;
75
76 struct BPoint *def = nullptr;
77
78 struct Key *key = nullptr;
79
80 struct MDeformVert *dvert = nullptr;
82 char vgroup[/*MAX_VGROUP_NAME*/ 64] = "";
84 ListBaseT<struct bDeformGroup> vertex_group_names = {nullptr, nullptr};
86
87 char _pad0[4] = {};
88
89 struct EditLatt *editlatt = nullptr;
91};
92
93} // namespace blender
#define ENUM_OPERATORS(_enum_type)
ID and Library types, which are fundamental for SDNA.
#define DNA_DEFINE_CXX_METHODS(class_name)
Definition DNA_defs.h:104
#define LT_ACTBP_NONE
BMesh Iterators.
struct Lattice * latt
struct EditLatt * editlatt
draw::LatticeBatchCache * batch_cache
struct MDeformVert * dvert
struct AnimData * adt
ListBaseT< struct bDeformGroup > vertex_group_names
struct BPoint * def