Blender
V3.3
|
display list (or rather multi purpose list) stuff. More...
Go to the source code of this file.
Classes | |
struct | DispList |
Typedefs | |
typedef struct DispList | DispList |
Enumerations | |
enum | { DL_POLY = 0 , DL_SEGM = 1 , DL_SURF = 2 , DL_INDEX3 = 4 , DL_INDEX4 = 5 , DL_VERTS = 7 } |
enum | { DL_CYCL_U = (1 << 0) , DL_CYCL_V = (1 << 1) , DL_FRONT_CURVE = (1 << 2) , DL_BACK_CURVE = (1 << 3) } |
Functions | |
void | BKE_displist_copy (struct ListBase *lbn, const struct ListBase *lb) |
DispList * | BKE_displist_find (struct ListBase *lb, int type) |
void | BKE_displist_normals_add (struct ListBase *lb) |
void | BKE_displist_count (const struct ListBase *lb, int *totvert, int *totface, int *tottri) |
void | BKE_displist_free (struct ListBase *lb) |
void | BKE_displist_make_curveTypes (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, bool for_render) |
void | BKE_displist_make_mball (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob) |
void | BKE_curve_calc_modifiers_pre (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, struct ListBase *source_nurb, struct ListBase *target_nurb, bool for_render) |
bool | BKE_displist_surfindex_get (const struct DispList *dl, int a, int *b, int *p1, int *p2, int *p3, int *p4) |
void | BKE_displist_fill (const struct ListBase *dispbase, struct ListBase *to, const float normal_proj[3], bool flip_normal) |
float | BKE_displist_calc_taper (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *taperobj, int cur, int tot) |
void | BKE_displist_minmax (const struct ListBase *dispbase, float min[3], float max[3]) |
display list (or rather multi purpose list) stuff.
Definition in file BKE_displist.h.
anonymous enum |
Definition at line 18 of file BKE_displist.h.
anonymous enum |
Enumerator | |
---|---|
DL_CYCL_U | U/V swapped here compared with Nurb.flagu, Nurb.flagv and CU_NURB_CYCLIC |
DL_CYCL_V | |
DL_FRONT_CURVE | |
DL_BACK_CURVE |
Definition at line 35 of file BKE_displist.h.
void BKE_curve_calc_modifiers_pre | ( | struct Depsgraph * | depsgraph, |
const struct Scene * | scene, | ||
struct Object * | ob, | ||
struct ListBase * | source_nurb, | ||
struct ListBase * | target_nurb, | ||
bool | for_render | ||
) |
Referenced by curve_from_curve_object().
float BKE_displist_calc_taper | ( | struct Depsgraph * | depsgraph, |
const struct Scene * | scene, | ||
struct Object * | taperobj, | ||
int | cur, | ||
int | tot | ||
) |
Referenced by do_guides().
Referenced by stats_object().
void BKE_displist_fill | ( | const struct ListBase * | dispbase, |
struct ListBase * | to, | ||
const float | normal_proj[3], | ||
bool | flip_normal | ||
) |
normal_proj | Optional normal that's used to project the scan-fill verts into 2D coords. Pass this along if known since it saves time calculating the normal. This is also used to initialize DispList.nors (one normal per display list). |
flip_normal | Flip the normal (same as passing normal_proj negated). |
Referenced by M_Geometry_tessellate_polygon().
Definition at line 78 of file displist.cc.
References LISTBASE_FOREACH, and type.
Referenced by BKE_lattice_deform_data_create(), BKE_lattice_minmax_dl(), contarget_get_lattice_mat(), give_parvert(), and lattice_foreachScreenVert().
Definition at line 69 of file displist.cc.
References BLI_pophead(), and displist_elem_free().
Referenced by bevels_to_filledpoly(), BKE_displist_copy(), BKE_displist_make_mball(), BKE_lattice_resize(), BKE_object_free_curve_cache(), BKE_object_material_slot_remove(), curve_bevel_make_from_object(), evaluate_curve_type_object(), M_Geometry_tessellate_polygon(), and metaball_free_data().
void BKE_displist_make_mball | ( | struct Depsgraph * | depsgraph, |
struct Scene * | scene, | ||
struct Object * | ob | ||
) |
Definition at line 641 of file displist.cc.
References BKE_displist_free(), BKE_mball_basis_find(), BKE_mball_polygonize(), BKE_mball_texspace_calc(), Object_Runtime::curve_cache, depsgraph, CurveCache::disp, OB_MBALL, object_deform_mball(), Object::runtime, scene, and Object::type.
Referenced by BKE_object_handle_data_update(), object_data_convert_ensure_curve_cache(), and object_force_modifier_update_for_bind().
Referenced by BKE_object_boundbox_calc_from_evaluated_geometry(), and match_texture_space_exec().
Definition at line 102 of file displist.cc.
References Freestyle::a, add_v3_v3(), usdtokens::b(), BKE_displist_surfindex_get(), DL_BACK_CURVE, DL_INDEX3, DL_SURF, LISTBASE_FOREACH, MEM_callocN, nor, normal_quad_v3(), normalize_v3(), v1, and v2.
Referenced by DRW_displist_vertbuf_create_pos_and_nor().