Blender  V3.3
Classes | Functions
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 *UNUSED(C), PointerRNA *ptr)
 
static void node_init (bNodeTree *UNUSED(tree), bNode *node)
 
static void node_update (bNodeTree *ntree, bNode *node)
 
static void node_gather_link_searches (GatherLinkSearchOpParams &params)
 
static eAttributeMapMode get_map_mode (GeometryNodeRaycastMapMode map_mode)
 
static void raycast_to_mesh (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, int &hit_count)
 
static GField get_input_attribute_field (GeoNodeExecParams &params, const eCustomDataType data_type)
 
static void output_attribute_field (GeoNodeExecParams &params, GField field)
 
static void node_geo_exec (GeoNodeExecParams params)
 

Function Documentation

◆ get_input_attribute_field()

static GField blender::nodes::node_geo_raycast_cc::get_input_attribute_field ( GeoNodeExecParams params,
const eCustomDataType  data_type 
)
static

◆ get_map_mode()

static eAttributeMapMode blender::nodes::node_geo_raycast_cc::get_map_mode ( GeometryNodeRaycastMapMode  map_mode)
static

◆ node_declare()

static void blender::nodes::node_geo_raycast_cc::node_declare ( NodeDeclarationBuilder b)
static

Definition at line 22 of file node_geo_raycast.cc.

References usdtokens::b(), GEO_COMPONENT_TYPE_MESH, N_, and PROP_DISTANCE.

Referenced by register_node_type_geo_raycast().

◆ node_gather_link_searches()

static void blender::nodes::node_geo_raycast_cc::node_gather_link_searches ( GatherLinkSearchOpParams params)
static

◆ node_geo_exec()

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

◆ node_init()

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

Definition at line 62 of file node_geo_raycast.cc.

References CD_PROP_FLOAT, data, GEO_NODE_RAYCAST_INTERPOLATED, and node.

◆ node_layout()

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

Definition at line 56 of file node_geo_raycast.cc.

References ptr, and uiItemR().

Referenced by register_node_type_geo_raycast().

◆ node_update()

static void blender::nodes::node_geo_raycast_cc::node_update ( bNodeTree ntree,
bNode node 
)
static

◆ output_attribute_field()

static void blender::nodes::node_geo_raycast_cc::output_attribute_field ( GeoNodeExecParams params,
GField  field 
)
static

◆ raycast_to_mesh()

static void blender::nodes::node_geo_raycast_cc::raycast_to_mesh ( 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,
int &  hit_count 
)
static