Blender V4.3
blender::nodes::node_geo_sort_elements_cc Namespace Reference

Functions

static void node_declare (NodeDeclarationBuilder &b)
 
static void node_layout (uiLayout *layout, bContext *, PointerRNA *ptr)
 
static void node_init (bNodeTree *, bNode *node)
 
static void grouped_sort (const OffsetIndices< int > offsets, const Span< float > weights, MutableSpan< int > indices)
 
static void find_points_by_group_index (const Span< int > indices, MutableSpan< int > r_offsets, MutableSpan< int > r_indices)
 
template<typename T , typename Func >
static void parallel_transform (MutableSpan< T > values, const int64_t grain_size, const Func &func)
 
static Array< intinvert_permutation (const Span< int > permutation)
 
static int identifiers_to_indices (MutableSpan< int > r_identifiers_to_indices)
 
static std::optional< Array< int > > sorted_indices (const fn::FieldContext &field_context, const int domain_size, const Field< bool > selection_field, const Field< int > group_id_field, const Field< float > weight_field)
 
static void node_geo_exec (GeoNodeExecParams params)
 
template<typename T >
static Vector< EnumPropertyItemitems_value_in (const Span< T > values, const EnumPropertyItem *src_items)
 
static void node_rna (StructRNA *srna)
 
static void node_register ()
 

Function Documentation

◆ find_points_by_group_index()

static void blender::nodes::node_geo_sort_elements_cc::find_points_by_group_index ( const Span< int > indices,
MutableSpan< int > r_offsets,
MutableSpan< int > r_indices )
static

◆ grouped_sort()

static void blender::nodes::node_geo_sort_elements_cc::grouped_sort ( const OffsetIndices< int > offsets,
const Span< float > weights,
MutableSpan< int > indices )
static

◆ identifiers_to_indices()

◆ invert_permutation()

static Array< int > blender::nodes::node_geo_sort_elements_cc::invert_permutation ( const Span< int > permutation)
static

◆ items_value_in()

template<typename T >
static Vector< EnumPropertyItem > blender::nodes::node_geo_sort_elements_cc::items_value_in ( const Span< T > values,
const EnumPropertyItem * src_items )
static

◆ node_declare()

static void blender::nodes::node_geo_sort_elements_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 28 of file node_geo_sort_elements.cc.

References b, and blender::nodes::SocketDeclaration::hide_value.

Referenced by node_register().

◆ node_geo_exec()

◆ node_init()

static void blender::nodes::node_geo_sort_elements_cc::node_init ( bNodeTree * ,
bNode * node )
static

Definition at line 43 of file node_geo_sort_elements.cc.

References int, and blender::bke::Point.

Referenced by node_register().

◆ node_layout()

static void blender::nodes::node_geo_sort_elements_cc::node_layout ( uiLayout * layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 38 of file node_geo_sort_elements.cc.

References ptr, UI_ITEM_NONE, and uiItemR().

Referenced by node_register().

◆ node_register()

◆ node_rna()

static void blender::nodes::node_geo_sort_elements_cc::node_rna ( StructRNA * srna)
static

◆ parallel_transform()

template<typename T , typename Func >
static void blender::nodes::node_geo_sort_elements_cc::parallel_transform ( MutableSpan< T > values,
const int64_t grain_size,
const Func & func )
static

Definition at line 85 of file node_geo_sort_elements.cc.

References parallel_transform().

Referenced by identifiers_to_indices(), and parallel_transform().

◆ sorted_indices()