Lines Matching refs:totpart

83   int totpart = psys_get_tot_child(scene, psys, use_render_params);  in distribute_simple_children()  local
86 alloc_child_particles(psys, totpart); in distribute_simple_children()
90 for (p = 0; p < psys->totpart; p++, cpa++) { in distribute_simple_children()
323 for (p = 0, pa = psys->particles; p < psys->totpart; p++, pa++) { in distribute_grid()
896 int totelem = 0, totpart, *particle_element = 0, children = 0, totseam = 0; in psys_thread_context_init_distribute() local
907 totpart = psys->totpart; in psys_thread_context_init_distribute()
908 if (totpart == 0) { in psys_thread_context_init_distribute()
970 tree = BLI_kdtree_3d_new(totpart); in psys_thread_context_init_distribute()
972 for (p = 0, pa = psys->particles; p < totpart; p++, pa++) { in psys_thread_context_init_distribute()
981 totpart = psys_get_tot_child(scene, psys, use_render_params); in psys_thread_context_init_distribute()
1049 particle_element = MEM_callocN(sizeof(int) * totpart, "particle_distribution_indexes"); in psys_thread_context_init_distribute()
1106 float min = 1.0f / (float)(MIN2(totelem, totpart)); in psys_thread_context_init_distribute()
1196 for (p = 0; p < totpart; p++) { in psys_thread_context_init_distribute()
1210 step = (totpart < 2) ? 0.5 : 1.0 / (double)totpart; in psys_thread_context_init_distribute()
1218 pos = (totpart < totmapped) ? 0.5 / (double)totmapped : in psys_thread_context_init_distribute()
1221 for (i = 0, p = 0; p < totpart; p++, pos += step) { in psys_thread_context_init_distribute()
1253 particle_element, totpart, sizeof(int), distribute_compare_orig_index, orig_index); in psys_thread_context_init_distribute()
1262 jitlevel = totpart / totelem; in psys_thread_context_init_distribute()
1303 alloc_child_particles(psys, totpart); in psys_thread_context_init_distribute()
1325 int i, totpart, numtasks; in distribute_particles_on_dm() local
1334 totpart = (from == PART_FROM_CHILD ? sim->psys->totchild : sim->psys->totpart); in distribute_particles_on_dm()
1335 psys_tasks_create(&ctx, 0, totpart, &tasks, &numtasks); in distribute_particles_on_dm()