Blender
V3.3
|
#include <cmath>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_curves_types.h"
#include "DNA_defaults.h"
#include "DNA_material_types.h"
#include "DNA_object_types.h"
#include "BLI_bounds.hh"
#include "BLI_index_range.hh"
#include "BLI_listbase.h"
#include "BLI_math_base.h"
#include "BLI_math_vector.hh"
#include "BLI_rand.hh"
#include "BLI_span.hh"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLI_vector.hh"
#include "BKE_anim_data.h"
#include "BKE_curves.hh"
#include "BKE_customdata.h"
#include "BKE_geometry_set.hh"
#include "BKE_global.h"
#include "BKE_idtype.h"
#include "BKE_lib_id.h"
#include "BKE_lib_query.h"
#include "BKE_lib_remap.h"
#include "BKE_main.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BLT_translation.h"
#include "DEG_depsgraph_query.h"
#include "BLO_read_write.h"
Go to the source code of this file.
Namespaces | |
blender | |
blender::bke | |
Variables | |
static const char * | ATTR_POSITION = "position" |
IDTypeInfo | IDType_ID_CV |
void(* | BKE_curves_batch_cache_dirty_tag_cb )(Curves *curves, int mode) = nullptr |
void(* | BKE_curves_batch_cache_free_cb )(Curves *curves) = nullptr |
Definition at line 231 of file curves.cc.
References BKE_id_new(), curves, and ID_CV.
Referenced by BKE_object_obdata_add_from_type().
Definition at line 351 of file curves.cc.
References BKE_curves_batch_cache_dirty_tag_cb, and curves.
Referenced by BKE_object_data_batch_cache_dirty_tag().
Definition at line 358 of file curves.cc.
References BKE_curves_batch_cache_free_cb, and curves.
Referenced by curves_free_data().
Definition at line 238 of file curves.cc.
References Object_Runtime::bb, BKE_boundbox_init_from_minmax(), BLI_assert, BOUNDBOX_DIRTY, curves, Object::data, BoundBox::flag, Curves::geometry, max, min, OB_CURVES, Object::runtime, Object::type, and blender::bke::CurvesGeometry::wrap().
Referenced by BKE_object_boundbox_get(), and BKE_object_minmax().
Definition at line 271 of file curves.cc.
References BKE_id_copy_ex(), Curves::id, LIB_ID_COPY_CD_REFERENCE, LIB_ID_COPY_LOCALIZE, and result.
Referenced by CurveComponent::copy(), CurveComponent::ensure_owns_direct_data(), and CurveComponent::get_for_write().
Definition at line 266 of file curves.cc.
References ATTR_POSITION, and STREQ.
Definition at line 315 of file curves.cc.
References BKE_object_eval_assign_data(), BKE_object_free_derived_caches(), GeometrySet::create_with_curves(), curves, GeometryComponentEditData::curves_edit_hints_, curves_evaluate_modifiers(), blender::bke::curves_new_nomain(), data, DEG_get_original_object(), depsgraph, GeometrySet::get_component_for_write(), GeometrySet::get_curves_for_read(), Curves::id, Object::mode, OB_MODE_SCULPT_CURVES, ReadOnly, and scene.
Referenced by BKE_object_handle_data_update(), and object_force_modifier_update_for_bind().
|
static |
Definition at line 160 of file curves.cc.
References BKE_animdata_blend_read_data(), BLO_read_data_address, BLO_read_int32_array(), BLO_read_pointer_array(), curves, CustomData_blend_read(), blender::bke::CurvesGeometry::update_curve_types(), and blender::bke::CurvesGeometry::wrap().
|
static |
Definition at line 192 of file curves.cc.
References Freestyle::a, BLO_expand, and curves.
|
static |
Definition at line 183 of file curves.cc.
References Freestyle::a, BLO_read_id_address, and curves.
|
static |
Definition at line 123 of file curves.cc.
References BKE_animdata_blend_write(), BKE_id_blend_write(), BLO_write_id_struct, BLO_write_int32_array(), BLO_write_pointer_array(), BLO_write_string(), CD_MASK_ALL, curves, CustomData_blend_write(), and CustomData_blend_write_prepare().
|
static |
Definition at line 66 of file curves.cc.
References Curves::batch_cache, BLI_strdup(), CD_DUPLICATE, CD_MASK_ALL, CD_REFERENCE, CurvesGeometry::curve_data, CurvesGeometry::curve_num, CurvesGeometry::curve_offsets, CustomData_copy(), Curves::geometry, LIB_ID_COPY_CD_REFERENCE, Curves::mat, MEM_dupallocN, CurvesGeometry::point_data, CurvesGeometry::point_num, CurvesGeometry::runtime, src, Curves::surface_uv_map, and blender::bke::CurvesGeometry::wrap().
|
static |
Definition at line 283 of file curves.cc.
References BKE_modifier_get_info(), BKE_modifier_is_enabled(), BKE_modifiers_clear_errors(), BKE_modifiers_get_virtual_modifierlist(), DAG_EVAL_RENDER, DEG_get_mode(), depsgraph, eModifierMode_Realtime, eModifierMode_Render, MOD_APPLY_RENDER, MOD_APPLY_USECACHE, ModifierTypeInfo::modifyGeometrySet, ModifierData::next, scene, and ModifierData::type.
Referenced by BKE_curves_data_update().
|
static |
Definition at line 114 of file curves.cc.
References BKE_LIB_FOREACHID_PROCESS_IDSUPER, curves, data, IDWALK_CB_NOP, and IDWALK_CB_USER.
Definition at line 101 of file curves.cc.
References BKE_animdata_free(), BKE_curves_batch_cache_free(), curves, MEM_SAFE_FREE, blender::bke::CurvesGeometry::wrap(), and blender::bke::CurvesGeometry::~CurvesGeometry().
Definition at line 56 of file curves.cc.
References BLI_assert, curves, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, and MEMCPY_STRUCT_AFTER.
|
static |
Definition at line 54 of file curves.cc.
Referenced by BKE_curves_customdata_required(), blender::bke::CurvesGeometry::positions(), and blender::bke::CurvesGeometry::positions_for_write().
void(* BKE_curves_batch_cache_dirty_tag_cb) (Curves *curves, int mode) | ( | Curves * | curves, |
int | mode | ||
) | = nullptr |
Definition at line 348 of file curves.cc.
Referenced by BKE_curves_batch_cache_dirty_tag(), and DRW_engines_register().
Definition at line 349 of file curves.cc.
Referenced by BKE_curves_batch_cache_free(), and DRW_engines_register().
IDTypeInfo IDType_ID_CV |