Blender  V2.93
DNA_lattice_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 #include "DNA_ID.h"
27 #include "DNA_defs.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 struct AnimData;
34 struct BPoint;
35 struct Ipo;
36 struct Key;
37 struct MDeformVert;
38 
39 #
40 #
41 typedef struct EditLatt {
42  struct Lattice *latt;
43 
44  int shapenr;
45 
52 
53 typedef struct Lattice {
54  ID id;
55  struct AnimData *adt;
56 
57  short pntsu, pntsv, pntsw, flag;
58  short opntsu, opntsv, opntsw;
59  char _pad2[3];
60  char typeu, typev, typew;
62  int actbp;
63 
64  float fu, fv, fw, du, dv, dw;
65 
66  struct BPoint *def;
67 
69  struct Ipo *ipo DNA_DEPRECATED;
70  struct Key *key;
71 
72  struct MDeformVert *dvert;
74  char vgroup[64];
75 
76  struct EditLatt *editlatt;
77  void *batch_cache;
79 
80 /* ***************** LATTICE ********************* */
81 
82 /* flag */
83 #define LT_GRID 1
84 #define LT_OUTSIDE 2
85 
86 #define LT_DS_EXPAND 4
87 
88 #define LT_ACTBP_NONE -1
89 
90 #ifdef __cplusplus
91 }
92 #endif
ID and Library types, which are fundamental for sdna.
struct EditLatt EditLatt
struct Lattice Lattice
char needs_flush_to_id
struct Lattice * latt
Definition: DNA_ID.h:273
char _pad2[3]
struct Ipo *ipo DNA_DEPRECATED
struct Key * key
void * batch_cache
struct MDeformVert * dvert
struct EditLatt * editlatt
char vgroup[64]
struct BPoint * def
struct AnimData * adt