Blender V5.0
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< int > invert_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()

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()

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()

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

◆ items_value_in()

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

◆ node_declare()

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

Definition at line 29 of file node_geo_sort_elements.cc.

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

Referenced by node_register().

◆ node_geo_exec()

◆ node_init()

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

Definition at line 46 of file node_geo_sort_elements.cc.

References bNode::custom1, and blender::bke::Point.

Referenced by node_register().

◆ node_layout()

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

Definition at line 41 of file node_geo_sort_elements.cc.

References uiLayout::prop(), ptr, and UI_ITEM_NONE.

Referenced by node_register().

◆ node_register()

◆ node_rna()

◆ parallel_transform()

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

◆ sorted_indices()