|
Blender
V2.93
|
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) |
| void | BKE_displist_elem_free (DispList *dl) |
| DispList * | BKE_displist_find_or_create (struct ListBase *lb, int type) |
| 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) |
| bool | BKE_displist_has_faces (const struct ListBase *lb) |
| void | BKE_displist_make_surf (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct Mesh **r_final, const bool for_render, const bool for_orco) |
| void | BKE_displist_make_curveTypes (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, const bool for_render, const bool for_orco) |
| void | BKE_displist_make_curveTypes_forRender (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, struct ListBase *dispbase, struct Mesh **r_final, const bool for_orco) |
| void | BKE_displist_make_mball (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob) |
| void | BKE_displist_make_mball_forRender (struct Depsgraph *depsgraph, struct Scene *scene, struct Object *ob, struct ListBase *dispbase) |
| bool | BKE_curve_calc_modifiers_pre (struct Depsgraph *depsgraph, const struct Scene *scene, struct Object *ob, struct ListBase *source_nurb, struct ListBase *target_nurb, const 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], const 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 34 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 51 of file BKE_displist.h.
| bool BKE_curve_calc_modifiers_pre | ( | struct Depsgraph * | depsgraph, |
| const struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct ListBase * | source_nurb, | ||
| struct ListBase * | target_nurb, | ||
| const 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 object_for_curve_to_mesh_create().
| void BKE_displist_count | ( | const struct ListBase * | lb, |
| int * | totvert, | ||
| int * | totface, | ||
| int * | tottri | ||
| ) |
Referenced by stats_object().
| void BKE_displist_elem_free | ( | DispList * | dl | ) |
Definition at line 65 of file displist.c.
References DispList::index, MEM_freeN, DispList::nors, and DispList::verts.
Referenced by BKE_displist_free().
| void BKE_displist_fill | ( | const struct ListBase * | dispbase, |
| struct ListBase * | to, | ||
| const float | normal_proj[3], | ||
| const bool | flip_normal | ||
| ) |
Referenced by M_Geometry_tessellate_polygon().
Definition at line 105 of file displist.c.
References LISTBASE_FOREACH, NULL, 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 90 of file displist.c.
References BLI_addtail(), LISTBASE_FOREACH, MEM_callocN, DispList::type, and type.
| void BKE_displist_free | ( | struct ListBase * | lb | ) |
Definition at line 81 of file displist.c.
References BKE_displist_elem_free(), and BLI_pophead().
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(), do_makeDispListCurveTypes(), M_Geometry_tessellate_polygon(), and metaball_free_data().
| bool BKE_displist_has_faces | ( | const struct ListBase * | lb | ) |
Referenced by OVERLAY_wireframe_cache_populate().
| void BKE_displist_make_curveTypes_forRender | ( | struct Depsgraph * | depsgraph, |
| const struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct ListBase * | dispbase, | ||
| struct Mesh ** | r_final, | ||
| const bool | for_orco | ||
| ) |
| void BKE_displist_make_mball | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob | ||
| ) |
Definition at line 685 of file displist.c.
References BKE_displist_free(), BKE_mball_basis_find(), BKE_mball_polygonize(), BKE_mball_texspace_calc(), boundbox_displist_object(), Object_Runtime::curve_cache, depsgraph, CurveCache::disp, MEM_callocN, 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().
| void BKE_displist_make_mball_forRender | ( | struct Depsgraph * | depsgraph, |
| struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct ListBase * | dispbase | ||
| ) |
Definition at line 709 of file displist.c.
References BKE_mball_polygonize(), BKE_mball_texspace_calc(), depsgraph, object_deform_mball(), and scene.
| void BKE_displist_make_surf | ( | struct Depsgraph * | depsgraph, |
| const struct Scene * | scene, | ||
| struct Object * | ob, | ||
| struct ListBase * | dispbase, | ||
| struct Mesh ** | r_final, | ||
| const bool | for_render, | ||
| const bool | for_orco | ||
| ) |
Referenced by match_texture_space_exec().
| void BKE_displist_normals_add | ( | struct ListBase * | lb | ) |
Definition at line 140 of file displist.c.
References Freestyle::a, add_v3_v3(), BKE_displist_surfindex_get(), DL_BACK_CURVE, DL_INDEX3, DL_SURF, LISTBASE_FOREACH, MEM_callocN, nor, normal_quad_v3(), normalize_v3(), NULL, v1, and v2.
Referenced by DRW_displist_vertbuf_create_loop_pos_and_nor_and_uv_and_tan(), and DRW_displist_vertbuf_create_pos_and_nor().
| bool BKE_displist_surfindex_get | ( | const struct DispList * | dl, |
| int | a, | ||
| int * | b, | ||
| int * | p1, | ||
| int * | p2, | ||
| int * | p3, | ||
| int * | p4 | ||
| ) |