|
Blender V5.3
|
#include <BKE_mesh_sample.hh>
Inherits blender::fn::multi_function::MultiFunction.
Public Member Functions | |
| BaryWeightSampleFn (GeometrySet geometry, fn::GField src_field) | |
| void | call (const IndexMask &mask, mf::Params params, mf::Context context) const override |
| void | hash_unique (UniqueHashBytes &hash) const override |
| void | prepare_for_execution () 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) |
| virtual ExecutionHints | get_execution_hints () const |
Evaluate an attribute on the input geometry and sample it with input barycentric weights and triangle indices.
Definition at line 158 of file BKE_mesh_sample.hh.
| blender::bke::mesh_surface_sample::BaryWeightSampleFn::BaryWeightSampleFn | ( | GeometrySet | geometry, |
| fn::GField | src_field ) |
Definition at line 395 of file mesh_sample.cc.
|
override |
Definition at line 406 of file mesh_sample.cc.
References BLI_assert_unreachable, blender::index_mask::IndexMask::complement(), blender::bke::Corner, blender::bke::Face, blender::array_utils::indices_non_negative(), blender::bke::Point, blender::bke::mesh_surface_sample::sample_corner_attribute(), blender::bke::mesh_surface_sample::sample_face_attribute(), and blender::bke::mesh_surface_sample::sample_point_attribute().
|
overridevirtual |
Reimplemented from blender::fn::multi_function::MultiFunction.
Definition at line 440 of file mesh_sample.cc.
References blender::fn::FieldHashDeep::ensure(), and hash.
|
overridevirtual |
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 449 of file mesh_sample.cc.
References blender::bke::Corner, blender::bke::Edge, blender::bke::Face, blender::bke::MeshFieldContext::MeshFieldContext(), and blender::bke::try_detect_native_field_domain().