Blender V5.3
blender::PointCache Struct Reference

#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

Detailed Description

Definition at line 111 of file DNA_pointcache_types.h.

Member Data Documentation

◆ _pad

char blender::PointCache::_pad[4] = {}

Definition at line 143 of file DNA_pointcache_types.h.

◆ _pad0

char blender::PointCache::_pad0[2] = {}

Definition at line 152 of file DNA_pointcache_types.h.

◆ _pad1

char blender::PointCache::_pad1[4] = {}

Definition at line 166 of file DNA_pointcache_types.h.

◆ cached_frames

◆ cached_frames_len

◆ compression

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.

◆ edit

◆ editframe

int blender::PointCache::editframe = 0

Frame being edited (runtime only).

Definition at line 138 of file DNA_pointcache_types.h.

◆ endframe

◆ flag

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().

◆ free_edit

void(*) blender::PointCache::free_edit(struct PTCacheEdit *edit) = nullptr

◆ index

◆ info

char blender::PointCache::info[128] = ""

◆ last_exact

◆ last_valid

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.

◆ mem_cache

◆ name

char blender::PointCache::name[64] = ""

◆ next

◆ path

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().

◆ prev

struct PointCache * blender::PointCache::prev = nullptr

Definition at line 112 of file DNA_pointcache_types.h.

◆ prev_name

char blender::PointCache::prev_name[64] = ""

Definition at line 155 of file DNA_pointcache_types.h.

◆ simframe

◆ startframe

◆ step

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().

◆ totpoint

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().


The documentation for this struct was generated from the following file: