Blender V4.3
blender::nodes::node_geo_sample_nearest_cc Namespace Reference

Classes

class  SampleNearestFunction
 

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 get_closest_pointcloud_points (const PointCloud &pointcloud, const VArray< float3 > &positions, const IndexMask &mask, MutableSpan< int > r_indices, MutableSpan< float > r_distances_sq)
 
static void get_closest_mesh_points (const Mesh &mesh, const VArray< float3 > &positions, const IndexMask &mask, const MutableSpan< int > r_point_indices, const MutableSpan< float > r_distances_sq, const MutableSpan< float3 > r_positions)
 
static void get_closest_mesh_edges (const Mesh &mesh, const VArray< float3 > &positions, const IndexMask &mask, const MutableSpan< int > r_edge_indices, const MutableSpan< float > r_distances_sq, const MutableSpan< float3 > r_positions)
 
static void get_closest_mesh_tris (const Mesh &mesh, const VArray< float3 > &positions, const IndexMask &mask, const MutableSpan< int > r_tri_indices, const MutableSpan< float > r_distances_sq, const MutableSpan< float3 > r_positions)
 
static void get_closest_mesh_faces (const Mesh &mesh, const VArray< float3 > &positions, const IndexMask &mask, const MutableSpan< int > r_face_indices, const MutableSpan< float > r_distances_sq, const MutableSpan< float3 > r_positions)
 
static void get_closest_mesh_corners (const Mesh &mesh, const VArray< float3 > &positions, const IndexMask &mask, const MutableSpan< int > r_corner_indices, const MutableSpan< float > r_distances_sq, const MutableSpan< float3 > r_positions)
 
static bool component_is_available (const GeometrySet &geometry, const GeometryComponent::Type type, const AttrDomain domain)
 
static const GeometryComponentfind_source_component (const GeometrySet &geometry, const AttrDomain domain)
 
static void node_geo_exec (GeoNodeExecParams params)
 
static void node_rna (StructRNA *srna)
 
static void node_register ()
 

Function Documentation

◆ component_is_available()

static bool blender::nodes::node_geo_sample_nearest_cc::component_is_available ( const GeometrySet & geometry,
const GeometryComponent::Type type,
const AttrDomain domain )
static

◆ find_source_component()

static const GeometryComponent * blender::nodes::node_geo_sample_nearest_cc::find_source_component ( const GeometrySet & geometry,
const AttrDomain domain )
static

◆ get_closest_mesh_corners()

static void blender::nodes::node_geo_sample_nearest_cc::get_closest_mesh_corners ( const Mesh & mesh,
const VArray< float3 > & positions,
const IndexMask & mask,
const MutableSpan< int > r_corner_indices,
const MutableSpan< float > r_distances_sq,
const MutableSpan< float3 > r_positions )
static

◆ get_closest_mesh_edges()

static void blender::nodes::node_geo_sample_nearest_cc::get_closest_mesh_edges ( const Mesh & mesh,
const VArray< float3 > & positions,
const IndexMask & mask,
const MutableSpan< int > r_edge_indices,
const MutableSpan< float > r_distances_sq,
const MutableSpan< float3 > r_positions )
static

◆ get_closest_mesh_faces()

static void blender::nodes::node_geo_sample_nearest_cc::get_closest_mesh_faces ( const Mesh & mesh,
const VArray< float3 > & positions,
const IndexMask & mask,
const MutableSpan< int > r_face_indices,
const MutableSpan< float > r_distances_sq,
const MutableSpan< float3 > r_positions )
static

◆ get_closest_mesh_points()

static void blender::nodes::node_geo_sample_nearest_cc::get_closest_mesh_points ( const Mesh & mesh,
const VArray< float3 > & positions,
const IndexMask & mask,
const MutableSpan< int > r_point_indices,
const MutableSpan< float > r_distances_sq,
const MutableSpan< float3 > r_positions )
static

◆ get_closest_mesh_tris()

static void blender::nodes::node_geo_sample_nearest_cc::get_closest_mesh_tris ( const Mesh & mesh,
const VArray< float3 > & positions,
const IndexMask & mask,
const MutableSpan< int > r_tri_indices,
const MutableSpan< float > r_distances_sq,
const MutableSpan< float3 > r_positions )
static

◆ get_closest_pointcloud_points()

◆ node_declare()

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

◆ node_geo_exec()

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

Definition at line 303 of file node_geo_sample_nearest.cc.

References blender::fn::FieldOperation::Create(), params, and TIP_.

Referenced by node_register().

◆ node_init()

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

Definition at line 68 of file node_geo_sample_nearest.cc.

References CD_PROP_FLOAT, and int.

Referenced by node_register().

◆ node_layout()

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

Definition at line 63 of file node_geo_sample_nearest.cc.

References ptr, UI_ITEM_NONE, and uiItemR().

Referenced by node_register().

◆ node_register()

◆ node_rna()

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