Blender V4.3
offset_indices.cc File Reference
#include "BLI_array_utils.hh"
#include "BLI_offset_indices.hh"
#include "BLI_task.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::offset_indices
 

Functions

OffsetIndices< intblender::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< intblender::offset_indices::gather_selected_offsets (OffsetIndices< int > src_offsets, const IndexMask &selection, int start_offset, MutableSpan< int > dst_offsets)
 
void blender::offset_indices::build_reverse_map (OffsetIndices< int > offsets, MutableSpan< int > r_map)
 
void blender::offset_indices::build_reverse_offsets (Span< int > indices, MutableSpan< int > offsets)