|
Blender V5.0
|
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) |
|
static |
Definition at line 47 of file editmesh_attribute.cc.
References BLI_assert_unreachable, BM_EDGE, BM_FACE, BM_LOOP, BM_VERT, blender::bke::Corner, blender::bke::Edge, blender::bke::Face, and blender::bke::Point.
Referenced by blender::ed::mesh::set_attribute::mesh_set_attribute_invoke().
|
static |
Definition at line 443 of file mesh_join.cc.
References Geometry::attributes, blender::Span< T >::begin(), Object::data, blender::Span< T >::end(), blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), i, blender::IndexRange::index_range(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), 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_objects_exec().
|
static |
Definition at line 274 of file mesh_join.cc.
References blender::bke::GeometrySet::GatheredAttributes::add(), blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeAccessor::all_ids(), Geometry::attributes, BLI_assert_unreachable, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::ed::geometry::convert_attribute(), blender::bke::Corner, blender::GMutableSpan::data(), blender::Span< T >::data(), blender::bke::Edge, blender::bke::Face, blender::bke::GSpanAttributeWriter::finish(), AttributeOwner::from_id(), i, Mesh::id, blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), blender::bke::GeometrySet::GatheredAttributes::kinds, blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeAccessor::lookup_meta_data(), blender::bke::AttributeAccessor::lookup_or_default(), blender::GVArrayCommon::materialize(), blender::bke::AttributeIter::name, name, blender::bke::GeometrySet::GatheredAttributes::names, blender::bke::Point, blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::GMutableSpan::slice(), and blender::bke::GSpanAttributeWriter::span.
Referenced by join_objects_exec().
|
static |
Definition at line 365 of file mesh_join.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), Geometry::attributes, BKE_object_material_get(), Object::data, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), i, 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(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::VArrayCommon< T >::materialize(), max, MAXMAT, nullptr, blender::bke::MutableAttributeAccessor::remove(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::bke::SpanAttributeWriter< T >::span, and Mesh::totcol.
Referenced by join_objects_exec().
|
static |
Definition at line 121 of file mesh_join.cc.
References blender::bke::mesh::NormalJoinInfo::add_mesh(), Geometry::attributes, BLI_assert_unreachable, blender::bke::Corner, blender::bke::mesh::NormalJoinInfo::CornerFan, blender::bke::cpp_type_to_attribute_type(), Object::data, blender::bke::GAttributeReader::domain, blender::bke::Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::mesh::NormalJoinInfo::Free, i, blender::Span< T >::index_range(), blender::bke::mesh::is_corner_fan_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_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().
|
static |
Definition at line 105 of file mesh_join.cc.
References Object::data, i, blender::Span< T >::index_range(), blender::MutableSpan< T >::slice(), and blender::math::transform_points().
Referenced by join_objects_exec().
|
static |
Definition at line 193 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(), BKE_key_add(), BKE_keyblock_add(), BKE_keyblock_copy_settings(), BKE_keyblock_find_name(), BLI_findlink(), Key::block, blender::MutableSpan< T >::copy_from(), blender::Span< T >::data(), KeyBlock::data, Object::data, blender::IndexRange::drop_front(), i, Mesh::id, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_as(), blender::Span< T >::index_range(), Mesh::key, KEY_RELATIVE, LISTBASE_FOREACH, MEM_malloc_arrayN(), MEM_reallocN, KeyBlock::relative, blender::IndexRange::size(), size(), blender::MutableSpan< T >::slice(), blender::MutableSpan< T >::take_front(), blender::offset_indices::OffsetIndices< T >::total_size(), KeyBlock::totelem, blender::math::transform_points(), and Key::type.
Referenced by join_objects_exec().
|
static |
Definition at line 57 of file mesh_join.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_defgroup_duplicate(), BLI_addtail(), CD_CONSTRUCT, CD_MDEFORMVERT, CustomData_add_layer(), CustomData_has_layer(), blender::Span< T >::data(), MDeformWeight::def_nr, MDeformVert::dw, i, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_as(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), LISTBASE_FOREACH, MEM_malloc_arrayN(), MDeformVert::totweight, Mesh::vert_data, Mesh::vertex_group_names, Mesh::verts_num, and MDeformWeight::weight.
Referenced by join_objects_exec().
|
static |
Definition at line 64 of file editmesh_attribute.cc.
References blender::ed::geometry::attribute_set_poll(), C, ED_mesh_context(), and ED_operator_editmesh().
Referenced by MESH_OT_attribute_set().
| void blender::ed::mesh::MESH_OT_set_sharpness_by_angle | ( | wmOperatorType * | ot | ) |
Definition at line 74 of file editmesh_set_sharpness_by_angle.cc.
References ED_operator_editmesh(), blender::math::AngleRadianBase< float >::from_degree(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_boolean(), RNA_def_float_rotation(), RNA_def_property_float_default(), and set_sharpness_by_angle_exec().
Referenced by ED_operatortypes_mesh().
|
static |
Definition at line 32 of file editmesh_set_sharpness_by_angle.cc.
References BKE_editmesh_lnorspace_update(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), BMEditMesh::bm, BM_edge_loop_pair(), BM_EDGES_OF_MESH, BM_elem_flag_set, BM_elem_flag_test, BM_ELEM_SELECT, BM_ELEM_SMOOTH, BM_ITER_MESH, C, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), blender::math::dot(), e, BMLoop::f, ID_RECALC_GEOMETRY, NC_GEOM, ND_DATA, BMFace::no, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), and WM_event_add_notifier().
Referenced by MESH_OT_set_sharpness_by_angle().