|
Blender V5.3
|
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| SampleNearestSurfaceFunction (GeometrySet geometry, Field< int > group_id_field) | |
| void | prepare_for_execution () const override |
| ~SampleNearestSurfaceFunction () override=default | |
| void | call (const IndexMask &mask, mf::Params params, mf::Context) const override |
| ExecutionHints | get_execution_hints () const override |
| void | hash_unique (UniqueHashBytes &hash) 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 bool | equals (const MultiFunction &other) 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 89 of file node_geo_sample_nearest_surface.cc.
|
inline |
Definition at line 100 of file node_geo_sample_nearest_surface.cc.
References blender::fn::multi_function::MultiFunction::set_signature(), and blender::fn::multi_function::MultiFunction::signature().
|
overridedefault |
|
inlineoverride |
Definition at line 160 of file node_geo_sample_nearest_surface.cc.
References position, and blender::result.
|
inlineoverridevirtual |
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 200 of file node_geo_sample_nearest_surface.cc.
References blender::fn::multi_function::MultiFunction::ExecutionHints::min_grain_size.
|
inlineoverridevirtual |
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 207 of file node_geo_sample_nearest_surface.cc.
References blender::fn::FieldHashDeep::ensure(), and hash.
|
inlineoverridevirtual |
For performance reasons it might make sense to delay construction of data inside the node until we can be sure that the function will be evaluated. This method should be called before execution. The work must be protected by a lock though, since it may be called from multiple threads.
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 117 of file node_geo_sample_nearest_surface.cc.
References blender::fn::FieldEvaluator::add(), blender::fn::FieldEvaluator::evaluate(), blender::bke::Face, blender::IndexMask::from_group_ids(), blender::bke::bvh::Tree::from_tris(), blender::fn::FieldEvaluator::get_evaluated(), blender::IndexRange::IndexRange(), blender::threading::individual_task_sizes(), blender::threading::parallel_for(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().