|
Blender V5.3
|
#include <DNA_pointcache_types.h>
Public Attributes | |
| struct PointCache * | next = nullptr |
| struct PointCache * | prev = nullptr |
| ePointCache_Flag | flag = {} |
| int | step = 0 |
| int | simframe = 0 |
| int | startframe = 0 |
| int | endframe = 0 |
| int | editframe = 0 |
| int | last_exact = 0 |
| int | last_valid = 0 |
| char | _pad [4] = {} |
| int | totpoint = 0 |
| int | index = 0 |
| PointCacheCompression | compression = PTCACHE_COMPRESS_NO |
| char | _pad0 [2] = {} |
| char | name [64] = "" |
| char | prev_name [64] = "" |
| char | info [128] = "" |
| char | path [1024] = "" |
| char * | cached_frames = nullptr |
| int | cached_frames_len = 0 |
| char | _pad1 [4] = {} |
| ListBaseT< PTCacheMem > | mem_cache = {nullptr, nullptr} |
| struct PTCacheEdit * | edit = nullptr |
| void(*) | free_edit (struct PTCacheEdit *edit) = nullptr |
Definition at line 111 of file DNA_pointcache_types.h.
| char blender::PointCache::_pad[4] = {} |
Definition at line 143 of file DNA_pointcache_types.h.
| char blender::PointCache::_pad0[2] = {} |
Definition at line 152 of file DNA_pointcache_types.h.
| char blender::PointCache::_pad1[4] = {} |
Definition at line 166 of file DNA_pointcache_types.h.
| char* blender::PointCache::cached_frames = nullptr |
Array of length endframe - startframe + 1 with flags to indicate cached frames. Can be later used for other per frame flags too if needed.
Definition at line 164 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_free(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_exist(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_toggle_disk_cache(), blender::BKE_ptcache_write(), blender::direct_link_pointcache(), blender::ptcache_copy(), and blender::timeline_cache_find_next_cached_segment().
| int blender::PointCache::cached_frames_len = 0 |
Definition at line 165 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_toggle_disk_cache(), blender::direct_link_pointcache(), and blender::ptcache_copy().
| PointCacheCompression blender::PointCache::compression = PTCACHE_COMPRESS_NO |
Used for versioning only; now cache is always compressed.
Definition at line 151 of file DNA_pointcache_types.h.
| struct PTCacheEdit* blender::PointCache::edit = nullptr |
Definition at line 170 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_free(), blender::cloth_clear_cache(), blender::direct_link_pointcache(), blender::PE_create_particle_edit(), blender::pe_get_current(), blender::PE_get_current_from_psys(), blender::psys_check_edited(), blender::psys_in_edit_mode(), blender::ptcache_copy(), and blender::ptcache_free_bake().
| int blender::PointCache::editframe = 0 |
Frame being edited (runtime only).
Definition at line 138 of file DNA_pointcache_types.h.
| int blender::PointCache::endframe = 0 |
Simulation end frame.
Definition at line 136 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_add(), blender::BKE_ptcache_bake(), blender::BKE_ptcache_disk_to_mem(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_exist(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_update_info(), blender::dynamicPaint_cacheUpdateFrames(), blender::dynamicPaint_frameUpdate(), blender::init_particle_interpolation(), blender::ptcache_find_frames_around(), blender::ptcache_write_needed(), blender::system_step(), blender::timeline_cache_draw_single(), and blender::timeline_cache_find_next_cached_segment().
| ePointCache_Flag blender::PointCache::flag = {} |
Generic flag.
Definition at line 114 of file DNA_pointcache_types.h.
Referenced by blender::BKE_fluid_modifier_create_type_data(), blender::BKE_modifier_blend_read_data(), blender::BKE_modifier_blend_write(), blender::BKE_ptcache_bake(), blender::BKE_ptcache_disk_to_mem(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_exist(), blender::BKE_ptcache_id_reset(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_invalidate(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_mem_to_disk(), blender::BKE_ptcache_object_reset(), blender::BKE_ptcache_path(), blender::BKE_ptcache_read(), blender::BKE_ptcache_toggle_disk_cache(), blender::BKE_ptcache_update_info(), blender::BKE_ptcache_validate(), blender::BKE_ptcache_write(), blender::blo_do_versions_270(), blender::blo_do_versions_pre250(), blender::cached_step(), blender::clothModifier_do(), blender::direct_link_pointcache(), blender::DRW_object_is_visible_psys_in_active_context(), blender::dynamicPaint_createNewSurface(), blender::dynamicPaint_frameUpdate(), blender::modify_mesh(), blender::object_foreach_path_particles(), blender::object_lib_override_apply_post(), blender::particles_are_dynamic(), blender::PE_create_particle_edit(), blender::pe_get_current(), blender::PE_get_current_from_psys(), blender::psys_clear_temp_pointcache(), blender::psys_get_current_display_percentage(), blender::psys_make_temp_pointcache(), blender::psys_update_path_cache(), blender::ptcache_bake_from_cache_exec(), blender::ptcache_copy(), blender::ptcache_file_open(), blender::ptcache_filepath(), blender::ptcache_filepath_ext_append(), blender::ptcache_find_frames_around(), blender::ptcache_free_bake(), blender::ptcache_interpolate(), blender::ptcache_poll(), blender::ptcache_read(), blender::ptcache_write(), blender::ptcache_write_needed(), blender::reset_particle(), blender::sbObjectStep(), blender::scene_lib_override_apply_post(), blender::surface_freeUnusedData(), blender::system_step(), blender::timeline_cache_modify_color_based_on_state(), and blender::tot_particles().
| void(*) blender::PointCache::free_edit(struct PTCacheEdit *edit) = nullptr |
Free callback.
Definition at line 172 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_free(), blender::direct_link_pointcache(), and blender::PE_create_particle_edit().
| int blender::PointCache::index = 0 |
Modifier stack index.
Definition at line 149 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_add(), blender::BKE_ptcache_id_from_cloth(), blender::BKE_ptcache_id_from_dynamicpaint(), blender::BKE_ptcache_id_from_particles(), blender::BKE_ptcache_id_from_rigidbody(), blender::BKE_ptcache_id_from_smoke(), blender::BKE_ptcache_id_from_softbody(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_toggle_disk_cache(), and blender::ptcache_filepath_ext_append().
| char blender::PointCache::info[128] = "" |
Definition at line 156 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_update_info(), and blender::rna_def_pointcache_common().
| int blender::PointCache::last_exact = 0 |
Last exact frame that's cached.
Definition at line 140 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_bake(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_invalidate(), blender::BKE_ptcache_read(), blender::BKE_ptcache_toggle_disk_cache(), blender::BKE_ptcache_update_info(), blender::BKE_ptcache_write(), blender::clothModifier_do(), blender::sbObjectStep(), and blender::system_step().
| int blender::PointCache::last_valid = 0 |
Used for editing cache - what is the last baked frame.
Definition at line 142 of file DNA_pointcache_types.h.
| ListBaseT<PTCacheMem> blender::PointCache::mem_cache = {nullptr, nullptr} |
Definition at line 168 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_disk_to_mem(), blender::BKE_ptcache_free(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_exist(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_mem_to_disk(), blender::BKE_ptcache_update_info(), blender::direct_link_pointcache(), blender::get_pointcache_keys_for_time(), blender::get_pointcache_times_for_particle(), blender::PE_create_particle_edit(), blender::psys_cache_paths(), blender::psys_clear_temp_pointcache(), blender::psys_get_dietime_from_cache(), blender::psys_make_temp_pointcache(), blender::ptcache_copy(), blender::ptcache_find_frames_around(), blender::ptcache_interpolate(), blender::ptcache_read(), blender::ptcache_write(), blender::ptcache_write_needed(), blender::reset_particle(), blender::undoptcache_from_editcache(), and blender::undoptcache_to_editcache().
| char blender::PointCache::name[64] = "" |
Definition at line 154 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_disk_cache_rename(), blender::object_lib_override_apply_post(), and blender::ptcache_filepath().
| struct PointCache* blender::PointCache::next = nullptr |
Definition at line 112 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_copy_list(), blender::object_foreach_path_pointcache(), and blender::object_lib_override_apply_post().
| char blender::PointCache::path[1024] = "" |
File path.
Definition at line 158 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_path(), and blender::object_foreach_path_particles().
| struct PointCache * blender::PointCache::prev = nullptr |
Definition at line 112 of file DNA_pointcache_types.h.
| char blender::PointCache::prev_name[64] = "" |
Definition at line 155 of file DNA_pointcache_types.h.
| int blender::PointCache::simframe = 0 |
Current frame of simulation (only if SIMULATION_VALID).
Definition at line 132 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_invalidate(), blender::BKE_ptcache_read(), blender::BKE_ptcache_validate(), blender::clothModifier_do(), blender::direct_link_pointcache(), blender::ptcache_copy(), blender::sbObjectStep(), and blender::system_step().
| int blender::PointCache::startframe = 0 |
Simulation start frame.
Definition at line 134 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_add(), blender::BKE_ptcache_bake(), blender::BKE_ptcache_disk_to_mem(), blender::BKE_ptcache_id_clear(), blender::BKE_ptcache_id_exist(), blender::BKE_ptcache_id_time(), blender::BKE_ptcache_invalidate(), blender::BKE_ptcache_load_external(), blender::BKE_ptcache_update_info(), blender::BKE_ptcache_write(), blender::dynamicPaint_cacheUpdateFrames(), blender::dynamicPaint_frameUpdate(), blender::init_particle_interpolation(), blender::ptcache_find_frames_around(), blender::ptcache_write(), blender::ptcache_write_needed(), blender::scene_blend_read_data(), blender::system_step(), blender::timeline_cache_draw_cached_segments(), blender::timeline_cache_draw_single(), blender::timeline_cache_find_next_cached_segment(), and blender::timeline_cache_segments_count().
| int blender::PointCache::step = 0 |
The number of frames between cached frames. This should probably be an upper bound for a per point adaptive step in the future, but for now it's the same for all points. Without adaptivity this can effect the perceived simulation quite a bit though. If for example particles are colliding with a horizontal plane (with high damping) they quickly come to a stop on the plane, however there are still forces acting on the particle (gravity and collisions), so the particle velocity isn't necessarily zero for the whole duration of the frame even if the particle seems stationary. If all simulation frames aren't cached (step > 1) these velocities are interpolated into movement for the non-cached frames. The result will look like the point is oscillating around the collision location. So for now cache step should be set to 1 for accurate reproduction of collisions.
Definition at line 129 of file DNA_pointcache_types.h.
Referenced by blender::BKE_fluid_modifier_create_type_data(), blender::BKE_modifier_blend_write(), blender::BKE_ptcache_add(), blender::blo_do_versions_pre250(), blender::dynamicPaint_createNewSurface(), blender::dynamics_step(), blender::init_data(), blender::ptcache_add_new_exec(), blender::ptcache_particle_interpolate(), blender::ptcache_particle_totwrite(), blender::ptcache_particle_write(), and blender::ptcache_write_needed().
| int blender::PointCache::totpoint = 0 |
Number of cached points.
Definition at line 147 of file DNA_pointcache_types.h.
Referenced by blender::BKE_ptcache_load_external(), blender::BKE_ptcache_update_info(), and blender::tot_particles().