Blender V5.3
blender::ed::mesh Namespace Reference

Namespaces

namespace  set_attribute

Functions

wmOperatorStatus join_objects_exec (bContext *C, wmOperator *op)
static char domain_to_htype (const bke::AttrDomain domain)
static bool mesh_active_attribute_poll (bContext *C)
static wmOperatorStatus set_sharpness_by_angle_exec (bContext *C, wmOperator *op)
void MESH_OT_set_sharpness_by_angle (wmOperatorType *ot)
static VectorSet< std::string > join_vertex_groups (const Span< const Object * > objects_to_join, const OffsetIndices< int > vert_ranges, Mesh &dst_mesh)
static void join_positions (const Span< const Object * > objects_to_join, const OffsetIndices< int > vert_ranges, const float4x4 &world_to_dst_mesh, Mesh &dst_mesh)
static void join_normals (const Span< const Object * > objects_to_join, const OffsetIndices< int > vert_ranges, const OffsetIndices< int > face_ranges, const OffsetIndices< int > corner_ranges, const float4x4 &world_to_dst_mesh, Mesh &dst_mesh)
static void join_shape_keys (Main *bmain, const Span< const Object * > objects_to_join, const OffsetIndices< int > vert_ranges, const float4x4 &world_to_active_mesh, Mesh &active_mesh)
static bool try_join_single_value_attribute (const Span< const Object * > objects_to_join, const StringRef name, const bke::AttrDomain domain, const bke::AttrType data_type, bke::MutableAttributeAccessor dst_attributes)
static void join_generic_attributes (const Span< const Object * > objects_to_join, const VectorSet< std::string > &all_vertex_group_names, const OffsetIndices< int > vert_ranges, const OffsetIndices< int > edge_ranges, const OffsetIndices< int > face_ranges, const OffsetIndices< int > corner_ranges, Mesh &dst_mesh)
static VectorSet< Material * > join_materials (const Span< const Object * > objects_to_join, const OffsetIndices< int > face_ranges, Mesh &dst_mesh)
static void join_face_sets (const Span< const Object * > objects_to_join, const OffsetIndices< int > face_ranges, Mesh &dst_mesh)

Function Documentation

◆ domain_to_htype()

◆ join_face_sets()

◆ join_generic_attributes()

void blender::ed::mesh::join_generic_attributes ( const Span< const Object * > objects_to_join,
const VectorSet< std::string > & all_vertex_group_names,
const OffsetIndices< int > vert_ranges,
const OffsetIndices< int > edge_ranges,
const OffsetIndices< int > face_ranges,
const OffsetIndices< int > corner_ranges,
Mesh & dst_mesh )
static

◆ join_materials()

◆ join_normals()

◆ join_objects_exec()

wmOperatorStatus blender::ed::mesh::join_objects_exec ( bContext * C,
wmOperator * op )

Definition at line 523 of file mesh_join.cc.

References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::as_span(), blender::ed::object::base_free_and_unlink(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::BKE_key_sort(), blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::BKE_mesh_nomain_to_mesh(), blender::BKE_object_apply_mat4_ex(), blender::BKE_object_free_derived_caches(), blender::BKE_objects_materials_sync_length_all(), blender::BKE_report(), blender::BKE_reportf(), C, blender::CD_CONSTRUCT, blender::CD_GRID_PAINT_MASK, blender::CD_MDISPS, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), blender::Mesh::corner_data, blender::Mesh::corners_num, blender::CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, blender::CTX_data_ensure_evaluated_depsgraph(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CustomData_add_layer(), blender::CustomData_copy_elements(), blender::CustomData_get_layer(), blender::data, blender::Object::data, blender::DEG_id_tag_update(), blender::DEG_relations_tag_update(), blender::IndexRange::drop_front(), ELEM, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::extract_vector(), blender::Mesh::faces_num, blender::get_multires_modifier(), blender::Mesh::id, blender::Object::id, blender::Scene::id, blender::ID_RECALC_GEOMETRY, blender::ID_RECALC_SELECT, blender::ID_RECALC_TRANSFORM, blender::id_us_min(), blender::id_us_plus(), blender::IndexRange::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::invert_m4_m4_safe_ortho(), blender::ed::object::iter_other(), join_face_sets(), join_generic_attributes(), join_materials(), join_normals(), join_objects_exec(), join_positions(), join_shape_keys(), join_vertex_groups(), blender::Mesh::key, blender::KEY_RELATIVE, blender::MutableSpan< T >::last(), blender::Mesh::mat, blender::Object::mat, blender::Object::matbits, blender::MEM_new_array_zeroed(), MESH_MAX_VERTS, blender::Object::mode, blender::ed::object::multires_update_totlevels(), blender::multiresModifier_prepare_join(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, blender::OB_MESH, blender::OB_MODE_EDIT, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, blender::Object::parent, blender::Object::parentinv, blender::Vector< T, InlineBufferCapacity, Allocator >::prepend(), blender::MatBase< T, NumCol, NumRow, Alignment >::ptr(), blender::Vector< T, InlineBufferCapacity, Allocator >::release(), blender::Vector< T, InlineBufferCapacity, Allocator >::remove(), blender::wmOperator::reports, blender::RPT_WARNING, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::offset_indices::OffsetIndices< T >::total_size(), blender::Mesh::totcol, blender::Object::totcol, blender::Object::type, blender::Mesh::vertex_group_names, blender::Mesh::verts_num, and blender::WM_event_add_notifier().

Referenced by join_objects_exec(), and blender::ed::object::object_join_exec().

◆ join_positions()

void blender::ed::mesh::join_positions ( const Span< const Object * > objects_to_join,
const OffsetIndices< int > vert_ranges,
const float4x4 & world_to_dst_mesh,
Mesh & dst_mesh )
static

◆ join_shape_keys()

void blender::ed::mesh::join_shape_keys ( Main * bmain,
const Span< const Object * > objects_to_join,
const OffsetIndices< int > vert_ranges,
const float4x4 & world_to_active_mesh,
Mesh & active_mesh )
static

◆ join_vertex_groups()

◆ mesh_active_attribute_poll()

◆ MESH_OT_set_sharpness_by_angle()

◆ set_sharpness_by_angle_exec()

◆ try_join_single_value_attribute()