|
Blender V4.3
|
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 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 211 of file node_geo_sample_nearest.cc.
References blender::bke::GeometryComponent::attribute_domain_size().
Referenced by find_source_component().
|
static |
Definition at line 222 of file node_geo_sample_nearest.cc.
References component_is_available(), blender::bke::GeometryComponent::Mesh, and blender::bke::GeometryComponent::PointCloud.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::SampleNearestFunction().
|
static |
Definition at line 167 of file node_geo_sample_nearest.cc.
References BLI_assert, blender::math::distance_squared(), FLT_MAX, get_closest_mesh_faces(), and blender::MutableSpan< T >::is_empty().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 121 of file node_geo_sample_nearest.cc.
References BKE_bvhtree_from_mesh_get(), BLI_assert, BVHTREE_FROM_EDGES, free_bvhtree_from_mesh(), and blender::nodes::get_closest_in_bvhtree().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 149 of file node_geo_sample_nearest.cc.
References BLI_assert, and get_closest_mesh_tris().
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 BKE_bvhtree_from_mesh_get(), BLI_assert, BVHTREE_FROM_VERTS, free_bvhtree_from_mesh(), and blender::nodes::get_closest_in_bvhtree().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 135 of file node_geo_sample_nearest.cc.
References BKE_bvhtree_from_mesh_get(), BLI_assert, BVHTREE_FROM_CORNER_TRIS, free_bvhtree_from_mesh(), and blender::nodes::get_closest_in_bvhtree().
Referenced by get_closest_mesh_faces().
|
static |
Definition at line 74 of file node_geo_sample_nearest.cc.
References BKE_bvhtree_from_pointcloud_get(), BLI_assert, BLI_bvhtree_find_nearest(), blender::MutableSpan< T >::fill(), FLT_MAX, free_bvhtree_from_pointcloud(), BVHTreeNearest::index, blender::MutableSpan< T >::is_empty(), BVHTreeFromPointCloud::nearest_callback, blender::MutableSpan< T >::size(), PointCloud::totpoint, and BVHTreeFromPointCloud::tree.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call().
|
static |
Definition at line 55 of file node_geo_sample_nearest.cc.
References b, blender::bke::GeometryComponent::Mesh, blender::bke::GeometryComponent::PointCloud, and blender::nodes::implicit_field_inputs::position().
Referenced by node_register().
|
static |
Definition at line 303 of file node_geo_sample_nearest.cc.
References blender::fn::FieldOperation::Create(), params, and TIP_.
Referenced by node_register().
|
static |
Definition at line 68 of file node_geo_sample_nearest.cc.
References CD_PROP_FLOAT, and int.
Referenced by node_register().
|
static |
Definition at line 63 of file node_geo_sample_nearest.cc.
References ptr, UI_ITEM_NONE, and uiItemR().
Referenced by node_register().
|
static |
Definition at line 331 of file node_geo_sample_nearest.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::draw_buttons, geo_node_type_base(), blender::bke::bNodeType::geometry_node_execute, blender::bke::bNodeType::initfunc, NODE_CLASS_GEOMETRY, node_declare(), node_geo_exec(), node_init(), node_layout(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, and ExtensionRNA::srna.
|
static |
Definition at line 320 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().