|
Blender V5.3
|
Classes | |
| class | SampleNearestFunction |
Functions | |
| static void | node_declare (NodeDeclarationBuilder &b) |
| static void | node_layout (ui::Layout &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(), and component_is_available().
Referenced by component_is_available(), and find_source_component().
|
static |
Definition at line 222 of file node_geo_sample_nearest.cc.
References component_is_available(), find_source_component(), blender::bke::GeometryComponent::Mesh, and blender::bke::GeometryComponent::PointCloud.
Referenced by find_source_component(), and blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::SampleNearestFunction().
|
static |
Definition at line 167 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), blender::math::distance_squared(), FLT_MAX, get_closest_mesh_corners(), get_closest_mesh_faces(), blender::MutableSpan< T >::is_empty(), position, 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 97 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), blender::bke::bvh::Tree::closest_point(), blender::math::distance_squared(), get_closest_mesh_edges(), blender::bke::bvh::ClosestPointResult::index, blender::MutableSpan< T >::is_empty(), blender::bke::bvh::ClosestPointResult::position, and position.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call(), and get_closest_mesh_edges().
|
static |
Definition at line 145 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), get_closest_mesh_faces(), get_closest_mesh_tris(), and blender::VArrayCommon< T >::size().
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call(), get_closest_mesh_corners(), and get_closest_mesh_faces().
|
static |
Definition at line 73 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), blender::bke::bvh::Tree::closest_point(), blender::math::distance_squared(), get_closest_mesh_points(), blender::bke::bvh::ClosestPointResult::index, blender::MutableSpan< T >::is_empty(), blender::bke::bvh::ClosestPointResult::position, and position.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call(), and get_closest_mesh_points().
|
static |
Definition at line 121 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), blender::bke::bvh::Tree::closest_point(), blender::math::distance_squared(), get_closest_mesh_tris(), blender::bke::bvh::ClosestPointResult::index, blender::MutableSpan< T >::is_empty(), blender::bke::bvh::ClosestPointResult::position, and position.
Referenced by get_closest_mesh_faces(), and get_closest_mesh_tris().
|
static |
Definition at line 49 of file node_geo_sample_nearest.cc.
References blender::BLI_assert(), blender::bke::bvh::Tree::closest_point(), blender::math::distance_squared(), blender::MutableSpan< T >::fill(), get_closest_pointcloud_points(), blender::bke::bvh::ClosestPointResult::index, blender::MutableSpan< T >::is_empty(), blender::bke::bvh::ClosestPointResult::position, position, blender::MutableSpan< T >::size(), blender::VArrayCommon< T >::size(), and blender::PointCloud::totpoint.
Referenced by blender::nodes::node_geo_sample_nearest_cc::SampleNearestFunction::call(), and get_closest_pointcloud_points().
|
static |
Definition at line 24 of file node_geo_sample_nearest.cc.
References b, blender::bke::GeometryComponent::Mesh, node_declare(), blender::NODE_DEFAULT_INPUT_POSITION_FIELD, blender::bke::GeometryComponent::PointCloud, and blender::nodes::SocketDeclaration::structure_type.
Referenced by node_declare(), and node_register().
|
static |
Definition at line 310 of file node_geo_sample_nearest.cc.
References blender::bNode::custom2, blender::nodes::Error, blender::nodes::GeoNodeExecParams::error_message_add(), blender::nodes::execute_multi_function_on_value_variant(), blender::nodes::GeoNodeExecParams::extract_input(), blender::nodes::GeoNodeExecParams::node(), node_geo_exec(), blender::nodes::GeoNodeExecParams::set_default_remaining_outputs(), blender::nodes::GeoNodeExecParams::set_output(), TIP_, and blender::nodes::GeoNodeExecParams::user_data().
Referenced by node_geo_exec(), and node_register().
Definition at line 43 of file node_geo_sample_nearest.cc.
References blender::CD_PROP_FLOAT, node, and node_init().
Referenced by node_init(), and node_register().
|
static |
Definition at line 38 of file node_geo_sample_nearest.cc.
References node_layout(), blender::ui::Layout::prop(), and UI_ITEM_NONE.
Referenced by node_layout(), and node_register().
|
static |
Definition at line 351 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, blender::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(), node_register(), blender::bke::node_register_type(), node_rna(), blender::bke::bNodeType::rna_ext, blender::ExtensionRNA::srna, blender::bke::bNodeType::ui_description, and blender::bke::bNodeType::ui_name.
Referenced by node_register().
|
static |
Definition at line 340 of file node_geo_sample_nearest.cc.
References NOD_inline_enum_accessors, node_rna(), blender::nodes::RNA_def_node_enum(), and blender::rna_enum_attribute_domain_only_mesh_items.
Referenced by node_register(), and node_rna().