Blender
V4.3
source
blender
makesdna
DNA_meta_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
9
#pragma once
10
11
#include "
DNA_ID.h
"
12
#include "
DNA_defs.h
"
13
#include "
DNA_listBase.h
"
14
15
struct
AnimData
;
16
struct
BoundBox
;
17
struct
Ipo
;
18
struct
Material
;
19
20
typedef
struct
MetaElem
{
21
struct
MetaElem
*
next
, *
prev
;
22
24
struct
BoundBox
*
bb
;
25
26
short
type
,
flag
;
27
char
_pad
[4];
29
float
x
,
y
,
z
;
31
float
quat
[4];
33
float
expx
;
34
float
expy
;
35
float
expz
;
37
float
rad
;
39
float
rad2
;
41
float
s
;
43
float
len
;
44
46
float
*
mat
, *
imat
;
47
}
MetaElem
;
48
49
typedef
struct
MetaBall
{
50
ID
id
;
51
struct
AnimData
*
adt
;
52
53
ListBase
elems
;
55
ListBase
*
editelems
;
57
struct
Ipo
*ipo
DNA_DEPRECATED
;
58
59
/* material of the mother ball will define the material used of all others */
60
struct
Material
**
mat
;
61
63
char
flag
,
flag2
;
64
short
totcol
;
66
char
texspace_flag
;
67
char
_pad
[2];
68
73
char
needs_flush_to_id
;
74
75
float
texspace_location
[3];
76
float
texspace_size
[3];
77
79
float
wiresize
,
rendersize
;
80
81
/* bias elements to have an offset volume.
82
* mother ball changes will effect other objects thresholds,
83
* but these may also have their own thresh as an offset */
84
float
thresh
;
85
86
char
_pad0
[4];
87
89
MetaElem
*
lastelem
;
90
91
}
MetaBall
;
92
93
/* **************** METABALL ********************* */
94
96
enum
{
97
MB_TEXSPACE_FLAG_AUTO
= 1 << 0,
98
};
99
101
enum
{
102
MB_UPDATE_ALWAYS
= 0,
103
MB_UPDATE_HALFRES
= 1,
104
MB_UPDATE_FAST
= 2,
105
MB_UPDATE_NEVER
= 3,
106
};
107
109
enum
{
110
MB_DS_EXPAND
= 1 << 0,
111
};
112
114
enum
{
115
MB_BALL
= 0,
116
MB_TUBEX
= 1,
/* Deprecated. */
117
MB_TUBEY
= 2,
/* Deprecated. */
118
MB_TUBEZ
= 3,
/* Deprecated. */
119
MB_TUBE
= 4,
120
MB_PLANE
= 5,
121
MB_ELIPSOID
= 6,
122
MB_CUBE
= 7,
123
};
124
125
#define MB_TYPE_SIZE_SQUARED(type) ((type) == MB_ELIPSOID)
126
128
enum
{
129
MB_NEGATIVE
= 1 << 1,
130
MB_HIDE
= 1 << 3,
131
MB_SCALE_RAD
= 1 << 4,
132
};
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.
MB_TEXSPACE_FLAG_AUTO
@ MB_TEXSPACE_FLAG_AUTO
Definition
DNA_meta_types.h:97
MB_SCALE_RAD
@ MB_SCALE_RAD
Definition
DNA_meta_types.h:131
MB_NEGATIVE
@ MB_NEGATIVE
Definition
DNA_meta_types.h:129
MB_HIDE
@ MB_HIDE
Definition
DNA_meta_types.h:130
MB_DS_EXPAND
@ MB_DS_EXPAND
Definition
DNA_meta_types.h:110
MetaBall
struct MetaBall MetaBall
MB_TUBEY
@ MB_TUBEY
Definition
DNA_meta_types.h:117
MB_PLANE
@ MB_PLANE
Definition
DNA_meta_types.h:120
MB_ELIPSOID
@ MB_ELIPSOID
Definition
DNA_meta_types.h:121
MB_TUBE
@ MB_TUBE
Definition
DNA_meta_types.h:119
MB_TUBEX
@ MB_TUBEX
Definition
DNA_meta_types.h:116
MB_CUBE
@ MB_CUBE
Definition
DNA_meta_types.h:122
MB_TUBEZ
@ MB_TUBEZ
Definition
DNA_meta_types.h:118
MB_BALL
@ MB_BALL
Definition
DNA_meta_types.h:115
MB_UPDATE_ALWAYS
@ MB_UPDATE_ALWAYS
Definition
DNA_meta_types.h:102
MB_UPDATE_FAST
@ MB_UPDATE_FAST
Definition
DNA_meta_types.h:104
MB_UPDATE_NEVER
@ MB_UPDATE_NEVER
Definition
DNA_meta_types.h:105
MB_UPDATE_HALFRES
@ MB_UPDATE_HALFRES
Definition
DNA_meta_types.h:103
MetaElem
struct MetaElem MetaElem
AnimData
Definition
DNA_anim_types.h:1138
BoundBox
Definition
DNA_object_types.h:103
ID
Definition
DNA_ID.h:413
Ipo
Definition
DNA_ipo_types.h:85
ListBase
Definition
DNA_listBase.h:32
Material
Definition
DNA_material_types.h:164
MetaBall
Definition
DNA_meta_types.h:49
MetaBall::lastelem
MetaElem * lastelem
Definition
DNA_meta_types.h:89
MetaBall::_pad
char _pad[2]
Definition
DNA_meta_types.h:67
MetaBall::thresh
float thresh
Definition
DNA_meta_types.h:84
MetaBall::texspace_flag
char texspace_flag
Definition
DNA_meta_types.h:66
MetaBall::elems
ListBase elems
Definition
DNA_meta_types.h:53
MetaBall::rendersize
float rendersize
Definition
DNA_meta_types.h:79
MetaBall::_pad0
char _pad0[4]
Definition
DNA_meta_types.h:86
MetaBall::flag2
char flag2
Definition
DNA_meta_types.h:63
MetaBall::texspace_size
float texspace_size[3]
Definition
DNA_meta_types.h:76
MetaBall::DNA_DEPRECATED
struct Ipo *ipo DNA_DEPRECATED
Definition
DNA_meta_types.h:57
MetaBall::flag
char flag
Definition
DNA_meta_types.h:63
MetaBall::totcol
short totcol
Definition
DNA_meta_types.h:64
MetaBall::id
ID id
Definition
DNA_meta_types.h:50
MetaBall::wiresize
float wiresize
Definition
DNA_meta_types.h:79
MetaBall::adt
struct AnimData * adt
Definition
DNA_meta_types.h:51
MetaBall::texspace_location
float texspace_location[3]
Definition
DNA_meta_types.h:75
MetaBall::editelems
ListBase * editelems
Definition
DNA_meta_types.h:55
MetaBall::needs_flush_to_id
char needs_flush_to_id
Definition
DNA_meta_types.h:73
MetaBall::mat
struct Material ** mat
Definition
DNA_meta_types.h:60
MetaElem
Definition
DNA_meta_types.h:20
MetaElem::rad
float rad
Definition
DNA_meta_types.h:37
MetaElem::expy
float expy
Definition
DNA_meta_types.h:34
MetaElem::imat
float * imat
Definition
DNA_meta_types.h:46
MetaElem::_pad
char _pad[4]
Definition
DNA_meta_types.h:27
MetaElem::next
struct MetaElem * next
Definition
DNA_meta_types.h:21
MetaElem::type
short type
Definition
DNA_meta_types.h:26
MetaElem::expx
float expx
Definition
DNA_meta_types.h:33
MetaElem::x
float x
Definition
DNA_meta_types.h:29
MetaElem::z
float z
Definition
DNA_meta_types.h:29
MetaElem::expz
float expz
Definition
DNA_meta_types.h:35
MetaElem::quat
float quat[4]
Definition
DNA_meta_types.h:31
MetaElem::rad2
float rad2
Definition
DNA_meta_types.h:39
MetaElem::bb
struct BoundBox * bb
Definition
DNA_meta_types.h:24
MetaElem::len
float len
Definition
DNA_meta_types.h:43
MetaElem::y
float y
Definition
DNA_meta_types.h:29
MetaElem::mat
float * mat
Definition
DNA_meta_types.h:46
MetaElem::s
float s
Definition
DNA_meta_types.h:41
MetaElem::prev
struct MetaElem * prev
Definition
DNA_meta_types.h:21
MetaElem::flag
short flag
Definition
DNA_meta_types.h:26
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0