|
Blender V5.3
|
#include <BKE_attribute_legacy_convert.hh>
Public Member Functions | |
| LegacyMeshInterpolator (const Mesh &src, Mesh &dst, AttrDomain domain) | |
| void | copy (int src_index, int dst_index, int count) const |
| void | mix (Span< int > src_indices, std::optional< Span< float > > weights, int dst_index) const |
Abstraction for copying CustomData layers and AttributeStorage attributes.
Definition at line 62 of file BKE_attribute_legacy_convert.hh.
| blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator | ( | const Mesh & | src, |
| Mesh & | dst, | ||
| AttrDomain | domain ) |
Definition at line 306 of file attribute_legacy_convert.cc.
References blender::bke::Array, blender::Mesh::attribute_storage, blender::bke::attribute_type_to_cpp_type(), blender::bke::Attribute::data_for_write(), blender::bke::Attribute::data_type(), blender::bke::Attribute::domain(), blender::GVArray::from_single_ref(), blender::GVArray::from_span(), blender::bke::get_custom_data(), blender::bke::get_domain_size(), blender::bke::AttributeStorage::lookup(), blender::bke::Single, and blender::bke::Attribute::storage_type().
| void blender::bke::LegacyMeshInterpolator::copy | ( | int | src_index, |
| int | dst_index, | ||
| int | count ) const |
Definition at line 348 of file attribute_legacy_convert.cc.
References blender::CPPType::copy_construct_compressed(), blender::CustomData_copy_data(), blender::GSpan::data(), and blender::GSpan::type().
Referenced by blender::add_interp_verts_copy_edges_to_new_mesh(), blender::add_interpolated_faces_to_new_mesh(), blender::arrayModifier_doArray(), blender::BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), blender::copy_masked_edges_to_new_mesh(), blender::copy_masked_faces_to_new_mesh(), blender::copy_masked_verts_to_new_mesh(), blender::cutEdges(), blender::explodeMesh(), blender::mesh_merge_transform(), blender::MOD_solidify_extrude_modifyMesh(), blender::MOD_solidify_nonmanifold_modifyMesh(), blender::modify_mesh(), blender::modify_mesh(), and blender::subdivide_base().
| void blender::bke::LegacyMeshInterpolator::mix | ( | Span< int > | src_indices, |
| std::optional< Span< float > > | weights, | ||
| int | dst_index ) const |
Definition at line 361 of file attribute_legacy_convert.cc.
References blender::CustomData_interp(), blender::Span< T >::data(), blender::bke::attribute_math::mix_indices(), blender::Span< T >::size(), T, and blender::bke::attribute_math::to_static_type().
Referenced by blender::add_interp_verts_copy_edges_to_new_mesh(), and blender::add_interpolated_faces_to_new_mesh().