Blender V4.3
DNA_curves_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "DNA_ID.h"
13#include "DNA_object_types.h"
14
15#include "BLI_listbase.h"
16#include "BLI_utildefines.h"
17
18#ifdef __cplusplus
19namespace blender::bke {
20class CurvesGeometry;
21class CurvesGeometryRuntime;
22} // namespace blender::bke
24#else
26#endif
27
58/* The number of supported curve types. */
59#define CURVE_TYPES_NUM 4
60
71
79
92
159
165typedef struct Curves {
168 struct AnimData *adt;
169
172
173 int flag;
175
176 /* Materials. */
177 struct Material **mat;
178 short totcol;
179
190 char _pad[4];
191
200
207
208 /* Draw cache to store data used for viewport drawing. */
211
213enum {
214 HA_DS_EXPAND = (1 << 0),
216};
217
225
226/* Only one material supported currently. */
227#define CURVES_MATERIAL_NR 1
#define ENUM_OPERATORS(_type, _max)
ID and Library types, which are fundamental for SDNA.
CurveType
@ CURVE_TYPE_BEZIER
@ CURVE_TYPE_NURBS
@ CURVE_TYPE_POLY
@ CURVE_TYPE_CATMULL_ROM
NormalMode
@ NORMAL_MODE_MINIMUM_TWIST
@ NORMAL_MODE_FREE
@ NORMAL_MODE_Z_UP
HandleType
@ BEZIER_HANDLE_FREE
@ BEZIER_HANDLE_ALIGN
@ BEZIER_HANDLE_VECTOR
@ BEZIER_HANDLE_AUTO
struct CurvesGeometry CurvesGeometry
eCurvesSymmetryType
@ CURVES_SYMMETRY_Y
@ CURVES_SYMMETRY_Z
@ CURVES_SYMMETRY_X
struct Curves Curves
struct CurvesGeometryRuntimeHandle CurvesGeometryRuntimeHandle
@ CV_SCULPT_COLLISION_ENABLED
@ HA_DS_EXPAND
KnotsMode
@ NURBS_KNOT_MODE_ENDPOINT
@ NURBS_KNOT_MODE_NORMAL
@ NURBS_KNOT_MODE_BEZIER
@ NURBS_KNOT_MODE_ENDPOINT_BEZIER
Object is a sort of wrapper for general info.
float wrap(float value, float max, float min)
Definition node_math.h:71
CustomData point_data
CurvesGeometryRuntimeHandle * runtime
ListBase vertex_group_names
CustomData curve_data
CurvesGeometry geometry
char selection_domain
void * batch_cache
int attributes_active_index_legacy
struct Object * surface
struct Material ** mat
struct AnimData * adt
char * surface_uv_map
char _pad[4]
Definition DNA_ID.h:413