|
Blender V5.0
|
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| ProximityFunction (GeometrySet target, GeometryNodeProximityTargetType type, const Field< int > &group_id_field) | |
| ~ProximityFunction () override=default | |
| void | init_for_pointcloud (const PointCloud &pointcloud, const Field< int > &group_id_field) |
| void | init_for_mesh (const Mesh &mesh, const Field< int > &group_id_field) |
| bke::AttrDomain | get_domain_on_mesh () const |
| void | call (const IndexMask &mask, mf::Params params, mf::Context) const override |
| ExecutionHints | get_execution_hints () const override |
| Public Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| virtual | ~MultiFunction ()=default |
| void | call_auto (const IndexMask &mask, Params params, Context context) const |
| virtual void | call (const IndexMask &mask, Params params, Context context) const =0 |
| virtual uint64_t | hash () const |
| virtual bool | equals (const MultiFunction &) const |
| int | param_amount () const |
| IndexRange | param_indices () const |
| ParamType | param_type (int param_index) const |
| StringRefNull | param_name (int param_index) const |
| StringRefNull | name () const |
| virtual std::string | debug_name () const |
| const Signature & | signature () const |
| ExecutionHints | execution_hints () const |
Additional Inherited Members | |
| Protected Member Functions inherited from blender::fn::multi_function::MultiFunction | |
| void | set_signature (const Signature *signature) |
Definition at line 62 of file node_geo_proximity.cc.
|
inline |
Definition at line 75 of file node_geo_proximity.cc.
References GEO_NODE_PROX_TARGET_POINTS, init_for_mesh(), init_for_pointcloud(), blender::fn::multi_function::MultiFunction::set_signature(), and blender::fn::multi_function::MultiFunction::signature().
|
overridedefault |
|
inlineoverride |
Definition at line 193 of file node_geo_proximity.cc.
References BLI_bvhtree_find_nearest(), BVHTreeNearest::co, BVHTreeNearest::dist_sq, FLT_MAX, i, mask(), blender::bke::BVHTreeFromMesh::nearest_callback, blender::bke::BVHTreeFromPointCloud::nearest_callback, params, blender::bke::BVHTreeFromMesh::tree, and blender::bke::BVHTreeFromPointCloud::tree.
|
inline |
Definition at line 179 of file node_geo_proximity.cc.
References BLI_assert_unreachable, blender::bke::Edge, blender::bke::Face, GEO_NODE_PROX_TARGET_EDGES, GEO_NODE_PROX_TARGET_FACES, GEO_NODE_PROX_TARGET_POINTS, and blender::bke::Point.
Referenced by init_for_mesh().
|
inlineoverridevirtual |
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 254 of file node_geo_proximity.cc.
References blender::fn::multi_function::MultiFunction::ExecutionHints::min_grain_size.
|
inline |
Definition at line 136 of file node_geo_proximity.cc.
References blender::fn::FieldEvaluator::add(), Geometry::attributes, blender::bke::bvhtree_from_mesh_edges_init(), blender::bke::bvhtree_from_mesh_tris_init(), blender::bke::bvhtree_from_mesh_verts_init(), blender::fn::FieldEvaluator::evaluate(), blender::IndexMask::from_group_ids(), GEO_NODE_PROX_TARGET_EDGES, GEO_NODE_PROX_TARGET_FACES, GEO_NODE_PROX_TARGET_POINTS, get_domain_on_mesh(), blender::fn::FieldEvaluator::get_evaluated(), blender::threading::individual_task_sizes(), blender::index_mask::IndexMask::is_empty(), blender::threading::parallel_for(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by ProximityFunction().
|
inline |
Definition at line 104 of file node_geo_proximity.cc.
References blender::fn::FieldEvaluator::add(), blender::bke::bvhtree_from_pointcloud_get(), blender::fn::FieldEvaluator::evaluate(), blender::IndexMask::from_group_ids(), blender::fn::FieldEvaluator::get_evaluated(), blender::threading::individual_task_sizes(), blender::index_mask::IndexMask::is_empty(), blender::threading::parallel_for(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and PointCloud::totpoint.
Referenced by ProximityFunction().