Blender V5.0
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 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 486 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(), BKE_id_attributes_active_color_name(), BKE_id_attributes_active_color_set(), BKE_id_attributes_default_color_name(), BKE_id_attributes_default_color_set(), BKE_key_sort(), BKE_mesh_new_nomain(), BKE_mesh_nomain_to_mesh(), BKE_object_apply_mat4_ex(), BKE_object_free_derived_caches(), BKE_objects_materials_sync_length_all(), BKE_report(), BKE_reportf(), C, CD_CONSTRUCT, CD_GRID_PAINT_MASK, CD_MDISPS, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), Mesh::corner_data, Mesh::corners_num, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_ensure_evaluated_depsgraph(), CTX_data_main(), CTX_data_scene(), CustomData_add_layer(), CustomData_copy_elements(), CustomData_get_layer(), blender::Vector< T, InlineBufferCapacity, Allocator >::data(), data, Object::data, DEG_id_tag_update(), DEG_relations_tag_update(), depsgraph, blender::IndexRange::drop_front(), ELEM, blender::Vector< T, InlineBufferCapacity, Allocator >::end(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::extract_vector(), Mesh::faces_num, get_multires_modifier(), i, Mesh::id, Object::id, Scene::id, ID_RECALC_GEOMETRY, ID_RECALC_SELECT, ID_RECALC_TRANSFORM, id_us_min(), id_us_plus(), blender::IndexRange::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), invert_m4_m4_safe_ortho(), blender::ed::object::iter_other(), join_face_sets(), join_generic_attributes(), join_materials(), join_normals(), join_positions(), join_shape_keys(), join_vertex_groups(), Mesh::key, KEY_RELATIVE, blender::MutableSpan< T >::last(), Mesh::mat, Object::mat, Object::matbits, MEM_calloc_arrayN(), MEM_SAFE_FREE, MESH_MAX_VERTS, Object::mode, blender::ed::object::multires_update_totlevels(), multiresModifier_prepare_join(), NC_SCENE, ND_LAYER_CONTENT, ND_OB_ACTIVE, OB_MESH, OB_MODE_EDIT, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::parent, 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(), wmOperator::reports, 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(), Mesh::totcol, Object::totcol, Object::type, Mesh::verts_num, and WM_event_add_notifier().

Referenced by 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()

◆ join_vertex_groups()

◆ mesh_active_attribute_poll()

bool blender::ed::mesh::mesh_active_attribute_poll ( bContext * C)
static

◆ MESH_OT_set_sharpness_by_angle()

◆ set_sharpness_by_angle_exec()