|
Blender V4.5
|
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 ¶ms) |
| 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 () |
|
static |
Definition at line 28 of file node_geo_raycast.cc.
References b, blender::nodes::decl::Float::default_value, blender::nodes::decl::Vector::default_value, blender::bke::GeometryComponent::Mesh, min, node_declare(), NODE_DEFAULT_INPUT_POSITION_FIELD, blender::nodes::decl::Geometry::only_realized_data(), and PROP_DISTANCE.
Referenced by node_declare(), and node_register().
|
static |
Definition at line 74 of file node_geo_raycast.cc.
References blender::nodes::GatherLinkSearchOpParams::add_item(), blender::nodes::LinkSearchOpParams::add_node(), CD_PROP_STRING, IFACE_, blender::nodes::NodeDeclaration::inputs, node_gather_link_searches(), blender::nodes::GatherLinkSearchOpParams::node_type(), blender::nodes::GatherLinkSearchOpParams::other_socket(), blender::nodes::NodeDeclaration::outputs, blender::nodes::search_link_ops_for_declarations(), blender::bke::socket_type_to_custom_data_type(), blender::bke::bNodeType::static_declaration, bNodeSocket::type, and blender::nodes::LinkSearchOpParams::update_and_connect_available_socket().
Referenced by node_gather_link_searches(), and node_register().
|
static |
Definition at line 203 of file node_geo_raycast.cc.
References blender::nodes::FieldOperation::Create(), blender::nodes::Error, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::GeoNodeExecParams::extract_input(), Mesh::faces_num, blender::nodes::Field< T >::Field(), GEO_NODE_RAYCAST_INTERPOLATED, GEO_NODE_RAYCAST_NEAREST, blender::bke::GeometrySet::get_mesh(), blender::nodes::GField::GField(), blender::bke::GeometrySet::has_mesh(), blender::bke::GeometrySet::is_empty(), blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::math::normalize(), blender::nodes::GeoNodeExecParams::output_is_required(), blender::nodes::GeoNodeExecParams::set_default_remaining_outputs(), blender::nodes::GeoNodeExecParams::set_output(), TIP_, and v.
Referenced by node_geo_exec(), and node_register().
Definition at line 66 of file node_geo_raycast.cc.
References CD_PROP_FLOAT, data, GEO_NODE_RAYCAST_INTERPOLATED, MEM_callocN(), node_init(), and bNode::storage.
Referenced by node_init(), and node_register().
|
static |
Definition at line 60 of file node_geo_raycast.cc.
References node_layout(), uiLayout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and node_register().
|
static |
Definition at line 302 of file node_geo_raycast.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::gather_link_search_ops, GEO_NODE_RAYCAST, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::Middle, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_copy_standard_storage(), node_declare(), node_free_standard_storage(), node_gather_link_searches(), node_geo_exec(), node_init(), node_layout(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::node_type_size_preset(), blender::bke::node_type_storage(), blender::bke::bNodeType::rna_ext, ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 269 of file node_geo_raycast.cc.
References blender::nodes::enums::attribute_type_type_with_socket_fn(), CD_PROP_FLOAT, GEO_NODE_RAYCAST_INTERPOLATED, GEO_NODE_RAYCAST_NEAREST, NOD_storage_enum_accessors, node_rna(), blender::nodes::RNA_def_node_enum(), and rna_enum_attribute_type_items.
Referenced by node_register(), and node_rna().
|
static |
Definition at line 92 of file node_geo_raycast.cc.
References BLI_bvhtree_ray_cast(), BVHTreeRayHit::co, BVHTreeRayHit::dist, i, BVHTreeRayHit::index, blender::MutableSpan< T >::is_empty(), mask(), BVHTreeRayHit::no, blender::bke::BVHTreeFromMesh::raycast_callback, raycast_to_mesh(), and blender::bke::BVHTreeFromMesh::tree.
Referenced by blender::nodes::node_geo_raycast_cc::RaycastFunction::call(), and raycast_to_mesh().