Blender V5.3
offset_indices.cc File Reference
#include <algorithm>
#include "BLI_array_utils.hh"
#include "BLI_index_mask.hh"
#include "BLI_math_base_c.hh"
#include "BLI_offset_indices.hh"
#include "BLI_sort.hh"
#include "BLI_task.hh"
#include "BLI_task_size_hints.hh"
#include "BLI_threads.hh"
#include "atomic_ops.h"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::offset_indices

Functions

OffsetIndices< int > blender::offset_indices::accumulate_counts_to_offsets (MutableSpan< int > counts_to_offsets, int start_offset=0)
std::optional< OffsetIndices< int > > blender::offset_indices::accumulate_counts_to_offsets_with_overflow_check (MutableSpan< int > counts_to_offsets, int start_offset=0)
void blender::offset_indices::fill_constant_group_size (int size, int start_offset, MutableSpan< int > offsets)
void blender::offset_indices::copy_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask, MutableSpan< int > sizes)
void blender::offset_indices::gather_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask, MutableSpan< int > sizes)
void blender::offset_indices::gather_group_sizes (OffsetIndices< int > offsets, Span< int > indices, MutableSpan< int > sizes)
int blender::offset_indices::sum_group_sizes (OffsetIndices< int > offsets, Span< int > indices)
int blender::offset_indices::sum_group_sizes (OffsetIndices< int > offsets, const IndexMask &mask)
OffsetIndices< int > blender::offset_indices::gather_selected_offsets (OffsetIndices< int > src_offsets, const IndexMask &selection, int start_offset, MutableSpan< int > dst_offsets)
OffsetIndices< int > blender::offset_indices::gather_selected_offsets (OffsetIndices< int > src_offsets, Span< int > selection, int start_offset, MutableSpan< int > dst_offsets)
void blender::offset_indices::build_reverse_map (OffsetIndices< int > offsets, MutableSpan< int > r_map)
OffsetIndices< int > blender::offset_indices::build_reverse_offsets (Span< int > indices, MutableSpan< int > offsets)
void blender::offset_indices::sort_groups (OffsetIndices< int > groups, MutableSpan< int > indices)
static int64_t blender::offset_indices::counting_chunk_size (const int64_t indices_num)
template<typename ValueSourceForeach>
static void blender::offset_indices::reverse_indices_in_groups_counting (const Span< int > group_indices, const OffsetIndices< int > offsets, const ValueSourceForeach &value_source_foreach, MutableSpan< int > results)
template<typename ValueSourceForeach>
static void blender::offset_indices::reverse_indices_in_groups_atomic (const Span< int > group_indices, const OffsetIndices< int > offsets, const ValueSourceForeach &value_source_foreach, MutableSpan< int > results)
template<typename ValueSourceForeach>
static void blender::offset_indices::fill_groups (const Span< int > group_indices, const OffsetIndices< int > offsets, const ValueSourceForeach &value_source_foreach, const bool sort, MutableSpan< int > results)
static void blender::offset_indices::assert_group_indices_valid (const Span< int > group_indices, const OffsetIndices< int > offsets)
void blender::offset_indices::reverse_indices_in_groups (Span< int > group_indices, OffsetIndices< int > offsets, MutableSpan< int > results, bool sort=true)
void blender::offset_indices::reverse_indices_in_groups (Span< int > group_indices, OffsetIndices< int > offsets, MutableSpan< int > results, OffsetIndices< int > value_groups)
void blender::offset_indices::reverse_indices_in_groups (Span< int > group_indices, OffsetIndices< int > offsets, MutableSpan< int > results, int value_group_size)
GroupedSpan< int > blender::offset_indices::build_groups_from_indices (Span< int > indices, int groups_num, Array< int > &offset_data, Array< int > &index_data)
GroupedSpan< int > blender::offset_indices::build_groups_from_indices (Span< int > indices, int groups_num, Array< int > &offset_data, Array< int > &index_data, const IndexMask &values)