Blender V5.3
blender::ParticleSettings Struct Reference

#include <DNA_particle_types.h>

Public Attributes

ID id
struct AnimData * adt = nullptr
struct BoidSettings * boids = nullptr
struct SPHFluidSettings * fluid = nullptr
struct EffectorWeights * effector_weights = nullptr
struct Collection * collision_group = nullptr
eParticleFlag flag = PART_EDISTR | PART_TRAND | PART_HIDE_ADVANCED_HAIR
char _pad1 [4] = {}
eParticleType type = PART_EMITTER
eParticleFrom from = PART_FROM_FACE
eParticleDistribution distr = PART_DISTR_JIT
short texact = 0
eParticlePhysicsType phystype = PART_PHYS_NEWTON
eParticleRotationMode rotmode = PART_ROT_VEL
eParticleAngularVelocityMode avemode = PART_AVE_VELOCITY
eParticleReactEvent reactevent = PART_EVENT_DEATH
eParticleDrawFlag draw = {}
float draw_size = 0.1f
eParticleDrawAs draw_as = PART_DRAW_REND
eParticleChildType childtype = {}
char _pad2 [4] = {}
eParticleDrawAs ren_as = PART_DRAW_HALO
short subframes = 0
eParticleDrawCol draw_col = PART_DRAW_COL_MAT
short draw_step = 2
short ren_step = 3
short hair_step = 5
short keys_step = 5
short adapt_angle = 5
short adapt_pix = 3
short disp = 100
short omat = 1
short interpolation = 0
eParticleIntegrator integrator = PART_INT_MIDPOINT
DNA_DEPRECATED short rotfrom = 0
eParticleKink kink = PART_KINK_NO
short kink_axis = 2
DNA_DEPRECATED short bb_align = 0
DNA_DEPRECATED short bb_uv_split = 1
DNA_DEPRECATED short bb_anim = 0
DNA_DEPRECATED short bb_split_offset = 0
DNA_DEPRECATED float bb_tilt = 0
DNA_DEPRECATED float bb_rand_tilt = 0
DNA_DEPRECATED float bb_offset [2] = {}
DNA_DEPRECATED float bb_size [2] = {1.0f, 1.0f}
DNA_DEPRECATED float bb_vel_head = 0
DNA_DEPRECATED float bb_vel_tail = 0
float color_vec_max = 1.0f
float sta = 1.0f
float end = 200.0f
float lifetime = 50.0f
float randlife = 0
float timetweak = 1.0f
float courant_target = 0.2f
float jitfac = 1.0f
float eff_hair = 0
float grid_rand = 0
float ps_offset [1] = {}
int totpart = 1000
int userjit = 0
int grid_res = 10
int effector_amount = 0
eParticleTimeFlag time_flag = {}
char _pad0 [6] = {}
float normfac = 1.0f
float obfac = 0
float randfac = 0
float partfac = 0
float tanfac = 0
float tanphase = 0
float reactfac = 0
float ob_vel [3] = {}
float avefac = 0
float phasefac = 0
float randrotfac = 0
float randphasefac = 0
float mass = 1.0f
float size = 0.05f
float randsize = 0
float acc [3] = {}
float dragfac = 0
float brownfac = 0
float dampfac = 0
float randlength = 0
eParticleChildFlag child_flag = {}
char _pad3 [4] = {}
int child_percent = 10
int child_render_percent = 100
float parents = 0
float childsize = 1.0f
float childrandsize = 0
float childrad = 0.2f
float childflat = 0.0f
float clumpfac = 0
float clumppow = 0.0f
float kink_amp = 0.2f
float kink_freq = 2.0f
float kink_shape = 0
float kink_flat = 0
float kink_amp_clump = 1.0f
int kink_extra_steps = 4
char _pad4 [4] = {}
float kink_axis_random = 0
float kink_amp_random = 0
float rough1 = 0
float rough1_size = 1.0f
float rough2 = 0
float rough2_size = 1.0f
float rough2_thres = 0
float rough_end = 0
float rough_end_shape = 1.0f
float clength = 1.0f
float clength_thres = 0.0f
float parting_fac = 0
float parting_min = 0
float parting_max = 0
float branch_thres = 0
float draw_line [2]
float path_start = 0.0f
float path_end = 1.0f
int trail_count = 0
int keyed_loops = 1
struct CurveMapping * clumpcurve = nullptr
struct CurveMapping * roughcurve = nullptr
float clump_noise_size = 1.0f
float bending_random = 0
struct MTex * mtex [18] = {}
struct Collection * instance_collection = nullptr
ListBaseT< ParticleDupliWeight > instance_weights = {nullptr, nullptr}
DNA_DEPRECATED struct Collection * force_group = nullptr
struct Object * instance_object = nullptr
struct Object * bb_ob = nullptr
struct PartDeflect * pd = nullptr
struct PartDeflect * pd2 = nullptr
short use_modifier_stack = false
char _pad5 [2] = {}
eParticleShapeFlag shape_flag = PART_SHAPE_CLOSE_TIP
char _pad6 [2] = {}
float twist = 0
char _pad8 [4] = {}
float shape = 0.0f
float rad_root = 1.0f
float rad_tip = 0.0f
float rad_scale = 0.01f
struct CurveMapping * twistcurve = nullptr

Detailed Description

Definition at line 543 of file DNA_particle_types.h.

Member Data Documentation

◆ _pad0

char blender::ParticleSettings::_pad0[6] = {}

Definition at line 605 of file DNA_particle_types.h.

◆ _pad1

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

Definition at line 559 of file DNA_particle_types.h.

◆ _pad2

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

Definition at line 573 of file DNA_particle_types.h.

◆ _pad3

char blender::ParticleSettings::_pad3[4] = {}

Definition at line 620 of file DNA_particle_types.h.

◆ _pad4

char blender::ParticleSettings::_pad4[4] = {}

Definition at line 630 of file DNA_particle_types.h.

◆ _pad5

char blender::ParticleSettings::_pad5[2] = {}

Definition at line 670 of file DNA_particle_types.h.

◆ _pad6

char blender::ParticleSettings::_pad6[2] = {}

Definition at line 674 of file DNA_particle_types.h.

◆ _pad8

char blender::ParticleSettings::_pad8[4] = {}

Definition at line 677 of file DNA_particle_types.h.

◆ acc

float blender::ParticleSettings::acc[3] = {}

◆ adapt_angle

short blender::ParticleSettings::adapt_angle = 5

Definition at line 582 of file DNA_particle_types.h.

◆ adapt_pix

short blender::ParticleSettings::adapt_pix = 3

Definition at line 582 of file DNA_particle_types.h.

◆ adt

struct AnimData* blender::ParticleSettings::adt = nullptr

◆ avefac

float blender::ParticleSettings::avefac = 0

◆ avemode

◆ bb_align

DNA_DEPRECATED short blender::ParticleSettings::bb_align = 0

Definition at line 591 of file DNA_particle_types.h.

◆ bb_anim

DNA_DEPRECATED short blender::ParticleSettings::bb_anim = 0

Definition at line 591 of file DNA_particle_types.h.

◆ bb_ob

struct Object* blender::ParticleSettings::bb_ob = nullptr

Definition at line 664 of file DNA_particle_types.h.

Referenced by blender::particle_settings_foreach_id().

◆ bb_offset

DNA_DEPRECATED float blender::ParticleSettings::bb_offset[2] = {}

Definition at line 592 of file DNA_particle_types.h.

◆ bb_rand_tilt

DNA_DEPRECATED float blender::ParticleSettings::bb_rand_tilt = 0

Definition at line 592 of file DNA_particle_types.h.

◆ bb_size

DNA_DEPRECATED float blender::ParticleSettings::bb_size[2] = {1.0f, 1.0f}

Definition at line 592 of file DNA_particle_types.h.

Referenced by blender::blo_do_versions_250().

◆ bb_split_offset

DNA_DEPRECATED short blender::ParticleSettings::bb_split_offset = 0

Definition at line 591 of file DNA_particle_types.h.

◆ bb_tilt

DNA_DEPRECATED float blender::ParticleSettings::bb_tilt = 0

Definition at line 592 of file DNA_particle_types.h.

◆ bb_uv_split

DNA_DEPRECATED short blender::ParticleSettings::bb_uv_split = 1

Definition at line 591 of file DNA_particle_types.h.

◆ bb_vel_head

DNA_DEPRECATED float blender::ParticleSettings::bb_vel_head = 0

Definition at line 593 of file DNA_particle_types.h.

◆ bb_vel_tail

DNA_DEPRECATED float blender::ParticleSettings::bb_vel_tail = 0

Definition at line 594 of file DNA_particle_types.h.

◆ bending_random

float blender::ParticleSettings::bending_random = 0

Definition at line 656 of file DNA_particle_types.h.

Referenced by blender::hair_create_input_mesh().

◆ boids

◆ branch_thres

float blender::ParticleSettings::branch_thres = 0

Definition at line 642 of file DNA_particle_types.h.

◆ brownfac

float blender::ParticleSettings::brownfac = 0

Definition at line 615 of file DNA_particle_types.h.

Referenced by blender::basic_force_cb().

◆ child_flag

◆ child_percent

◆ child_render_percent

int blender::ParticleSettings::child_render_percent = 100

◆ childflat

float blender::ParticleSettings::childflat = 0.0f

◆ childrad

float blender::ParticleSettings::childrad = 0.2f

◆ childrandsize

float blender::ParticleSettings::childrandsize = 0

Definition at line 622 of file DNA_particle_types.h.

Referenced by blender::psys_get_child_size().

◆ childsize

float blender::ParticleSettings::childsize = 1.0f

Definition at line 622 of file DNA_particle_types.h.

Referenced by blender::psys_get_child_size().

◆ childtype

◆ clength

float blender::ParticleSettings::clength = 1.0f

Definition at line 637 of file DNA_particle_types.h.

Referenced by blender::blo_do_versions_250(), and blender::get_cpa_texture().

◆ clength_thres

float blender::ParticleSettings::clength_thres = 0.0f

Definition at line 637 of file DNA_particle_types.h.

Referenced by blender::get_cpa_texture().

◆ clump_noise_size

float blender::ParticleSettings::clump_noise_size = 1.0f

◆ clumpcurve

◆ clumpfac

float blender::ParticleSettings::clumpfac = 0

Definition at line 625 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ clumppow

float blender::ParticleSettings::clumppow = 0.0f

Definition at line 625 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ collision_group

◆ color_vec_max

float blender::ParticleSettings::color_vec_max = 1.0f

◆ courant_target

float blender::ParticleSettings::courant_target = 0.2f

Definition at line 601 of file DNA_particle_types.h.

Referenced by blender::blo_do_versions_250(), and blender::update_timestep().

◆ dampfac

float blender::ParticleSettings::dampfac = 0

◆ disp

◆ distr

◆ dragfac

float blender::ParticleSettings::dragfac = 0

Definition at line 615 of file DNA_particle_types.h.

Referenced by blender::basic_force_cb().

◆ draw

◆ draw_as

◆ draw_col

◆ draw_line

float blender::ParticleSettings::draw_line[2]
Initial value:
= {
0.5f,
}

Definition at line 644 of file DNA_particle_types.h.

Referenced by blender::blo_do_versions_pre250().

◆ draw_size

float blender::ParticleSettings::draw_size = 0.1f

◆ draw_step

◆ eff_hair

float blender::ParticleSettings::eff_hair = 0

Definition at line 602 of file DNA_particle_types.h.

Referenced by blender::do_path_effectors().

◆ effector_amount

int blender::ParticleSettings::effector_amount = 0

Definition at line 603 of file DNA_particle_types.h.

Referenced by blender::get_effector_tot().

◆ effector_weights

◆ end

◆ flag

◆ fluid

◆ force_group

◆ from

eParticleFrom blender::ParticleSettings::from = PART_FROM_FACE

Definition at line 561 of file DNA_particle_types.h.

Referenced by blender::blo_do_versions_pre250(), blender::brush_add(), blender::brush_edit_apply(), blender::brush_puff(), blender::io::hydra::build_hair_data(), blender::createFacepa(), blender::ed::transform::createTransParticleVerts(), blender::deflect_emitter_iter(), blender::disconnect_hair(), blender::distribute_grid(), blender::exec_distribute_parent(), blender::ed::transform::flushTransParticles(), blender::foreach_mouse_hit_key_iter(), blender::get_cpa_texture(), blender::hair_create_input_mesh(), blender::initialize_all_particles(), blender::draw::interpolate_face_corner_attribute_to_curve(), blender::mirror_poll(), blender::modify_mesh(), 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_system_update(), blender::PE_lasso_select(), blender::PE_minmax(), blender::PE_mirror_particle(), blender::PE_update_mirror_cache(), blender::precalc_guides(), blender::psys_apply_hair_lattice(), blender::psys_cache_edit_paths_iter(), blender::psys_cache_paths(), blender::psys_calc_dmcache(), blender::psys_get_birth_coords(), blender::psys_get_dupli_path_transform(), blender::psys_get_dupli_texture(), blender::psys_get_particle_on_path(), blender::psys_get_texture(), blender::psys_particle_on_emitter(), blender::psys_thread_context_init_distribute(), blender::psys_thread_create_path(), blender::realloc_particles(), blender::remap_hair_emitter(), blender::remove_doubles_exec(), blender::system_step(), blender::tessfaceidx_on_emitter(), blender::tot_particles(), and blender::update_world_cos().

◆ grid_rand

float blender::ParticleSettings::grid_rand = 0

Definition at line 602 of file DNA_particle_types.h.

Referenced by blender::distribute_grid().

◆ grid_res

int blender::ParticleSettings::grid_res = 10

◆ hair_step

short blender::ParticleSettings::hair_step = 5

◆ id

◆ instance_collection

◆ instance_object

◆ instance_weights

◆ integrator

eParticleIntegrator blender::ParticleSettings::integrator = PART_INT_MIDPOINT

Definition at line 585 of file DNA_particle_types.h.

Referenced by blender::integrate_particle().

◆ interpolation

short blender::ParticleSettings::interpolation = 0

Definition at line 584 of file DNA_particle_types.h.

◆ jitfac

float blender::ParticleSettings::jitfac = 1.0f

Definition at line 602 of file DNA_particle_types.h.

Referenced by blender::psys_thread_context_init_distribute().

◆ keyed_loops

int blender::ParticleSettings::keyed_loops = 1

Definition at line 650 of file DNA_particle_types.h.

Referenced by blender::psys_count_keyed_targets().

◆ keys_step

short blender::ParticleSettings::keys_step = 5

Definition at line 579 of file DNA_particle_types.h.

◆ kink

◆ kink_amp

float blender::ParticleSettings::kink_amp = 0.2f

Definition at line 627 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers(), and blender::do_kink_spiral().

◆ kink_amp_clump

float blender::ParticleSettings::kink_amp_clump = 1.0f

◆ kink_amp_random

float blender::ParticleSettings::kink_amp_random = 0

Definition at line 631 of file DNA_particle_types.h.

Referenced by blender::do_kink_spiral().

◆ kink_axis

short blender::ParticleSettings::kink_axis = 2

Definition at line 588 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers(), and blender::do_kink_spiral().

◆ kink_axis_random

float blender::ParticleSettings::kink_axis_random = 0

Definition at line 631 of file DNA_particle_types.h.

Referenced by blender::do_kink_spiral().

◆ kink_extra_steps

int blender::ParticleSettings::kink_extra_steps = 4

◆ kink_flat

float blender::ParticleSettings::kink_flat = 0

Definition at line 627 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ kink_freq

float blender::ParticleSettings::kink_freq = 2.0f

Definition at line 627 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers(), and blender::do_kink_spiral().

◆ kink_shape

float blender::ParticleSettings::kink_shape = 0

Definition at line 627 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers(), and blender::do_kink_spiral().

◆ lifetime

◆ mass

◆ mtex

◆ normfac

float blender::ParticleSettings::normfac = 1.0f

◆ ob_vel

float blender::ParticleSettings::ob_vel[3] = {}

Definition at line 610 of file DNA_particle_types.h.

Referenced by blender::psys_get_birth_coords().

◆ obfac

float blender::ParticleSettings::obfac = 0

◆ omat

◆ parents

◆ partfac

float blender::ParticleSettings::partfac = 0

Definition at line 608 of file DNA_particle_types.h.

Referenced by blender::psys_get_birth_coords().

◆ parting_fac

float blender::ParticleSettings::parting_fac = 0

Definition at line 639 of file DNA_particle_types.h.

Referenced by blender::psys_thread_create_path().

◆ parting_max

float blender::ParticleSettings::parting_max = 0

Definition at line 640 of file DNA_particle_types.h.

Referenced by blender::psys_thread_create_path().

◆ parting_min

float blender::ParticleSettings::parting_min = 0

Definition at line 640 of file DNA_particle_types.h.

Referenced by blender::psys_thread_create_path().

◆ path_end

float blender::ParticleSettings::path_end = 1.0f

◆ path_start

float blender::ParticleSettings::path_start = 0.0f

Definition at line 647 of file DNA_particle_types.h.

Referenced by blender::psys_cache_paths(), and blender::psys_changed_type().

◆ pd

◆ pd2

◆ phasefac

float blender::ParticleSettings::phasefac = 0

◆ phystype

◆ ps_offset

float blender::ParticleSettings::ps_offset[1] = {}

Definition at line 602 of file DNA_particle_types.h.

◆ rad_root

float blender::ParticleSettings::rad_root = 1.0f

◆ rad_scale

float blender::ParticleSettings::rad_scale = 0.01f

◆ rad_tip

float blender::ParticleSettings::rad_tip = 0.0f

◆ randfac

float blender::ParticleSettings::randfac = 0

◆ randlength

float blender::ParticleSettings::randlength = 0

Definition at line 617 of file DNA_particle_types.h.

Referenced by blender::get_cpa_texture(), and blender::psys_cache_paths().

◆ randlife

float blender::ParticleSettings::randlife = 0

◆ randphasefac

float blender::ParticleSettings::randphasefac = 0

◆ randrotfac

float blender::ParticleSettings::randrotfac = 0

Definition at line 611 of file DNA_particle_types.h.

Referenced by blender::psys_get_birth_coords().

◆ randsize

◆ reactevent

eParticleReactEvent blender::ParticleSettings::reactevent = PART_EVENT_DEATH

Definition at line 568 of file DNA_particle_types.h.

◆ reactfac

float blender::ParticleSettings::reactfac = 0

Definition at line 609 of file DNA_particle_types.h.

◆ ren_as

◆ ren_step

short blender::ParticleSettings::ren_step = 3

◆ rotfrom

DNA_DEPRECATED short blender::ParticleSettings::rotfrom = 0

Definition at line 586 of file DNA_particle_types.h.

◆ rotmode

◆ rough1

float blender::ParticleSettings::rough1 = 0

Definition at line 633 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough1_size

float blender::ParticleSettings::rough1_size = 1.0f

Definition at line 633 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough2

float blender::ParticleSettings::rough2 = 0

Definition at line 634 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough2_size

float blender::ParticleSettings::rough2_size = 1.0f

Definition at line 634 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough2_thres

float blender::ParticleSettings::rough2_thres = 0

Definition at line 634 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough_end

float blender::ParticleSettings::rough_end = 0

Definition at line 635 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ rough_end_shape

float blender::ParticleSettings::rough_end_shape = 1.0f

Definition at line 635 of file DNA_particle_types.h.

Referenced by blender::do_child_modifiers().

◆ roughcurve

◆ shape

◆ shape_flag

◆ size

◆ sta

◆ subframes

short blender::ParticleSettings::subframes = 0

Definition at line 575 of file DNA_particle_types.h.

Referenced by blender::get_base_time_step().

◆ tanfac

float blender::ParticleSettings::tanfac = 0

◆ tanphase

float blender::ParticleSettings::tanphase = 0

Definition at line 608 of file DNA_particle_types.h.

Referenced by blender::psys_get_birth_coords().

◆ texact

◆ time_flag

◆ timetweak

◆ totpart

◆ trail_count

int blender::ParticleSettings::trail_count = 0

Definition at line 648 of file DNA_particle_types.h.

Referenced by blender::particle_settings_blend_read_data().

◆ twist

float blender::ParticleSettings::twist = 0

Definition at line 676 of file DNA_particle_types.h.

Referenced by blender::do_twist().

◆ twistcurve

◆ type

eParticleType blender::ParticleSettings::type = PART_EMITTER

Definition at line 560 of file DNA_particle_types.h.

Referenced by blender::basic_force_cb(), blender::basic_integrate(), blender::BKE_particle_co_hair(), blender::BKE_ptcache_bake(), blender::BKE_ptcache_id_from_particles(), blender::BKE_ptcache_object_reset(), blender::blo_do_versions_290(), blender::blo_do_versions_pre250(), blender::deg::DepsgraphRelationBuilder::build_particle_systems(), blender::disconnect_hair(), blender::dynamics_step(), blender::io::hydra::emit_hair_for_object(), blender::io::hydra::emit_hair_proto(), blender::free_keyed_keys(), blender::hair_step(), blender::init_particle_texture(), blender::make_duplis_particle_system(), blender::ed::object::modifier_apply_obdata(), blender::object_foreach_path_particles(), blender::object_remove_particle_system(), ObtainCacheParticleData(), ObtainCacheParticleUV(), ObtainCacheParticleVcol(), blender::particle_system_update(), blender::particles_are_dynamic(), blender::particles_fluid_step(), blender::ed::curves::convert_from_particle_system::particles_to_curves(), blender::pe_get_current(), blender::PE_get_current_from_psys(), blender::PE_update_object(), blender::psys_cache_paths(), blender::psys_changed_type(), blender::psys_check_edited(), blender::psys_free_particles(), blender::psys_get_particle_on_path(), blender::psys_thread_context_init_distribute(), blender::psys_update_path_cache(), blender::remap_hair_emitter(), blender::reset_particle(), blender::system_step(), blender::tessfaceidx_on_emitter(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), and blender::update_children().

◆ use_modifier_stack

◆ userjit

int blender::ParticleSettings::userjit = 0

Definition at line 603 of file DNA_particle_types.h.

Referenced by blender::psys_thread_context_init_distribute().


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