Blender V5.0
blender::nodes::node_geo_index_of_nearest_cc Namespace Reference

Classes

class  IndexOfNearestFieldInput
class  HasNeighborFieldInput

Functions

static void node_declare (NodeDeclarationBuilder &b)
static KDTree_3d * build_kdtree (const Span< float3 > positions, const IndexMask &mask)
static int find_nearest_non_self (const KDTree_3d &tree, const float3 &position, const int index)
static void find_neighbors (const KDTree_3d &tree, const Span< float3 > positions, const IndexMask &mask, MutableSpan< int > r_indices)
static void node_geo_exec (GeoNodeExecParams params)
static void node_register ()

Function Documentation

◆ build_kdtree()

KDTree_3d * blender::nodes::node_geo_index_of_nearest_cc::build_kdtree ( const Span< float3 > positions,
const IndexMask & mask )
static

◆ find_nearest_non_self()

int blender::nodes::node_geo_index_of_nearest_cc::find_nearest_non_self ( const KDTree_3d & tree,
const float3 & position,
const int index )
static

Definition at line 35 of file node_geo_index_of_nearest.cc.

References tree.

Referenced by find_neighbors().

◆ find_neighbors()

void blender::nodes::node_geo_index_of_nearest_cc::find_neighbors ( const KDTree_3d & tree,
const Span< float3 > positions,
const IndexMask & mask,
MutableSpan< int > r_indices )
static

◆ node_declare()

◆ node_geo_exec()

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

Definition at line 226 of file node_geo_index_of_nearest.cc.

References params.

Referenced by node_register().

◆ node_register()