Blender V5.3
BKE_displist.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
5#pragma once
6
11
12#include "DNA_curve_enums.h"
13#include "DNA_listBase.h"
14
15namespace blender {
16
17struct Depsgraph;
18struct Nurb;
19
21enum {
30 // DL_VERTCOL = 6, /* UNUSED */
33};
34
36enum {
38 DL_CYCL_U = (1 << 0),
39 DL_CYCL_V = (1 << 1),
40
41 DL_FRONT_CURVE = (1 << 2),
42 DL_BACK_CURVE = (1 << 3),
43
50 DL_REVERSED = (1 << 4),
51};
52
53/* prototypes */
54
55struct Object;
56struct Scene;
57
58/* Used for curves, nurbs, meta-balls. */
59struct DispList {
60 struct DispList *next, *prev;
61 short type, flag;
62 int parts, nr;
63 short col, rt; /* Currently only used for smooth flag. */
64 float *verts, *nors;
65 int *index;
67 int totindex; /* indexed array drawing surfaces */
68};
69
70DispList *BKE_displist_find(ListBaseT<DispList> *lb, int type);
71void BKE_displist_free(ListBaseT<DispList> *lb);
72
73void BKE_displist_make_curveTypes(struct Depsgraph *depsgraph,
74 const struct Scene *scene,
75 struct Object *ob,
76 bool for_render);
77
78void BKE_curve_calc_modifiers_pre(struct Depsgraph *depsgraph,
79 const struct Scene *scene,
80 struct Object *ob,
81 ListBaseT<Nurb> *source_nurb,
82 ListBaseT<Nurb> *target_nurb,
83 bool for_render);
85 const struct DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4);
86
95void BKE_displist_fill(const ListBaseT<DispList> *dispbase,
96 ListBaseT<DispList> *to,
97 const float normal_proj[3],
98 bool flip_normal,
99 CurveFillSolverType fill_solver,
100 CurveFillRuleType fill_rule);
101
102float BKE_displist_calc_taper(struct Depsgraph *depsgraph,
103 const struct Scene *scene,
104 struct Object *taperobj,
105 int cur,
106 int tot);
107
108void BKE_displist_minmax(const ListBaseT<DispList> *dispbase, float min[3], float max[3]);
109
110} // namespace blender
These structs are the foundation for all linked lists in the library system.
btScalar max
Definition scene.h:133
BMesh Iterators.
void BKE_displist_fill(const ListBaseT< DispList > *dispbase, ListBaseT< DispList > *to, const float normal_proj[3], bool flip_normal, CurveFillSolverType fill_solver, CurveFillRuleType fill_rule)
Definition displist.cc:672
void BKE_displist_free(ListBaseT< DispList > *lb)
Definition displist.cc:68
void BKE_curve_calc_modifiers_pre(struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, ListBaseT< Nurb > *source_nurb, ListBaseT< Nurb > *target_nurb, bool for_render)
DispList * BKE_displist_find(ListBaseT< DispList > *lb, int type)
Definition displist.cc:75
@ DL_BACK_CURVE
@ DL_FRONT_CURVE
void BKE_displist_minmax(const ListBaseT< DispList > *dispbase, float min[3], float max[3])
Definition displist.cc:1741
bool BKE_displist_surfindex_get(const struct DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4)
float BKE_displist_calc_taper(struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *taperobj, int cur, int tot)
void BKE_displist_make_curveTypes(struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, bool for_render)
#define min(a, b)
Definition sort.cc:38
struct DispList * next
struct DispList * prev