Blender V5.0
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 (uiLayout *layout, bContext *, PointerRNA *ptr)
static void node_init (bNodeTree *, bNode *node)
static std::optional< eCustomDataTypenode_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 68 of file node_geo_field_average.cc.

Function Documentation

◆ calculate_median()

template<typename T>
T blender::nodes::node_geo_field_average_cc::calculate_median ( MutableSpan< T > values)
static

◆ node_declare()

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

◆ node_gather_link_searches()

void blender::nodes::node_geo_field_average_cc::node_gather_link_searches ( GatherLinkSearchOpParams & params)
static

◆ node_geo_exec()

void blender::nodes::node_geo_field_average_cc::node_geo_exec ( GeoNodeExecParams params)
static

Definition at line 274 of file node_geo_field_average.cc.

References Mean, Median, node_geo_exec(), and params.

Referenced by node_geo_exec(), and node_register().

◆ node_init()

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

Definition at line 62 of file node_geo_field_average.cc.

References CD_PROP_FLOAT, bNode::custom1, and bNode::custom2.

Referenced by node_register().

◆ node_layout()

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

Definition at line 56 of file node_geo_field_average.cc.

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

Referenced by node_register().

◆ node_register()

◆ node_rna()

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

◆ node_type_from_other_socket()

std::optional< eCustomDataType > blender::nodes::node_geo_field_average_cc::node_type_from_other_socket ( const bNodeSocket & socket)
static