Blender V5.3
blender::ed::curves::convert_to_particle_system Namespace Reference

Functions

static int find_mface_for_root_position (const Span< float3 > positions, const MFace *mface, const Span< int > possible_mface_indices, const float3 &root_pos)
static float4 compute_mface_weights_for_position (const Span< float3 > positions, const MFace &mface, const float3 &position)
static void try_convert_single_object (Object &curves_ob, Main &bmain, Scene &scene, bool *r_could_not_convert_some_curves)
static wmOperatorStatus curves_convert_to_particle_system_exec (bContext *C, wmOperator *op)

Function Documentation

◆ compute_mface_weights_for_position()

float4 blender::ed::curves::convert_to_particle_system::compute_mface_weights_for_position ( const Span< float3 > positions,
const MFace & mface,
const float3 & position )
static

◆ curves_convert_to_particle_system_exec()

◆ find_mface_for_root_position()

int blender::ed::curves::convert_to_particle_system::find_mface_for_root_position ( const Span< float3 > positions,
const MFace * mface,
const Span< int > possible_mface_indices,
const float3 & root_pos )
static

◆ try_convert_single_object()

void blender::ed::curves::convert_to_particle_system::try_convert_single_object ( Object & curves_ob,
Main & bmain,
Scene & scene,
bool * r_could_not_convert_some_curves )
static

Definition at line 262 of file curves_ops.cc.

References blender::BKE_mesh_tessface_calc(), blender::BLI_assert(), blender::CD_MFACE, blender::CD_ORIGINDEX, blender::bke::bvh::Tree::closest_point(), blender::HairKey::co, compute_mface_weights_for_position(), blender::copy_v3_v3(), blender::copy_v4_v4(), blender::bke::CurvesSurfaceTransforms::curves_to_surface, blender::CustomData_get_layer(), blender::MutableSpan< T >::data(), blender::Object::data, blender::DEG_id_tag_update(), DMCACHE_NOTFOUND, blender::ParticleSettings::draw_step, blender::Mesh::faces_num, blender::Mesh::fdata_legacy, find_mface_for_root_position(), blender::IndexRange::first(), blender::ParticleSystem::flag, float, blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::ParticleData::fuv, blender::ParticleData::hair, blender::Object::id, blender::ParticleSettings::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_PSYS_RESET, blender::ID_RECALC_SYNC_TO_EVAL, blender::MutableSpan< T >::index_range(), blender::Span< T >::index_range(), blender::math::invert(), blender::Span< T >::is_empty(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::MEM_new_array_zeroed(), blender::ID::name, blender::ParticleSystem::name, blender::ParticleData::num, blender::ParticleData::num_dmcache, blender::OB_CURVES, blender::OB_MESH, blender::object_add_particle_system(), blender::ParticleSystem::part, blender::PART_FROM_FACE, blender::PART_HAIR, blender::ParticleSystem::particles, blender::Object::particlesystem, blender::ParticleSystemModifierData::psys, blender::psys_changed_type(), blender::PSYS_EDITED, blender::psys_free_particles(), blender::psys_mat_hair_to_object(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::ParticleSystem::recalc, blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::MutableSpan< T >::size(), STREQ, blender::HairKey::time, blender::Mesh::totface_legacy, blender::ParticleData::totkey, blender::ParticleSettings::totpart, blender::ParticleSystem::totpart, blender::math::transform_point(), try_convert_single_object(), blender::Object::type, blender::ParticleSettings::type, and blender::HairKey::weight.

Referenced by curves_convert_to_particle_system_exec(), and try_convert_single_object().