Blender V5.3
blender::nodes::node_geo_field_average_cc Namespace Reference

Classes

class  FieldAverageInput

Enumerations

enum class  Operation { Mean = 0 , Median = 1 }

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_layout (ui::Layout &layout, bContext *, PointerRNA *ptr)
static void node_init (bNodeTree *, bNode *node)
static std::optional< eCustomDataType > node_type_from_other_socket (const bNodeSocket &socket)
static void node_gather_link_searches (GatherLinkSearchOpParams &params)
template<typename T>
static T calculate_median (MutableSpan< T > values)
static void node_geo_exec (GeoNodeExecParams params)
static void node_rna (StructRNA *srna)
static void node_register ()

Enumeration Type Documentation

◆ Operation

Enumerator
Mean 
Median 

Definition at line 69 of file node_geo_field_average.cc.

Function Documentation

◆ calculate_median()

◆ node_declare()

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

◆ node_gather_link_searches()

◆ node_geo_exec()

◆ node_init()

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

Definition at line 63 of file node_geo_field_average.cc.

References blender::CD_PROP_FLOAT, node, and node_init().

Referenced by node_init(), and node_register().

◆ node_layout()

void blender::nodes::node_geo_field_average_cc::node_layout ( ui::Layout & layout,
bContext * ,
PointerRNA * ptr )
static

Definition at line 57 of file node_geo_field_average.cc.

References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.

Referenced by node_layout(), and node_register().

◆ node_register()

◆ node_rna()

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

◆ node_type_from_other_socket()