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

Classes

class  RaycastFunction

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 node_gather_link_searches (GatherLinkSearchOpParams &params)
static void raycast_to_mesh (const IndexMask &mask, const Mesh &mesh, const VArray< float3 > &ray_origins, const VArray< float3 > &ray_directions, const VArray< float > &ray_lengths, const MutableSpan< bool > r_hit, const MutableSpan< int > r_hit_indices, const MutableSpan< float3 > r_hit_positions, const MutableSpan< float3 > r_hit_normals, const MutableSpan< float > r_hit_distances)
static void node_geo_exec (GeoNodeExecParams params)
static void node_rna (StructRNA *srna)
static void node_register ()

Variables

static EnumPropertyItem interpolation_items []

Function Documentation

◆ node_declare()

◆ node_gather_link_searches()

◆ node_geo_exec()

◆ node_init()

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

Definition at line 90 of file node_geo_raycast.cc.

References CD_PROP_FLOAT, data, MEM_callocN(), and bNode::storage.

Referenced by node_register().

◆ node_layout()

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

Definition at line 85 of file node_geo_raycast.cc.

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

Referenced by node_register().

◆ node_register()

◆ node_rna()

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

◆ raycast_to_mesh()

void blender::nodes::node_geo_raycast_cc::raycast_to_mesh ( const IndexMask & mask,
const Mesh & mesh,
const VArray< float3 > & ray_origins,
const VArray< float3 > & ray_directions,
const VArray< float > & ray_lengths,
const MutableSpan< bool > r_hit,
const MutableSpan< int > r_hit_indices,
const MutableSpan< float3 > r_hit_positions,
const MutableSpan< float3 > r_hit_normals,
const MutableSpan< float > r_hit_distances )
static

Variable Documentation

◆ interpolation_items

EnumPropertyItem blender::nodes::node_geo_raycast_cc::interpolation_items[]
static
Initial value:
= {
"INTERPOLATED",
0,
N_("Interpolated"),
N_("Interpolate the attribute from the corners of the hit face")},
"NEAREST",
0,
N_("Nearest"),
N_("Use the attribute value of the closest mesh element")},
{0, nullptr, 0, nullptr, nullptr},
}
@ GEO_NODE_RAYCAST_NEAREST
@ GEO_NODE_RAYCAST_INTERPOLATED
#define N_(msgid)

Definition at line 28 of file node_geo_raycast.cc.

Referenced by node_declare().