|
Blender V5.0
|
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 bke::BVHTreeFromPointCloud &tree_data, 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 GeometryComponent * | find_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 () |
|
static |
Definition at line 205 of file node_geo_sample_nearest.cc.
References blender::bke::GeometryComponent::attribute_domain_size().
Referenced by find_source_component().
|
static |
Definition at line 216 of file node_geo_sample_nearest.cc.
References component_is_available().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::SampleNearestFunction().
|
static |
Definition at line 161 of file node_geo_sample_nearest.cc.
References BLI_assert, Mesh::corners_num, blender::math::distance_squared(), faces, FLT_MAX, get_closest_mesh_faces(), i, blender::MutableSpan< T >::is_empty(), mask(), and blender::VArrayCommon< T >::size().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 119 of file node_geo_sample_nearest.cc.
References BLI_assert, Mesh::edges_num, blender::nodes::get_closest_in_bvhtree(), and mask().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 143 of file node_geo_sample_nearest.cc.
References BLI_assert, Mesh::faces_num, get_closest_mesh_tris(), i, mask(), and blender::VArrayCommon< T >::size().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call(), and get_closest_mesh_corners().
|
static |
Definition at line 107 of file node_geo_sample_nearest.cc.
References BLI_assert, blender::nodes::get_closest_in_bvhtree(), mask(), and Mesh::verts_num.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 131 of file node_geo_sample_nearest.cc.
References BLI_assert, Mesh::faces_num, blender::nodes::get_closest_in_bvhtree(), and mask().
Referenced by get_closest_mesh_faces().
|
static |
Definition at line 77 of file node_geo_sample_nearest.cc.
References BLI_assert, BLI_bvhtree_find_nearest(), BVHTreeNearest::dist_sq, blender::MutableSpan< T >::fill(), FLT_MAX, i, BVHTreeNearest::index, blender::MutableSpan< T >::is_empty(), mask(), blender::bke::BVHTreeFromPointCloud::nearest_callback, blender::MutableSpan< T >::size(), blender::VArrayCommon< T >::size(), and blender::bke::BVHTreeFromPointCloud::tree.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 57 of file node_geo_sample_nearest.cc.
References b, and NODE_DEFAULT_INPUT_POSITION_FIELD.
Referenced by node_register().
|
static |
Definition at line 303 of file node_geo_sample_nearest.cc.
References blender::nodes::Error, blender::nodes::execute_multi_function_on_value_variant(), params, and TIP_.
Referenced by node_register().
Definition at line 71 of file node_geo_sample_nearest.cc.
References CD_PROP_FLOAT, bNode::custom1, and bNode::custom2.
Referenced by node_register().
|
static |
Definition at line 66 of file node_geo_sample_nearest.cc.
References uiLayout::prop(), ptr, and UI_ITEM_NONE.
Referenced by node_register().
|
static |
Definition at line 344 of file node_geo_sample_nearest.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, blender::bke::bNodeType::enum_name_legacy, GEO_NODE_SAMPLE_NEAREST, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, blender::bke::bNodeType::nclass, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
|
static |
Definition at line 333 of file node_geo_sample_nearest.cc.
References NOD_inline_enum_accessors, blender::nodes::RNA_def_node_enum(), and rna_enum_attribute_domain_only_mesh_items.
Referenced by node_register().