|
Blender V5.0
|
Enumerations | |
| enum class | BooleanMix { None , AllFalse , AllTrue , Mixed } |
Functions | |
| void | copy (const GVArray &src, GMutableSpan dst, int64_t grain_size=4096) |
| template<typename T> | |
| void | copy (const VArray< T > &src, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T> | |
| void | copy (const Span< T > src, MutableSpan< T > dst, const int64_t grain_size=4096) |
| void | copy (const GVArray &src, const IndexMask &selection, GMutableSpan dst, int64_t grain_size=4096) |
| template<typename T> | |
| void | copy (const Span< T > src, const IndexMask &selection, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T> | |
| T | compute_sum (const Span< T > data) |
| template<typename T, typename IndexT> | |
| void | scatter (const Span< T > src, const Span< IndexT > indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T> | |
| void | scatter (const Span< T > src, const IndexMask &indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| void | gather (const GVArray &src, const IndexMask &indices, GMutableSpan dst, int64_t grain_size=4096) |
| void | gather (GSpan src, const IndexMask &indices, GMutableSpan dst, int64_t grain_size=4096) |
| template<typename T> | |
| void | gather (const VArray< T > &src, const IndexMask &indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T> | |
| void | gather (const Span< T > src, const IndexMask &indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T, typename IndexT> | |
| void | gather (const Span< T > src, const Span< IndexT > indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T, typename IndexT> | |
| void | gather (const VArray< T > &src, const Span< IndexT > indices, MutableSpan< T > dst, const int64_t grain_size=4096) |
| template<typename T> | |
| void | gather_group_to_group (const OffsetIndices< int > src_offsets, const OffsetIndices< int > dst_offsets, const IndexMask &selection, const Span< T > src, MutableSpan< T > dst) |
| template<typename T> | |
| void | gather_group_to_group (const OffsetIndices< int > src_offsets, const OffsetIndices< int > dst_offsets, const IndexMask &selection, const VArray< T > src, MutableSpan< T > dst) |
| template<typename T> | |
| void | gather_to_groups (const OffsetIndices< int > dst_offsets, const IndexMask &src_selection, const Span< T > src, MutableSpan< T > dst) |
| void | copy_group_to_group (OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, GSpan src, GMutableSpan dst) |
| template<typename T> | |
| void | copy_group_to_group (OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, Span< T > src, MutableSpan< T > dst) |
| void | count_indices (Span< int > indices, MutableSpan< int > counts) |
| void | invert_booleans (MutableSpan< bool > span) |
| void | invert_booleans (MutableSpan< bool > span, const IndexMask &mask) |
| int64_t | count_booleans (const VArray< bool > &varray) |
| int64_t | count_booleans (const VArray< bool > &varray, const IndexMask &mask) |
| BooleanMix | booleans_mix_calc (const VArray< bool > &varray, IndexRange range_to_check) |
| BooleanMix | booleans_mix_calc (const VArray< bool > &varray) |
| bool | contains (const VArray< bool > &varray, const IndexMask &indices_to_check, bool value) |
| template<typename T> | |
| Vector< IndexRange > | find_all_ranges (const Span< T > span, const T &value) |
| template<typename T> | |
| void | fill_index_range (MutableSpan< T > span, const T start=0) |
| template<typename T> | |
| bool | indexed_data_equal (const Span< T > all_values, const Span< int > indices, const Span< T > values) |
| bool | indices_are_range (Span< int > indices, IndexRange range) |
| static bool | all_equal (const Span< bool > span, const bool test) |
| static bool | all_equal (const VArray< bool > &varray, const IndexRange range, const bool test) |
|
strong |
| Enumerator | |
|---|---|
| None | |
| AllFalse | |
| AllTrue | |
| Mixed | |
Definition at line 280 of file BLI_array_utils.hh.
|
static |
Definition at line 99 of file array_utils.cc.
References all_equal(), blender::Span< T >::begin(), and blender::Span< T >::end().
Referenced by all_equal(), all_equal(), and booleans_mix_calc().
|
static |
Definition at line 104 of file array_utils.cc.
References all_equal(), blender::IndexRange::begin(), blender::IndexRange::end(), and i.
|
inline |
Definition at line 287 of file BLI_array_utils.hh.
References booleans_mix_calc(), and blender::VArrayCommon< T >::index_range().
| BooleanMix blender::array_utils::booleans_mix_calc | ( | const VArray< bool > & | varray, |
| IndexRange | range_to_check ) |
Definition at line 110 of file array_utils.cc.
References all_equal(), AllFalse, AllTrue, b, booleans_mix_calc(), blender::VArrayCommon< T >::common_info(), blender::CommonVArrayInfo::data, blender::IndexRange::first(), blender::Span< T >::first(), init(), blender::VArrayCommon< T >::is_empty(), Mixed, None, blender::threading::parallel_reduce(), blender::CommonVArrayInfo::Single, blender::VArrayCommon< T >::size(), blender::Span< T >::slice(), blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
Referenced by blender::draw::bmesh_normals_domain(), booleans_mix_calc(), booleans_mix_calc(), blender::draw::create_lines_ibo_with_cyclic(), blender::ed::sculpt_paint::face_set::create_op_exec(), blender::io::alembic::ABCCurveWriter::do_write(), blender::io::usd::USDCurvesWriter::do_write(), blender::ed::greasepencil::grease_pencil_cyclical_set_exec(), and blender::ed::greasepencil::set_start_point().
Definition at line 74 of file BLI_array_utils.hh.
References data, divide_ceil_ul(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::threading::parallel_for(), and T.
Referenced by BKE_mesh_center_median(), and blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec().
| bool blender::array_utils::contains | ( | const VArray< bool > & | varray, |
| const IndexMask & | indices_to_check, | ||
| bool | value ) |
Check if the value exists in the array.
Definition at line 208 of file array_utils.cc.
References blender::VArrayCommon< T >::common_info(), contains(), blender::CommonVArrayInfo::data, if(), blender::index_mask::IndexMask::index_range(), init(), blender::threading::parallel_reduce(), blender::CommonVArrayInfo::Single, blender::VArrayCommon< T >::size(), blender::index_mask::IndexMask::slice(), blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
Referenced by contains(), blender::ed::curves::has_anything_selected(), blender::ed::curves::has_anything_selected(), blender::ed::curves::has_anything_selected(), blender::ed::curves::has_anything_selected(), blender::ed::pointcloud::has_anything_selected(), and blender::bke::CurvesGeometry::has_cyclic_curve().
| void blender::array_utils::copy | ( | const GVArray & | src, |
| const IndexMask & | selection, | ||
| GMutableSpan | dst, | ||
| int64_t | grain_size = 4096 ) |
Fill the destination span by copying masked values from the src array. Threaded based on grain-size.
Definition at line 27 of file array_utils.cc.
References BLI_assert, blender::index_mask::IndexMask::index_range(), blender::index_mask::IndexMask::min_array_size(), blender::threading::parallel_for(), blender::GMutableSpan::size(), blender::GVArrayCommon::size(), blender::GMutableSpan::type(), and blender::GVArrayCommon::type().
| void blender::array_utils::copy | ( | const GVArray & | src, |
| GMutableSpan | dst, | ||
| int64_t | grain_size = 4096 ) |
Fill the destination span by copying all values from the src array. Threaded based on grain-size.
Definition at line 18 of file array_utils.cc.
References BLI_assert, blender::GVArrayCommon::index_range(), blender::threading::parallel_for(), blender::GMutableSpan::size(), blender::GVArrayCommon::size(), blender::GMutableSpan::type(), and blender::GVArrayCommon::type().
Referenced by blender::bke::build_mesh_positions(), blender::ed::curves::copy_data_to_geometry(), blender::create_envelope_strokes(), blender::ed::sculpt_paint::face_set::duplicate_face_sets(), blender::ed::curves::duplicate_points(), blender::ed::pointcloud::duplicate_points(), blender::fn::evaluate_fields(), blender::geometry::execute_instances_tasks(), blender::draw::extract_face_dot_index(), blender::draw::extract_vert_idx_loose_geom_subdiv(), blender::draw::extract_vert_index_mesh(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), blender::nodes::node_geo_scale_elements_cc::from_indices_large_groups(), blender::io::hydra::gather_vert_data(), blender::get_factor_from_draw_speed(), GPU_indexbuf_build_from_memory(), blender::draw::grease_pencil_edit_batch_ensure(), blender::ed::greasepencil::grease_pencil_primitive_load(), blender::ed::greasepencil::grease_pencil_primitive_save(), blender::ed::sculpt_paint::hide::grow_shrink_visibility_mesh(), blender::io::csv::import_csv_as_pointcloud(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::geometry::interpolate_curves_with_samples(), blender::ed::object::mesh_data_to_grease_pencil(), blender::bke::mesh_select_edge_flush(), blender::bke::mesh_select_face_flush(), blender::bke::mesh_select_vert_flush(), blender::geometry::remove_points_and_split(), blender::geometry::resample_to_count(), blender::nodes::node_geo_sort_elements_cc::sorted_indices(), blender::ed::geometry::store_attributes_to_shape_keys(), blender::io::obj::TEST_F(), blender::io::obj::TEST_F(), blender::io::obj::TEST_F(), blender::io::obj::TEST_F(), blender::io::obj::TEST_F(), blender::io::obj::TEST_F(), blender::io::stl::STLMeshHelper::to_mesh(), and blender::bke::try_capture_fields_on_geometry().
|
inline |
Fill the destination span by copying values from the src array. Threaded based on grain-size.
Definition at line 64 of file BLI_array_utils.hh.
References BLI_assert, blender::index_mask::IndexMask::foreach_index_optimized(), i, blender::MutableSpan< T >::size(), and blender::Span< T >::size().
|
inline |
Fill the destination span by copying all values from the src array. Threaded based on grain-size.
Definition at line 42 of file BLI_array_utils.hh.
References BLI_assert, blender::Span< T >::index_range(), blender::threading::parallel_for(), blender::MutableSpan< T >::size(), and blender::Span< T >::size().
|
inline |
Definition at line 29 of file BLI_array_utils.hh.
References BLI_assert, blender::VArrayCommon< T >::index_range(), blender::threading::parallel_for(), blender::MutableSpan< T >::size(), and blender::VArrayCommon< T >::size().
| void blender::array_utils::copy_group_to_group | ( | OffsetIndices< int > | src_offsets, |
| OffsetIndices< int > | dst_offsets, | ||
| const IndexMask & | selection, | ||
| GSpan | src, | ||
| GMutableSpan | dst ) |
Copy the src data from the groups defined by src_offsets to the groups in dst defined by dst_offsets. Groups to use are masked by selection, and it is assumed that the corresponding groups have the same size.
Definition at line 57 of file array_utils.cc.
References blender::GMutableSpan::copy_from(), blender::index_mask::IndexMask::foreach_index(), i, blender::GMutableSpan::slice(), and blender::GSpan::slice().
Referenced by blender::geometry::convert_curves_to_bezier(), blender::geometry::convert_curves_to_catmull_rom_or_poly(), blender::geometry::convert_curves_to_nurbs(), blender::bke::copy_attributes_group_to_group(), copy_group_to_group(), blender::geometry::copy_or_defaults_for_unselected_curves(), blender::bke::CurvesGeometry::evaluated_positions(), blender::geometry::fit_poly_to_bezier_curves(), blender::ed::curves::resize_curves(), blender::geometry::subdivide_curves(), and blender::bke::greasepencil::Drawing::tag_topology_changed().
| void blender::array_utils::copy_group_to_group | ( | OffsetIndices< int > | src_offsets, |
| OffsetIndices< int > | dst_offsets, | ||
| const IndexMask & | selection, | ||
| Span< T > | src, | ||
| MutableSpan< T > | dst ) |
Definition at line 255 of file BLI_array_utils.hh.
References copy_group_to_group().
Definition at line 266 of file array_utils.cc.
References count_booleans(), and blender::VArrayCommon< T >::size().
Referenced by count_booleans(), count_booleans(), blender::draw::extract_edit_data(), blender::draw::grease_pencil_edit_batch_ensure(), blender::draw::grease_pencil_weight_batch_ensure(), and stats_object_edit().
| int64_t blender::array_utils::count_booleans | ( | const VArray< bool > & | varray, |
| const IndexMask & | mask ) |
Definition at line 158 of file array_utils.cc.
References blender::VArrayCommon< T >::common_info(), count_booleans(), blender::CommonVArrayInfo::data, blender::VArrayCommon< T >::index_range(), init(), blender::VArrayCommon< T >::is_empty(), mask(), blender::threading::parallel_reduce(), blender::CommonVArrayInfo::Single, blender::VArrayCommon< T >::size(), blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
| void blender::array_utils::count_indices | ( | Span< int > | indices, |
| MutableSpan< int > | counts ) |
Count the number of occurrences of each index.
| indices | The indices to count. |
| counts | The number of occurrences of each index. Typically initialized to zero. Must be large enough to contain the maximum index. |
Definition at line 69 of file array_utils.cc.
References BLI_system_thread_count(), i, indices, and blender::threading::parallel_for().
Referenced by blender::offset_indices::build_reverse_offsets(), blender::ed::sculpt_paint::boundary::ensure_boundary_info(), blender::nodes::node_geo_input_mesh_edge_neighbors_cc::EdgeNeighborCountFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexCountFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::VertexFaceCountFieldInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeCountInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertCountInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertCountInput::get_varray_for_context(), and subdivide_base().
|
inline |
Fill the span with increasing indices: 0, 1, 2, ... Optionally, the start value can be provided.
Definition at line 324 of file BLI_array_utils.hh.
References blender::MutableSpan< T >::begin(), blender::MutableSpan< T >::end(), fill_index_range(), and T.
Referenced by apply_weights_vertex_normal(), BKE_mesh_legacy_convert_polys_to_offsets(), blender::geometry::build_point_to_sample_map(), blender::io::obj::OBJMesh::calc_face_order(), blender::bke::node_structure_type_inferencing::calc_node_interface(), blender::ed::sculpt_paint::cloth::calc_vert_indices_grids(), blender::bke::compute_local_mesh_groups(), blender::nodes::node_geo_mesh_primitive_circle_cc::create_circle_mesh(), blender::create_dashes(), blender::create_envelope_strokes(), blender::bke::tests::GreasePencilInterpolate::create_test_curves(), blender::geometry::tests::create_test_curves(), blender::geometry::tests::create_test_curves(), blender::nodes::node_geo_points_to_curves_cc::curve_from_points(), blender::ed::greasepencil::curve_merge_by_distance(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_faces(), blender::draw::extract_face_dot_index(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), fill_index_range(), blender::ed::sculpt_paint::greasepencil::find_curve_mapping_from_index(), blender::geometry::fit_poly_to_bezier_curves(), blender::bke::pbvh::Tree::from_grids(), blender::bke::pbvh::Tree::from_mesh(), blender::ed::greasepencil::get_reordered_indices(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::PointsOfCurveInput::get_varray_for_context(), blender::nodes::node_geo_input_shortest_edge_paths_cc::ShortestEdgePathsNextVertFieldInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::CornersOfEdgeInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::CornersOfFaceInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::CornersOfVertInput::get_varray_for_context(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::EdgesOfVertInput::get_varray_for_context(), blender::nodes::node_geo_sort_elements_cc::identifiers_to_indices(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::ed::sculpt_paint::greasepencil::interpolate_between_curves(), blender::ed::transform::make_sorted_index_map(), blender::bke::mesh_calc_edges(), multires_unsubdivide_add_original_index_datalayers(), blender::nodes::node_geo_split_to_instances_cc::node_geo_exec(), blender::geometry::point_merge_by_distance(), blender::reorder_cyclic_curve_points(), blender::index_mask::segments_from_batch_predicate(), and blender::bke::Instances::unique_ids().
|
inline |
Finds all the index ranges for which consecutive values in span equal value.
Definition at line 298 of file BLI_array_utils.hh.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::IndexRange::drop_front(), find_all_ranges(), blender::Span< T >::first(), blender::IndexRange::from_end_size(), i, blender::Span< T >::index_range(), blender::Span< T >::is_empty(), length(), blender::Span< T >::size(), and T.
Referenced by blender::geometry::curve_simplify(), find_all_ranges(), find_all_ranges_test(), blender::geometry::remove_points_and_split(), and TEST().
| void blender::array_utils::gather | ( | const GVArray & | src, |
| const IndexMask & | indices, | ||
| GMutableSpan | dst, | ||
| int64_t | grain_size = 4096 ) |
Fill the destination span by gathering indexed values from the src array.
Definition at line 40 of file array_utils.cc.
References BLI_assert, indices, blender::threading::parallel_for(), blender::GMutableSpan::size(), blender::GMutableSpan::type(), and blender::GVArrayCommon::type().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::accumulate_counts_to_offsets(), blender::nodes::node_geo_instance_on_points_cc::add_instances_from_component(), blender::ed::transform::curves::append_positions_to_custom_data(), blender::ed::sculpt_paint::greasepencil::brush_point_influence_mask(), blender::nodes::node_geo_extrude_mesh_cc::build_vert_to_edge_map(), blender::nodes::node_geo_instances_to_points_cc::convert_instances_to_points(), blender::geometry::copy_and_reorder_instaces(), blender::geometry::copy_and_reorder_mesh_edges(), blender::geometry::copy_and_reorder_mesh_verts(), blender::ed::transform::pointcloud::createTransPointCloudVerts(), blender::nodes::node_geo_curves_to_grease_pencil_cc::curve_instances_to_grease_pencil_layers(), blender::bke::curves_copy_point_selection(), blender::ed::curves::duplicate_curves(), blender::ed::pointcloud::duplicate_points(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::geometry::execute_instances_tasks(), blender::draw::extract_data_mesh_mapped_corner(), blender::draw::extract_edge_index_mesh(), blender::draw::extract_sculpt_data_subdiv(), blender::draw::extract_vert_idx_loose_geom_subdiv(), blender::draw::extract_vert_index_mesh(), blender::draw::extract_vert_normals(), blender::draw::extract_vert_normals_mesh(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_face_regions(), blender::nodes::node_geo_extrude_mesh_cc::extrude_mesh_vertices(), gather(), gather(), gather(), gather(), gather(), blender::bke::gather_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_attributes(), blender::nodes::node_geo_scale_elements_cc::gather_edge_islands(), blender::nodes::node_geo_scale_elements_cc::gather_face_islands(), blender::nodes::node_geo_extrude_mesh_cc::gather_vert_attributes(), blender::io::hydra::gather_vert_data(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::draw::grease_pencil_cache_add_nurbs(), blender::draw::grease_pencil_edit_batch_ensure(), blender::ed::sculpt_paint::grease_pencil_fill_extension_lines_from_circles(), blender::geometry::join_instances(), blender::bke::mesh_calc_edges(), blender::ed::object::mesh_data_to_grease_pencil(), blender::geometry::mesh_edges_to_curves_convert(), blender::geometry::mesh_triangulate(), blender::nodes::node_geo_attribute_statistic_cc::node_geo_exec(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::geometry::propagate_edge_attributes(), blender::geometry::propagate_vert_attributes(), blender::nodes::node_geo_sort_elements_cc::sorted_indices(), blender::ed::sculpt_paint::expand::spherical_falloff_create(), blender::io::obj::OBJMesh::store_normal_coords_and_indices(), blender::ed::sculpt_paint::boundary::twist_data_init_grids(), blender::ed::sculpt_paint::boundary::twist_data_init_mesh(), and blender::bke::mesh::vert_tris_from_corner_tris().
|
inline |
Fill the destination span by gathering indexed values from the src array.
Definition at line 159 of file BLI_array_utils.hh.
References BLI_assert, gather(), i, indices, and blender::MutableSpan< T >::size().
|
inline |
Fill the destination span by gathering indexed values from the src array.
Definition at line 177 of file BLI_array_utils.hh.
References BLI_assert, gather(), indices, blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
|
inline |
Fill the destination span by gathering indexed values from the src array.
Definition at line 144 of file BLI_array_utils.hh.
References BLI_assert, gather(), indices, blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
|
inline |
Fill the destination span by gathering indexed values from the src array.
Definition at line 194 of file BLI_array_utils.hh.
References BLI_assert, blender::devirtualize_varray(), gather(), indices, blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
| void blender::array_utils::gather | ( | GSpan | src, |
| const IndexMask & | indices, | ||
| GMutableSpan | dst, | ||
| int64_t | grain_size = 4096 ) |
Fill the destination span by gathering indexed values from the src array.
Definition at line 52 of file array_utils.cc.
References blender::GVArray::from_span(), gather(), and indices.
|
inline |
Definition at line 210 of file BLI_array_utils.hh.
References blender::MutableSpan< T >::copy_from(), blender::index_mask::IndexMask::foreach_index(), gather_group_to_group(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by blender::bke::copy_curve_selection_custom_knots(), blender::draw::create_edit_points_position(), blender::draw::create_edit_points_selection(), blender::geometry::create_point_to_vert_map(), blender::bke::curves::nurbs::gather_custom_knots(), gather_group_to_group(), gather_group_to_group(), and blender::geometry::mesh_triangulate().
|
inline |
Definition at line 222 of file BLI_array_utils.hh.
References blender::index_mask::IndexMask::foreach_index(), gather_group_to_group(), blender::VArrayCommon< T >::materialize_compressed(), and blender::MutableSpan< T >::slice().
|
inline |
Definition at line 234 of file BLI_array_utils.hh.
References blender::MutableSpan< T >::fill(), blender::index_mask::IndexMask::foreach_index(), gather_to_groups(), and blender::MutableSpan< T >::slice().
Referenced by gather_to_groups().
| bool blender::array_utils::indexed_data_equal | ( | const Span< T > | all_values, |
| const Span< int > | indices, | ||
| const Span< T > | values ) |
Definition at line 330 of file BLI_array_utils.hh.
References BLI_assert, i, indexed_data_equal(), indices, and blender::Span< T >::size().
Referenced by blender::ed::sculpt_paint::mask::apply_new_mask_mesh(), blender::ed::sculpt_paint::face_set::face_hide_update(), blender::ed::sculpt_paint::face_set::face_sets_update(), blender::ed::sculpt_paint::hide::flush_face_changes_node(), indexed_data_equal(), blender::ed::sculpt_paint::mask::update_mask_mesh(), and blender::ed::sculpt_paint::hide::vert_hide_update().
| bool blender::array_utils::indices_are_range | ( | Span< int > | indices, |
| IndexRange | range ) |
Definition at line 271 of file array_utils.cc.
References blender::IndexRange::index_range(), indices, indices_are_range(), blender::threading::parallel_reduce(), and blender::IndexRange::size().
Referenced by blender::ed::greasepencil::apply_eval_grease_pencil_data(), blender::bke::gather_attributes(), indices_are_range(), and blender::nodes::node_geo_sort_elements_cc::sorted_indices().
| void blender::array_utils::invert_booleans | ( | MutableSpan< bool > | span | ) |
Definition at line 85 of file array_utils.cc.
References blender::MutableSpan< T >::index_range(), invert_booleans(), and blender::threading::parallel_for().
Referenced by blender::ed::greasepencil::grease_pencil_cyclical_set_exec(), invert_booleans(), invert_booleans(), blender::ed::curves::invert_selection(), blender::ed::pointcloud::invert_selection(), and modify_mesh().
| void blender::array_utils::invert_booleans | ( | MutableSpan< bool > | span, |
| const IndexMask & | mask ) |
Definition at line 94 of file array_utils.cc.
References i, invert_booleans(), and mask().
|
inline |
Definition at line 115 of file BLI_array_utils.hh.
References BLI_assert, indices, pos, blender::MutableSpan< T >::size(), and blender::Span< T >::size().
|
inline |
Fill the specified indices of the destination with the values in the source span.
Definition at line 101 of file BLI_array_utils.hh.
References BLI_assert, indices, blender::threading::parallel_for(), and blender::Span< T >::size().
Referenced by blender::ed::transform::curves::copy_positions_from_curves_transform_custom_data(), blender::bke::mesh_calc_edges(), blender::ed::transform::pointcloud::recalcData_pointcloud(), blender::ed::curves::resize_curves(), and blender::nodes::node_geo_sort_elements_cc::sorted_indices().