|
Blender V4.3
|
#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_bitmap.h"#include "BLI_listbase.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_curve_types.h"#include "DNA_defaults.h"#include "DNA_key_types.h"#include "DNA_lattice_types.h"#include "DNA_meshdata_types.h"#include "DNA_object_types.h"#include "BKE_curve.hh"#include "BKE_deform.hh"#include "BKE_displist.h"#include "BKE_idtype.hh"#include "BKE_lattice.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_modifier.hh"#include "BKE_object.hh"#include "BKE_object_types.hh"#include "BLO_read_write.hh"Go to the source code of this file.
Macros | |
| #define | DNA_DEPRECATED_ALLOW |
Variables | |
| IDTypeInfo | IDType_ID_LT |
| void(* | BKE_lattice_batch_cache_dirty_tag_cb )(Lattice *lt, int mode) = nullptr |
| void(* | BKE_lattice_batch_cache_free_cb )(Lattice *lt) = nullptr |
| #define DNA_DEPRECATED_ALLOW |
Definition at line 25 of file lattice.cc.
Definition at line 582 of file lattice.cc.
References Lattice::actbp, BLI_assert, Lattice::def, Lattice::editlatt, GS, Lattice::id, ID_LT, EditLatt::latt, LT_ACTBP_NONE, ID::name, Lattice::pntsu, Lattice::pntsv, and Lattice::pntsw.
Referenced by blender::ed::object::calc_active_center_for_editmode(), and blender::ed::object::vgroup_select_verts().
Definition at line 388 of file lattice.cc.
References BKE_id_new(), and ID_LT.
Referenced by BKE_object_obdata_add_from_type().
Definition at line 710 of file lattice.cc.
References Lattice::batch_cache, and BKE_lattice_batch_cache_dirty_tag_cb.
Referenced by BKE_object_batch_cache_dirty_tag(), and BKE_object_data_select_update().
| void BKE_lattice_batch_cache_free | ( | Lattice * | lt | ) |
Definition at line 716 of file lattice.cc.
References Lattice::batch_cache, and BKE_lattice_batch_cache_free_cb.
Referenced by lattice_free_data().
| void BKE_lattice_bitmap_from_flag | ( | const Lattice * | lt, |
| BLI_bitmap * | bitmap, | ||
| const uint8_t | flag, | ||
| const bool | clear, | ||
| const bool | respecthide ) |
Definition at line 235 of file lattice.cc.
References BLI_BITMAP_DISABLE, BLI_BITMAP_ENABLE, clear(), Lattice::def, BPoint::f1, flag, BPoint::hide, Lattice::pntsu, Lattice::pntsv, and Lattice::pntsw.
Referenced by ed_lattice_select_mirrored(), and lattice_select_more_less().
Definition at line 599 of file lattice.cc.
References add_v3_v3(), Lattice::def, Lattice::editlatt, EditLatt::latt, mul_v3_fl(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, BPoint::vec, and zero_v3().
Referenced by blender::ed::object::object_origin_set_exec().
| MDeformVert * BKE_lattice_deform_verts_get | ( | const Object * | oblatt | ) |
Definition at line 575 of file lattice.cc.
References BKE_object_get_lattice(), BLI_assert, Lattice::dvert, OB_LATTICE, and Object::type.
Referenced by BKE_lattice_deform_data_create(), and MOD_get_vgroup().
| void BKE_lattice_eval_geometry | ( | Depsgraph * | depsgraph, |
| Lattice * | latt ) |
Definition at line 703 of file lattice.cc.
Referenced by blender::deg::DepsgraphNodeBuilder::build_object_data_geometry_datablock().
| int BKE_lattice_index_flip | ( | const Lattice * | lt, |
| const int | index, | ||
| const bool | flip_u, | ||
| const bool | flip_v, | ||
| const bool | flip_w ) |
Definition at line 213 of file lattice.cc.
References BKE_lattice_index_from_uvw(), BKE_lattice_index_to_uvw(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, v, and w().
Referenced by ed_lattice_select_mirrored().
Definition at line 195 of file lattice.cc.
References Lattice::pntsu, Lattice::pntsv, v, and w().
Referenced by BKE_lattice_index_flip(), latt_bp(), lattice_flip_point_value(), lattice_swap_point_pairs(), lattice_test_bitmap_uvw(), blender::ed::object::object_shape_key_mirror(), and blender::ed::object::vgroup_mirror().
| void BKE_lattice_index_to_uvw | ( | const Lattice * | lt, |
| const int | index, | ||
| int * | r_u, | ||
| int * | r_v, | ||
| int * | r_w ) |
Definition at line 203 of file lattice.cc.
References Lattice::pntsu, and Lattice::pntsv.
Referenced by BKE_lattice_index_flip().
| bool BKE_lattice_is_any_selected | ( | const Lattice * | lt | ) |
Definition at line 685 of file lattice.cc.
References Lattice::def, BPoint::f1, BPoint::hide, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and SELECT.
Referenced by lattice_select_all_exec().
| std::optional< blender::Bounds< blender::float3 > > BKE_lattice_minmax | ( | const Lattice * | lt | ) |
Definition at line 617 of file lattice.cc.
References Lattice::def, Lattice::editlatt, EditLatt::latt, min, minmax_v3v3_v3(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by BKE_object_boundbox_get(), and blender::ed::object::object_origin_set_exec().
Definition at line 516 of file lattice.cc.
References BKE_id_copy_ex(), BKE_lattice_vert_coords_alloc(), BKE_lattice_vert_coords_apply(), BKE_modifier_get_info(), BKE_modifiers_get_virtual_modifierlist(), BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), BKE_object_get_evaluated_lattice(), BKE_object_get_lattice(), Object::data, ModifierTypeInfo::deform_verts, depsgraph, Lattice::editlatt, eModifierMode_Editmode, eModifierMode_Realtime, eModifierTypeFlag_AcceptsVertexCosOnly, ModifierTypeInfo::flags, float, Lattice::id, ModifierTypeInfo::is_disabled, LIB_ID_COPY_LOCALIZE, MEM_callocN, MEM_freeN(), ModifierData::mode, ModifierData::next, OnlyDeform, Object::runtime, ModifierData::type, and ModifierTypeInfo::type.
Referenced by BKE_object_handle_data_update(), and blender::ed::object::object_force_modifier_update_for_bind().
Definition at line 273 of file lattice.cc.
References Lattice::actbp, BKE_defvert_array_free(), BKE_displist_free(), BKE_lattice_deform_coords(), calc_lat_fudu(), copy_m4_m4(), copy_v3_v3(), Lattice::def, Lattice::du, Lattice::dv, Lattice::dvert, Lattice::dw, Lattice::flag, Lattice::fu, Lattice::fv, Lattice::fw, KEY_LINEAR, LT_ACTBP_NONE, MEM_callocN, MEM_freeN(), MEM_mallocN, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, Object::runtime, Lattice::typeu, Lattice::typev, Lattice::typew, unit_m4(), v, BPoint::vec, and w().
Referenced by lattice_init_data(), and make_regular_exec().
Definition at line 637 of file lattice.cc.
References Key::block, Lattice::def, Lattice::key, LISTBASE_FOREACH, mul_m4_v3(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by blender::ed::object::apply_objects_internal(), and BKE_object_obdata_size_init().
Definition at line 657 of file lattice.cc.
References add_v3_v3(), Key::block, Lattice::def, Lattice::editlatt, Lattice::key, EditLatt::latt, LISTBASE_FOREACH, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by blender::ed::object::object_origin_set_exec().
Definition at line 489 of file lattice.cc.
References BKE_lattice_vert_coords_get(), float, MEM_mallocN, Lattice::pntsu, Lattice::pntsv, and Lattice::pntsw.
Referenced by BKE_lattice_modifiers_calc(), and blender::ed::object::modifier_apply_obdata().
Definition at line 508 of file lattice.cc.
References copy_v3_v3(), Lattice::def, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by BKE_lattice_modifiers_calc(), blender::ed::object::data_xform_restore(), and blender::ed::object::modifier_apply_obdata().
| void BKE_lattice_vert_coords_apply_with_mat4 | ( | Lattice * | lt, |
| const float(*) | vert_coords[3], | ||
| const float | mat[4][4] ) |
Definition at line 498 of file lattice.cc.
References Lattice::def, mul_v3_m4v3(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by blender::ed::object::data_xform_by_mat4().
Definition at line 481 of file lattice.cc.
References copy_v3_v3(), Lattice::def, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and BPoint::vec.
Referenced by BKE_lattice_vert_coords_alloc(), and blender::ed::object::data_xform_create_ex().
Definition at line 257 of file lattice.cc.
Referenced by BKE_lattice_resize(), and blo_do_versions_pre250().
Definition at line 397 of file lattice.cc.
References BKE_lattice_index_from_uvw(), Lattice::def, v, and w().
Referenced by outside_lattice().
|
static |
Definition at line 152 of file lattice.cc.
References Lattice::batch_cache, BKE_defvert_blend_read(), BLO_read_struct_array, BLO_read_struct_list, Lattice::def, Lattice::dvert, Lattice::editlatt, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and Lattice::vertex_group_names.
|
static |
Definition at line 133 of file lattice.cc.
References Lattice::batch_cache, BKE_defbase_blend_write(), BKE_defvert_blend_write(), BKE_id_blend_write(), BLO_write_id_struct, BLO_write_struct_array, Lattice::def, Lattice::dvert, Lattice::editlatt, Lattice::id, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and Lattice::vertex_group_names.
|
static |
Definition at line 59 of file lattice.cc.
References Lattice::batch_cache, BKE_defgroup_copy_list(), BKE_defvert_array_copy(), BKE_id_copy_in_lib(), Lattice::def, Lattice::dvert, Lattice::editlatt, flag, Key::id, Lattice::id, Lattice::key, LIB_ID_COPY_SHAPEKEY, MEM_dupallocN, MEM_mallocN, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and Lattice::vertex_group_names.
|
static |
Definition at line 121 of file lattice.cc.
References BKE_LIB_FOREACHID_PROCESS_ID_NOCHECK, BKE_LIB_FOREACHID_PROCESS_IDSUPER, BKE_lib_query_foreachid_process_flags_get(), flag, IDWALK_CB_USER, IDWALK_DO_DEPRECATED_POINTERS, Lattice::key, and lattice.
|
static |
Definition at line 92 of file lattice.cc.
References BKE_defvert_array_free(), BKE_lattice_batch_cache_free(), BLI_freelistN(), Lattice::def, Lattice::dvert, Lattice::editlatt, EditLatt::latt, lattice, MEM_freeN(), MEM_SAFE_FREE, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, and Lattice::vertex_group_names.
|
static |
Definition at line 47 of file lattice.cc.
References BKE_lattice_resize(), BLI_assert, Lattice::def, DNA_struct_default_get, lattice, MEM_callocN, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
| void outside_lattice | ( | Lattice * | lt | ) |
Definition at line 402 of file lattice.cc.
References Lattice::def, BPoint::f1, Lattice::flag, float, BPoint::hide, latt_bp(), LT_OUTSIDE, mul_v3_fl(), Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, v, BPoint::vec, and w().
Referenced by do_latt_key(), ED_transverts_update_obedit(), and recalcData_lattice().
| void(* BKE_lattice_batch_cache_dirty_tag_cb) (Lattice *lt, int mode) | ( | Lattice * | lt, |
| int | mode ) = nullptr |
Definition at line 707 of file lattice.cc.
Referenced by BKE_lattice_batch_cache_dirty_tag(), and DRW_engines_register().
Definition at line 708 of file lattice.cc.
Referenced by BKE_lattice_batch_cache_free(), and DRW_engines_register().
| IDTypeInfo IDType_ID_LT |
Definition at line 165 of file lattice.cc.