|
Blender V5.3
|
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) |
|
static |
Definition at line 47 of file editmesh_attribute.cc.
References BLI_assert_unreachable, blender::BM_EDGE, blender::BM_FACE, blender::BM_LOOP, blender::BM_VERT, blender::bke::Corner, domain_to_htype(), blender::bke::Edge, blender::bke::Face, and blender::bke::Point.
Referenced by domain_to_htype(), and blender::ed::mesh::set_attribute::mesh_set_attribute_invoke().
|
static |
Definition at line 478 of file mesh_join.cc.
References blender::blender::Span< T >::begin(), blender::Span< T >::begin(), blender::Object::data, blender::Span< T >::end(), blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexRange::index_range(), blender::Span< T >::index_range(), blender::blender::Span< T >::is_empty(), join_face_sets(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::IndexRange::size(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by join_face_sets(), and join_objects_exec().
|
static |
Definition at line 322 of file mesh_join.cc.
References blender::bke::GeometrySet::GatheredAttributes::add(), BLI_assert_unreachable, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::Corner, blender::data, blender::GMutableSpan::data(), blender::bke::Edge, blender::bke::Face, blender::bke::GSpanAttributeWriter::finish(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), join_generic_attributes(), blender::bke::GeometrySet::GatheredAttributes::kinds, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::AttributeAccessor::lookup_or_default(), blender::GVArrayCommon::materialize(), blender::bke::AttributeIter::name, blender::bke::GeometrySet::GatheredAttributes::names, blender::bke::Point, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::GMutableSpan::slice(), blender::bke::GSpanAttributeWriter::span, and try_join_single_value_attribute().
Referenced by join_generic_attributes(), and join_objects_exec().
|
static |
Definition at line 400 of file mesh_join.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_object_material_get(), blender::BLI_assert(), blender::bke::AttributeAccessor::contains(), blender::Object::data, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_try(), blender::IndexRange::index_range(), blender::Span< T >::index_range(), blender::VArrayCommon< T >::is_empty(), join_materials(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::VArrayCommon< T >::materialize(), max, MAXMAT, blender::nullptr, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::bke::SpanAttributeWriter< T >::span, and blender::Mesh::totcol.
Referenced by join_materials(), and join_objects_exec().
|
static |
Definition at line 120 of file mesh_join.cc.
References blender::bke::mesh::NormalJoinInfo::add_mesh(), BLI_assert_unreachable, blender::bke::Corner, blender::bke::mesh::NormalJoinInfo::CornerFan, blender::bke::cpp_type_to_attribute_type(), blender::Object::data, blender::bke::GAttributeReader::domain, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::mesh::NormalJoinInfo::Free, blender::Span< T >::index_range(), blender::bke::mesh::is_corner_fan_normals(), join_normals(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::mesh::NormalJoinInfo::None, blender::bke::Point, blender::bke::mesh::NormalJoinInfo::result_domain, blender::bke::mesh::NormalJoinInfo::result_type, blender::bke::SpanAttributeWriter< T >::span, blender::math::transform_normals(), blender::GVArrayCommon::type(), blender::bke::GAttributeReader::typed(), and blender::bke::GAttributeReader::varray.
Referenced by join_normals(), and 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().
|
static |
Definition at line 104 of file mesh_join.cc.
References blender::Object::data, blender::Span< T >::index_range(), join_positions(), blender::MutableSpan< T >::slice(), and blender::math::transform_points().
Referenced by join_objects_exec(), and join_positions().
|
static |
Definition at line 192 of file mesh_join.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_key_add(), blender::BKE_keyblock_add(), blender::BKE_keyblock_copy_settings(), blender::BKE_keyblock_find_name(), blender::BLI_findlink(), blender::Key::block, blender::MutableSpan< T >::copy_from(), blender::data, blender::KeyBlock::data, blender::Object::data, blender::IndexRange::drop_front(), blender::Mesh::id, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_as(), blender::Span< T >::index_range(), join_shape_keys(), blender::Mesh::key, blender::KEY_RELATIVE, blender::MEM_new_array_uninitialized(), MEM_realloc_uninitialized, blender::KeyBlock::name, blender::KeyBlock::relative, blender::IndexRange::size(), blender::MutableSpan< T >::slice(), blender::MutableSpan< T >::take_front(), blender::offset_indices::OffsetIndices< T >::total_size(), blender::KeyBlock::totelem, blender::math::transform_points(), and blender::Key::type.
Referenced by join_objects_exec(), and join_shape_keys().
|
static |
Definition at line 58 of file mesh_join.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_defgroup_duplicate(), blender::BLI_addtail(), blender::CD_CONSTRUCT, blender::CD_MDEFORMVERT, blender::CustomData_add_layer(), blender::data, blender::MDeformWeight::def_nr, blender::MDeformVert::dw, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_as(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), blender::Span< T >::is_empty(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), join_vertex_groups(), blender::MEM_new_array_uninitialized(), blender::bDeformGroup::name, blender::MDeformVert::totweight, blender::Mesh::vert_data, blender::Mesh::vertex_group_names, blender::Mesh::verts_num, and blender::MDeformWeight::weight.
Referenced by join_objects_exec(), and join_vertex_groups().
|
static |
Definition at line 64 of file editmesh_attribute.cc.
References blender::ed::geometry::attribute_set_poll(), C, blender::ED_mesh_context(), blender::ED_operator_editmesh(), and mesh_active_attribute_poll().
Referenced by mesh_active_attribute_poll(), and blender::MESH_OT_attribute_set().
| void blender::ed::mesh::MESH_OT_set_sharpness_by_angle | ( | wmOperatorType * | ot | ) |
Definition at line 75 of file editmesh_set_sharpness_by_angle.cc.
References blender::wmOperatorType::description, blender::ED_operator_editmesh(), blender::wmOperatorType::exec, blender::wmOperatorType::flag, blender::math::AngleRadianBase< float >::from_degree(), blender::wmOperatorType::idname, MESH_OT_set_sharpness_by_angle(), blender::wmOperatorType::name, blender::OPTYPE_REGISTER, blender::OPTYPE_UNDO, blender::wmOperatorType::poll, blender::RNA_def_boolean(), blender::RNA_def_float_rotation(), blender::RNA_def_property_float_default(), set_sharpness_by_angle_exec(), and blender::wmOperatorType::srna.
Referenced by blender::ED_operatortypes_mesh(), and MESH_OT_set_sharpness_by_angle().
|
static |
Definition at line 32 of file editmesh_set_sharpness_by_angle.cc.
References blender::BKE_editmesh_bmesh_get_for_write(), blender::BKE_editmesh_lnorspace_update(), blender::BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), blender::bm, blender::BM_edge_loop_pair(), blender::BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, blender::BM_ELEM_SELECT, blender::BM_ELEM_SMOOTH, BM_ITER_MESH, C, blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::CTX_wm_view3d(), blender::DEG_id_tag_update(), blender::math::dot(), blender::e, blender::BMLoop::f, blender::ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, blender::BMFace::no, blender::OPERATOR_FINISHED, blender::wmOperator::ptr, blender::RNA_boolean_get(), blender::RNA_float_get(), set_sharpness_by_angle_exec(), and blender::WM_event_add_notifier().
Referenced by MESH_OT_set_sharpness_by_angle(), and set_sharpness_by_angle_exec().
|
static |
Definition at line 273 of file mesh_join.cc.
References blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::data, blender::IndexRange::drop_front(), blender::Span< T >::first(), blender::GPointer::get(), blender::GPointer::GPointer(), blender::Span< T >::index_range(), blender::CPPType::is_equal(), blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_reduce(), blender::CommonVArrayInfo::Single, blender::bke::String, try_join_single_value_attribute(), blender::CommonVArrayInfo::type, blender::GPointer::type(), and blender::GVArrayCommon::type().
Referenced by join_generic_attributes(), and try_join_single_value_attribute().