Blender V5.3
blender::ParticleSystem Struct Reference

#include <DNA_particle_types.h>

Public Attributes

struct ParticleSystem * next = nullptr
struct ParticleSystem * prev = nullptr
ParticleSettings * part = nullptr
ParticleData * particles = nullptr
ChildParticle * child = nullptr
struct PTCacheEdit * edit = nullptr
void(*) free_edit (struct PTCacheEdit *edit) = nullptr
struct ParticleCacheKey ** pathcache = nullptr
struct ParticleCacheKey ** childcache = nullptr
ListBaseT< LinkData > pathcachebufs
ListBaseT< LinkData > childcachebufs
struct ClothModifierData * clmd = nullptr
struct Mesh * hair_in_mesh = nullptr
struct Mesh * hair_out_mesh = nullptr
struct Object * target_ob = nullptr
struct LatticeDeformData * lattice_deform_data = nullptr
struct Object * parent = nullptr
ListBaseT< ParticleTarget > targets = {nullptr, nullptr}
char name [64] = ""
float imat [4][4] = {}
float cfra = 0
float tree_frame = 0
float bvhtree_frame = 0
int seed = 0
int child_seed = 0
eParticleSystem_Flag flag = {}
int totpart = 0
int totunexist = 0
int totchild = 0
int totcached = 0
int totchildcache = 0
int recalc = 0
short target_psys = 0
short totkeyed = 0
short bakespace = 0
char _pad1 [6] = {}
DNA_DEPRECATED char bb_uvname [3][68]
char _pad2 [4] = {}
short vgroup [13] = {}
short vg_neg = 0
short rt3 = 0
char _pad3 [6] = {}
struct PointCache * pointcache = nullptr
ListBaseT< PointCache > ptcaches = {nullptr, nullptr}
struct ListBaseT< struct EffectorCache > * effectors = nullptr
ParticleSpring * fluid_springs = nullptr
int tot_fluidsprings = 0
int alloc_fluidsprings = 0
KDTree3d * tree = nullptr
struct BVHTree * bvhtree = nullptr
struct ParticleDrawData * pdd = nullptr
float dt_frac = 0
float lattice_strength = 0
draw::ParticleBatchCache * batch_cache = nullptr
struct ParticleSystem * orig_psys = nullptr

Detailed Description

Definition at line 686 of file DNA_particle_types.h.

Member Data Documentation

◆ _pad1

char blender::ParticleSystem::_pad1[6] = {}

Definition at line 747 of file DNA_particle_types.h.

◆ _pad2

char blender::ParticleSystem::_pad2[4] = {}

Definition at line 752 of file DNA_particle_types.h.

◆ _pad3

char blender::ParticleSystem::_pad3[6] = {}

Definition at line 757 of file DNA_particle_types.h.

◆ alloc_fluidsprings

int blender::ParticleSystem::alloc_fluidsprings = 0

◆ bakespace

short blender::ParticleSystem::bakespace = 0

Definition at line 746 of file DNA_particle_types.h.

◆ batch_cache

◆ bb_uvname

DNA_DEPRECATED char blender::ParticleSystem::bb_uvname[3][68]

Billboard UV name.

Definition at line 750 of file DNA_particle_types.h.

◆ bvhtree

struct BVHTree* blender::ParticleSystem::bvhtree = nullptr

◆ bvhtree_frame

float blender::ParticleSystem::bvhtree_frame = 0

Definition at line 738 of file DNA_particle_types.h.

Referenced by blender::psys_update_particle_bvhtree().

◆ cfra

◆ child

◆ child_seed

int blender::ParticleSystem::child_seed = 0

◆ childcache

◆ childcachebufs

◆ clmd

◆ dt_frac

float blender::ParticleSystem::dt_frac = 0

Current time step, as a fraction of a frame.

Definition at line 776 of file DNA_particle_types.h.

Referenced by blender::sync_timestep(), blender::system_step(), and blender::update_timestep().

◆ edit

◆ effectors

◆ flag

eParticleSystem_Flag blender::ParticleSystem::flag = {}

Definition at line 740 of file DNA_particle_types.h.

Referenced by blender::BKE_object_copy_particlesystem(), blender::BKE_object_handle_data_update(), blender::BKE_particle_system_blend_read_data(), blender::blo_do_versions_pre250(), blender::brush_add(), blender::brush_edit_apply(), blender::brush_puff(), blender::deg::DepsgraphRelationBuilder::build_particle_systems(), blender::clear_edited_exec(), blender::connect_hair(), blender::copy_particle_edit(), blender::ed::transform::createTransParticleVerts(), blender::disconnect_hair(), blender::do_particle_interpolation(), blender::do_path_effectors(), blender::DRW_object_is_visible_psys_in_active_context(), blender::draw::drw_particle_update_ptcache_edit(), blender::ed::transform::flushTransParticles(), blender::foreach_mouse_hit_key_iter(), blender::free_data(), blender::free_hair(), blender::hair_needs_recalc(), blender::hair_step(), blender::make_duplis_particle_system(), blender::modify_mesh(), blender::object_add_or_copy_particle_system(), blender::object_foreach_path_particles(), blender::particle_system_update(), blender::particles_are_dynamic(), blender::PE_apply_lengths(), blender::PE_create_particle_edit(), blender::pe_deflect_emitter(), blender::pe_get_current(), blender::PE_get_current_from_psys(), blender::pe_iterate_lengths(), blender::PE_lasso_select(), blender::PE_mirror_x(), blender::PE_start_edit(), blender::pe_update_hair_particle_edit_pointers(), blender::PE_update_object(), blender::psys_apply_hair_lattice(), blender::psys_cache_child_paths(), blender::psys_cache_edit_paths_iter(), blender::psys_cache_paths(), blender::psys_changed_type(), blender::psys_check_edited(), blender::psys_check_enabled(), blender::psys_count_keyed_targets(), blender::psys_disable_all(), blender::psys_enable_all(), blender::psys_free(), blender::psys_get_current(), blender::psys_get_current_num(), blender::psys_get_particle_on_path(), blender::psys_get_particle_state(), blender::psys_prepare_physics(), blender::psys_reset(), blender::psys_set_current_num(), blender::psys_update_path_cache(), blender::rekey_particle(), blender::remove_doubles_exec(), blender::reset_particle(), blender::set_keyed_keys(), blender::shape_cut_exec(), blender::subdivide_particle(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), blender::undoptcache_from_editcache(), blender::undoptcache_to_editcache(), blender::update_children(), and blender::update_world_cos().

◆ fluid_springs

◆ free_edit

◆ hair_in_mesh

struct Mesh* blender::ParticleSystem::hair_in_mesh = nullptr

◆ hair_out_mesh

◆ imat

float blender::ParticleSystem::imat[4][4] = {}

◆ lattice_deform_data

struct LatticeDeformData* blender::ParticleSystem::lattice_deform_data = nullptr

◆ lattice_strength

float blender::ParticleSystem::lattice_strength = 0

◆ name

◆ next

◆ orig_psys

struct ParticleSystem* blender::ParticleSystem::orig_psys = nullptr

Set by dependency graph's copy-on-evaluation, allows to quickly go from evaluated particle system to original one.

Original system will have this set to NULL.

Use psys_orig_get() function to access.

Definition at line 790 of file DNA_particle_types.h.

Referenced by blender::BKE_particle_system_blend_read_data(), blender::psys_eval_get(), blender::psys_orig_edit_get(), and blender::psys_orig_get().

◆ parent

struct Object* blender::ParticleSystem::parent = nullptr

Particles from global space -> parent space.

Definition at line 728 of file DNA_particle_types.h.

Referenced by blender::BKE_particlesystem_id_loop().

◆ part

ParticleSettings* blender::ParticleSystem::part = nullptr

Particle settings.

Definition at line 698 of file DNA_particle_types.h.

Referenced by blender::alloc_child_particles(), blender::animdata_filter_ds_particles(), blender::basic_force_cb(), blender::basic_integrate(), blender::BKE_effector_relations_create(), blender::BKE_effectors_create(), blender::BKE_object_copy_particlesystem(), blender::BKE_object_dupli_find_rgba_attribute(), blender::BKE_object_duplicate(), blender::BKE_object_handle_data_update(), blender::BKE_object_material_slot_used(), blender::BKE_particle_co_hair(), blender::BKE_particle_system_blend_read_after_liblink(), blender::BKE_particle_system_blend_write(), blender::BKE_particlesystem_id_loop(), blender::BKE_ptcache_bake(), blender::BKE_ptcache_id_from_particles(), blender::BKE_ptcache_object_reset(), blender::blo_do_versions_pre250(), blender::brush_add(), blender::brush_add_count_iter(), blender::brush_edit_apply(), blender::brush_puff(), blender::io::hydra::build_hair_data(), blender::deg::DepsgraphNodeBuilder::build_particle_systems(), blender::deg::DepsgraphRelationBuilder::build_particle_systems(), blender::buttons_context_id_path(), blender::buttons_texture_users_from_context(), blender::cached_step(), blender::collision_check(), blender::ed::object::convert_psys_to_mesh(), blender::copy_particle_dupliob_exec(), blender::count_particles(), blender::count_particles_mod(), blender::createFacepa(), blender::ed::transform::createTransParticleVerts(), blender::deflect_emitter_iter(), blender::disconnect_hair(), blender::distribute_grid(), blender::do_child_modifiers(), blender::do_hair_dynamics(), blender::do_kink_spiral(), blender::do_particle_interpolation(), blender::do_path_effectors(), blender::do_twist(), blender::io::alembic::ABCHairWriter::do_write(), blender::io::usd::USDHairWriter::do_write(), blender::DRW_object_is_visible_psys_in_active_context(), blender::dupliob_move_down_exec(), blender::dupliob_move_up_exec(), blender::dupliob_refresh_exec(), blender::dynamic_paint_paint_particle_cell_point_cb_ex(), blender::dynamicPaint_paintParticles(), blender::dynamics_step(), blender::dynamics_step_sph_classical_integrate_task_cb_ex(), blender::dynamics_step_sph_ddr_task_cb_ex(), blender::io::hydra::emit_hair_for_object(), blender::io::hydra::emit_hair_proto(), blender::draw::CurvesEvalCache::ensure_positions(), blender::draw::ensure_seg_pt_count(), blender::exec_distribute_parent(), blender::animrig::find_related_ids(), blender::ed::transform::flushTransParticles(), blender::eevee::foreach_hair_particle(), blender::foreach_mouse_hit_key_iter(), blender::free_keyed_keys(), blender::get_effector_tot(), blender::hair_create_input_mesh(), blender::hair_needs_recalc(), blender::hair_step(), blender::workbench::Instance::hair_sync(), blender::init_particle(), blender::init_particle_texture(), blender::initialize_all_particles(), blender::draw::interpolate_face_corner_attribute_to_curve(), blender::make_duplis_particle_system(), blender::ed::object::make_local_exec(), blender::mirror_poll(), blender::ed::object::modifier_apply_obdata(), blender::modify_mesh(), blender::new_particle_settings_exec(), blender::object_add_or_copy_particle_system(), blender::object_copy_modifier_particle_system_ensure(), blender::object_foreach_path_particles(), blender::object_remove_particle_system(), blender::ed::object::object_select_all_by_particle(), blender::workbench::Instance::object_sync(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), blender::panel_draw(), blender::draw::particle_batch_cache_ensure_pos(), blender::draw::particle_batch_cache_ensure_pos_and_seg(), blender::draw::particle_batch_cache_fill_segments(), blender::draw::particle_calculate_parent_mcol(), blender::draw::particle_calculate_parent_uvs(), blender::draw::particle_interpolate_children_mcol(), blender::draw::particle_interpolate_children_uvs(), blender::particle_skip(), blender::draw::external::Prepass::particle_sync(), blender::draw::overlay::Prepass::particle_sync(), blender::particle_system_update(), blender::particles_are_dynamic(), blender::particles_fluid_step(), blender::draw::ParticleDrawSource::particles_get(), blender::ed::curves::convert_from_particle_system::particles_to_curves(), blender::paste_mtex_exec(), blender::pd_point_from_particle(), blender::pe_get_current(), blender::PE_get_current_from_psys(), blender::PE_lasso_select(), blender::PE_minmax(), blender::PE_mirror_particle(), blender::PE_mirror_x(), blender::PE_update_mirror_cache(), blender::PE_update_object(), blender::precalc_guides(), blender::psys_apply_child_modifiers(), blender::psys_apply_hair_lattice(), blender::psys_cache_edit_paths_iter(), blender::psys_cache_paths(), blender::psys_calc_dmcache(), blender::psys_changed_type(), blender::psys_check_boid_data(), blender::psys_check_edited(), blender::psys_check_enabled(), blender::psys_count_keyed_targets(), blender::psys_emitter_customdata_mask(), blender::psys_find_parents(), blender::psys_free(), blender::psys_free_particles(), blender::psys_get_birth_coords(), blender::psys_get_child_number(), blender::psys_get_child_size(), blender::psys_get_child_time(), blender::psys_get_current_display_percentage(), blender::psys_get_dupli_path_transform(), blender::psys_get_particle_on_path(), blender::psys_get_particle_state(), blender::psys_get_pointcache_start_end(), blender::psys_get_texture(), blender::psys_get_timestep(), blender::psys_particle_on_emitter(), blender::psys_prepare_physics(), blender::psys_sim_data_init(), blender::psys_sph_density(), blender::psys_sph_init(), blender::psys_thread_context_init(), blender::psys_thread_context_init_distribute(), blender::psys_thread_context_init_path(), blender::psys_thread_create_path(), blender::psys_update_effectors(), blender::psys_update_path_cache(), blender::psys_uses_gravity(), blender::ptcache_particle_extra_write(), blender::ptcache_particle_interpolate(), blender::ptcache_particle_read(), blender::ptcache_particle_totwrite(), blender::ptcache_particle_write(), blender::realloc_particles(), blender::remap_hair_emitter(), blender::remove_doubles_exec(), blender::remove_particle_dupliob_exec(), blender::reset_particle(), blender::rule_fight(), blender::save_hair(), blender::sph_evaluate_func(), blender::sph_force_cb(), blender::sph_integrate(), blender::sph_particle_courant(), blender::sph_springs_modify(), blender::sphclassical_calc_dens(), blender::sphclassical_density_accum_cb(), blender::sphclassical_force_cb(), blender::draw::supports_handle_ranges(), blender::eevee::SyncModule::sync_curves(), blender::system_step(), blender::tessfaceidx_on_emitter(), blender::tot_particles(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), blender::twist_num_segments(), blender::update_children(), blender::update_timestep(), and blender::update_world_cos().

◆ particles

ParticleData* blender::ParticleSystem::particles = nullptr

(parent) particles.

Definition at line 701 of file DNA_particle_types.h.

Referenced by blender::basic_integrate(), blender::BKE_brush_weight_get(), blender::BKE_particle_co_hair(), blender::BKE_particle_system_blend_read_data(), blender::BKE_particle_system_blend_write(), blender::BKE_particlesystem_id_loop(), blender::brush_add(), blender::brush_puff(), blender::io::hydra::build_hair_data(), blender::collision_check(), blender::copy_particle_edit(), blender::createFacepa(), blender::ed::transform::createTransParticleVerts(), blender::deflect_emitter_iter(), blender::deform_verts(), blender::disconnect_hair(), blender::distribute_grid(), blender::do_path_effectors(), blender::io::alembic::ABCPointsWriter::do_write(), blender::dynamic_paint_paint_particle_cell_point_cb_ex(), blender::dynamicPaint_paintParticles(), blender::dynamics_step_sph_classical_basic_integrate_task_cb_ex(), blender::dynamics_step_sph_classical_calc_density_task_cb_ex(), blender::dynamics_step_sph_classical_integrate_task_cb_ex(), blender::dynamics_step_sph_ddr_task_cb_ex(), blender::exec_distribute_parent(), blender::explodeMesh(), blender::ed::transform::flushTransParticles(), blender::foreach_mouse_hit_key_iter(), blender::free_keyed_keys(), blender::free_unexisting_particles(), blender::get_child_modifier_parameters(), blender::get_effector_data(), blender::hair_step(), blender::init_particle(), blender::init_particle_interpolation(), blender::draw::interpolate_face_corner_attribute_to_curve(), blender::make_duplis_particle_system(), blender::modify_mesh(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), blender::draw::particle_batch_cache_ensure_edit_pos_and_seg(), blender::draw::particle_batch_cache_ensure_pos(), blender::draw::particle_calculate_parent_mcol(), blender::draw::particle_calculate_parent_uvs(), blender::particle_skip(), blender::particles_fluid_step(), blender::pd_point_from_particle(), blender::PE_apply_mirror(), blender::PE_create_particle_edit(), blender::PE_lasso_select(), blender::PE_minmax(), blender::PE_mirror_particle(), blender::PE_mirror_x(), blender::pe_update_hair_particle_edit_pointers(), blender::PE_update_selection(), blender::psys_apply_hair_lattice(), blender::psys_cache_edit_paths(), blender::psys_check_boid_data(), blender::psys_copy_particles(), blender::psys_find_parents(), blender::psys_free_particles(), blender::psys_get_birth_coords(), blender::psys_get_child_size(), blender::psys_get_child_time(), blender::psys_get_dupli_path_transform(), blender::psys_get_dupli_texture(), blender::psys_get_particle_on_path(), blender::psys_get_particle_state(), blender::psys_get_texture(), blender::psys_thread_context_init_distribute(), blender::psys_thread_create_path(), blender::ptcache_particle_interpolate(), blender::ptcache_particle_read(), blender::ptcache_particle_totwrite(), blender::ptcache_particle_write(), blender::realloc_particles(), blender::rekey_particle(), blender::rekey_particle_to_time(), blender::remap_hair_emitter(), blender::remove_doubles_exec(), blender::remove_tagged_keys(), blender::remove_tagged_particles(), blender::reset_all_particles(), blender::reset_particle(), blender::rule_avoid_collision(), blender::rule_fight(), blender::rule_flock(), blender::rule_follow_leader(), blender::rule_separate(), blender::set_keyed_keys(), blender::sph_density_accum_cb(), blender::sph_force_cb(), blender::sph_particle_courant(), blender::sph_springs_modify(), blender::sphclassical_density_accum_cb(), blender::sphclassical_force_cb(), blender::sphclassical_neighbor_accum_cb(), blender::subdivide_particle(), blender::tessfaceidx_on_emitter(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), blender::undoptcache_from_editcache(), blender::undoptcache_to_editcache(), blender::update_world_cos(), and blender::weight_set_exec().

◆ pathcache

◆ pathcachebufs

ListBaseT<LinkData> blender::ParticleSystem::pathcachebufs

◆ pdd

◆ pointcache

◆ prev

struct ParticleSystem * blender::ParticleSystem::prev = nullptr

Definition at line 695 of file DNA_particle_types.h.

◆ ptcaches

◆ recalc

◆ rt3

short blender::ParticleSystem::rt3 = 0

Definition at line 756 of file DNA_particle_types.h.

◆ seed

◆ target_ob

struct Object* blender::ParticleSystem::target_ob = nullptr

Definition at line 722 of file DNA_particle_types.h.

Referenced by blender::BKE_particlesystem_id_loop().

◆ target_psys

short blender::ParticleSystem::target_psys = 0

Definition at line 746 of file DNA_particle_types.h.

◆ targets

◆ tot_fluidsprings

◆ totcached

◆ totchild

◆ totchildcache

◆ totkeyed

short blender::ParticleSystem::totkeyed = 0

◆ totpart

int blender::ParticleSystem::totpart = 0

Definition at line 741 of file DNA_particle_types.h.

Referenced by blender::BKE_particle_system_blend_read_data(), blender::BKE_particle_system_blend_write(), blender::blo_do_versions_pre250(), blender::brush_add(), blender::io::hydra::build_hair_data(), blender::createFacepa(), blender::distribute_particles_on_dm(), blender::distribute_simple_children(), blender::io::alembic::ABCPointsWriter::do_write(), blender::io::usd::USDHairWriter::do_write(), blender::dynamicPaint_paintParticles(), blender::dynamics_step(), blender::emit_particles(), blender::draw::ensure_seg_pt_count(), blender::explodeMesh(), blender::free_unexisting_particles(), blender::get_effector_tot(), blender::init_particle(), blender::draw::interpolate_face_corner_attribute_to_curve(), blender::make_duplis_particle_system(), blender::modify_mesh(), blender::object_add_or_copy_particle_system(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), blender::draw::particle_batch_cache_ensure_pos(), blender::draw::particle_batch_cache_ensure_pos_and_seg(), blender::draw::particle_batch_cache_fill_segments(), blender::particle_skip(), blender::particle_system_update(), blender::particles_fluid_step(), blender::draw::ParticleDrawSource::particles_get(), blender::PE_create_particle_edit(), blender::PE_mirror_x(), blender::PE_update_mirror_cache(), blender::precalc_guides(), blender::psys_apply_hair_lattice(), blender::psys_cache_paths(), blender::psys_check_boid_data(), blender::psys_copy_particles(), blender::psys_find_parents(), blender::psys_free_particles(), blender::psys_get_particle_on_path(), blender::psys_get_particle_state(), blender::psys_get_texture(), blender::psys_get_tot_child(), blender::psys_reset(), blender::psys_thread_context_init_distribute(), blender::psys_update_path_cache(), blender::ptcache_particle_extra_read(), blender::ptcache_particle_interpolate(), blender::ptcache_particle_read(), blender::ptcache_particle_totpoint(), blender::ptcache_particle_totwrite(), blender::realloc_particles(), blender::remove_doubles_exec(), blender::remove_tagged_particles(), blender::reset_all_particles(), blender::rule_follow_leader(), blender::save_hair(), blender::set_keyed_keys(), blender::system_step(), blender::tessfaceidx_on_emitter(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), and blender::undoptcache_to_editcache().

◆ totunexist

int blender::ParticleSystem::totunexist = 0

◆ tree

◆ tree_frame

float blender::ParticleSystem::tree_frame = 0

Definition at line 738 of file DNA_particle_types.h.

Referenced by blender::psys_update_particle_tree().

◆ vg_neg

short blender::ParticleSystem::vg_neg = 0

Definition at line 756 of file DNA_particle_types.h.

Referenced by blender::psys_cache_vgroup().

◆ vgroup


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