Blender  V2.93
Namespaces | Functions | Variables
node_geo_attribute_proximity.cc File Reference
#include "BLI_kdopbvh.h"
#include "BLI_kdtree.h"
#include "BLI_task.hh"
#include "BLI_timeit.hh"
#include "DNA_mesh_types.h"
#include "BKE_bvhutils.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "node_geometry_util.hh"

Go to the source code of this file.

Namespaces

 blender
 
 blender::nodes
 

Functions

static void geo_node_attribute_proximity_layout (uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
 
static void geo_attribute_proximity_init (bNodeTree *UNUSED(ntree), bNode *node)
 
static void blender::nodes::proximity_calc (MutableSpan< float > distance_span, MutableSpan< float3 > location_span, Span< float3 > positions, BVHTreeFromMesh &tree_data_mesh, BVHTreeFromPointCloud &tree_data_pointcloud, const bool bvh_mesh_success, const bool bvh_pointcloud_success, const bool store_distances, const bool store_locations)
 
static bool blender::nodes::bvh_from_mesh (const Mesh *target_mesh, int target_geometry_element, BVHTreeFromMesh &r_tree_data_mesh)
 
static bool blender::nodes::bvh_from_pointcloud (const PointCloud *target_pointcloud, BVHTreeFromPointCloud &r_tree_data_pointcloud)
 
static void blender::nodes::attribute_calc_proximity (GeometryComponent &component, GeometrySet &geometry_set_target, GeoNodeExecParams &params)
 
static void blender::nodes::geo_node_attribute_proximity_exec (GeoNodeExecParams params)
 
void register_node_type_geo_attribute_proximity ()
 

Variables

static bNodeSocketTemplate geo_node_attribute_proximity_in []
 
static bNodeSocketTemplate geo_node_attribute_proximity_out []
 

Function Documentation

◆ geo_attribute_proximity_init()

static void geo_attribute_proximity_init ( bNodeTree UNUSEDntree,
bNode node 
)
static

◆ geo_node_attribute_proximity_layout()

static void geo_node_attribute_proximity_layout ( uiLayout layout,
bContext UNUSEDC,
PointerRNA ptr 
)
static

Definition at line 44 of file node_geo_attribute_proximity.cc.

References ptr, and uiItemR().

Referenced by register_node_type_geo_attribute_proximity().

◆ register_node_type_geo_attribute_proximity()

void register_node_type_geo_attribute_proximity ( void  )

Variable Documentation

◆ geo_node_attribute_proximity_in

bNodeSocketTemplate geo_node_attribute_proximity_in[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{SOCK_GEOMETRY, N_("Target")},
{SOCK_STRING, N_("Distance")},
{SOCK_STRING, N_("Position")},
{-1, ""},
}
#define N_(msgid)
@ SOCK_GEOMETRY
@ SOCK_STRING

Definition at line 31 of file node_geo_attribute_proximity.cc.

Referenced by register_node_type_geo_attribute_proximity().

◆ geo_node_attribute_proximity_out

bNodeSocketTemplate geo_node_attribute_proximity_out[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{-1, ""},
}

Definition at line 39 of file node_geo_attribute_proximity.cc.

Referenced by register_node_type_geo_attribute_proximity().