Blender
V3.3
source
blender
makesdna
DNA_meta_types.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2001-2002 NaN Holding BV. All rights reserved. */
3
8
#pragma once
9
10
#include "
DNA_ID.h
"
11
#include "
DNA_defs.h
"
12
#include "
DNA_listBase.h
"
13
14
#ifdef __cplusplus
15
extern
"C"
{
16
#endif
17
18
struct
AnimData
;
19
struct
BoundBox
;
20
struct
Ipo
;
21
struct
Material
;
22
23
typedef
struct
MetaElem
{
24
struct
MetaElem
*
next
, *
prev
;
25
27
struct
BoundBox
*
bb
;
28
29
short
type
,
flag
;
30
char
_pad
[4];
32
float
x
,
y
,
z
;
34
float
quat
[4];
36
float
expx
;
37
float
expy
;
38
float
expz
;
40
float
rad
;
42
float
rad2
;
44
float
s
;
46
float
len
;
47
49
float
*
mat
, *
imat
;
50
}
MetaElem
;
51
52
typedef
struct
MetaBall
{
53
ID
id
;
54
struct
AnimData
*
adt
;
55
56
ListBase
elems
;
57
ListBase
disp
;
59
ListBase
*
editelems
;
61
struct
Ipo
*ipo
DNA_DEPRECATED
;
62
63
/* material of the mother ball will define the material used of all others */
64
struct
Material
**
mat
;
65
67
char
flag
,
flag2
;
68
short
totcol
;
70
char
texflag
;
71
char
_pad
[2];
72
77
char
needs_flush_to_id
;
78
79
/* texture space, copied as one block in editobject.c */
80
float
loc
[3];
81
float
size
[3];
82
float
rot
[3];
83
85
float
wiresize
,
rendersize
;
86
87
/* bias elements to have an offset volume.
88
* mother ball changes will effect other objects thresholds,
89
* but these may also have their own thresh as an offset */
90
float
thresh
;
91
92
/* used in editmode */
93
// ListBase edit_elems;
94
MetaElem
*
lastelem
;
95
96
void
*
batch_cache
;
97
}
MetaBall
;
98
99
/* **************** METABALL ********************* */
100
101
/* texflag */
102
#define MB_AUTOSPACE 1
103
104
/* mb->flag */
105
#define MB_UPDATE_ALWAYS 0
106
#define MB_UPDATE_HALFRES 1
107
#define MB_UPDATE_FAST 2
108
#define MB_UPDATE_NEVER 3
109
110
/* mb->flag2 */
111
#define MB_DS_EXPAND (1 << 0)
112
113
/* ml->type */
114
#define MB_BALL 0
115
#define MB_TUBEX 1
/* deprecated. */
116
#define MB_TUBEY 2
/* deprecated. */
117
#define MB_TUBEZ 3
/* deprecated. */
118
#define MB_TUBE 4
119
#define MB_PLANE 5
120
#define MB_ELIPSOID 6
121
#define MB_CUBE 7
122
123
#define MB_TYPE_SIZE_SQUARED(type) (type == MB_ELIPSOID)
124
125
/* ml->flag */
126
#define MB_NEGATIVE 2
127
#define MB_HIDE 8
128
#define MB_SCALE_RAD 16
129
130
#ifdef __cplusplus
131
}
132
#endif
DNA_ID.h
ID and Library types, which are fundamental for sdna.
DNA_defs.h
DNA_listBase.h
These structs are the foundation for all linked lists in the library system.
MetaBall
struct MetaBall MetaBall
MetaElem
struct MetaElem MetaElem
AnimData
Definition:
DNA_anim_types.h:1068
BoundBox
Definition:
DNA_object_types.h:89
ID
Definition:
DNA_ID.h:368
Ipo
Definition:
DNA_ipo_types.h:84
ListBase
Definition:
DNA_listBase.h:30
Material
Definition:
DNA_material_types.h:164
MetaBall
Definition:
DNA_meta_types.h:52
MetaBall::lastelem
MetaElem * lastelem
Definition:
DNA_meta_types.h:94
MetaBall::_pad
char _pad[2]
Definition:
DNA_meta_types.h:71
MetaBall::thresh
float thresh
Definition:
DNA_meta_types.h:90
MetaBall::size
float size[3]
Definition:
DNA_meta_types.h:81
MetaBall::elems
ListBase elems
Definition:
DNA_meta_types.h:56
MetaBall::rendersize
float rendersize
Definition:
DNA_meta_types.h:85
MetaBall::flag2
char flag2
Definition:
DNA_meta_types.h:67
MetaBall::batch_cache
void * batch_cache
Definition:
DNA_meta_types.h:96
MetaBall::texflag
char texflag
Definition:
DNA_meta_types.h:70
MetaBall::DNA_DEPRECATED
struct Ipo *ipo DNA_DEPRECATED
Definition:
DNA_meta_types.h:61
MetaBall::disp
ListBase disp
Definition:
DNA_meta_types.h:57
MetaBall::flag
char flag
Definition:
DNA_meta_types.h:67
MetaBall::totcol
short totcol
Definition:
DNA_meta_types.h:68
MetaBall::id
ID id
Definition:
DNA_meta_types.h:53
MetaBall::loc
float loc[3]
Definition:
DNA_meta_types.h:80
MetaBall::wiresize
float wiresize
Definition:
DNA_meta_types.h:85
MetaBall::adt
struct AnimData * adt
Definition:
DNA_meta_types.h:54
MetaBall::editelems
ListBase * editelems
Definition:
DNA_meta_types.h:59
MetaBall::needs_flush_to_id
char needs_flush_to_id
Definition:
DNA_meta_types.h:77
MetaBall::mat
struct Material ** mat
Definition:
DNA_meta_types.h:64
MetaBall::rot
float rot[3]
Definition:
DNA_meta_types.h:82
MetaElem
Definition:
DNA_meta_types.h:23
MetaElem::rad
float rad
Definition:
DNA_meta_types.h:40
MetaElem::expy
float expy
Definition:
DNA_meta_types.h:37
MetaElem::imat
float * imat
Definition:
DNA_meta_types.h:49
MetaElem::_pad
char _pad[4]
Definition:
DNA_meta_types.h:30
MetaElem::next
struct MetaElem * next
Definition:
DNA_meta_types.h:24
MetaElem::type
short type
Definition:
DNA_meta_types.h:29
MetaElem::expx
float expx
Definition:
DNA_meta_types.h:36
MetaElem::x
float x
Definition:
DNA_meta_types.h:32
MetaElem::z
float z
Definition:
DNA_meta_types.h:32
MetaElem::expz
float expz
Definition:
DNA_meta_types.h:38
MetaElem::quat
float quat[4]
Definition:
DNA_meta_types.h:34
MetaElem::rad2
float rad2
Definition:
DNA_meta_types.h:42
MetaElem::bb
struct BoundBox * bb
Definition:
DNA_meta_types.h:27
MetaElem::len
float len
Definition:
DNA_meta_types.h:46
MetaElem::y
float y
Definition:
DNA_meta_types.h:32
MetaElem::mat
float * mat
Definition:
DNA_meta_types.h:49
MetaElem::s
float s
Definition:
DNA_meta_types.h:44
MetaElem::prev
struct MetaElem * prev
Definition:
DNA_meta_types.h:24
MetaElem::flag
short flag
Definition:
DNA_meta_types.h:29
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1