55 const Curves *curves_id_ =
nullptr;
99 return grease_pencil_;
119 return grease_pencil_;
161 const void *geometry_;
164 const Curves *curves_id_ =
nullptr;
169 int grease_pencil_layer_index_;
171 friend GeometryFieldInput;
207 return grease_pencil_layer_index_;
210 std::optional<AttributeAccessor>
attributes()
const;
312 std::optional<std::string> socket_inspection_name_;
319 name_(std::move(name)),
336 .template typed<T>();
387 std::string layer_name_;
392 layer_name_(std::move(layer_name))
422 bool no_corner_normals =
false,
423 bool true_normals =
false);
426 bool legacy_corner_normals_ =
false;
427 bool true_normals_ =
false;
430 NormalFieldInput(
const bool legacy_corner_normals =
false,
const bool true_normals =
false)
432 legacy_corner_normals_(legacy_corner_normals),
433 true_normals_(true_normals)
476 return value_field_domain_;
485 mf::Signature signature_;
488 mutable std::optional<bke::GeometryFieldContext> geometry_context_;
489 mutable std::unique_ptr<fn::FieldEvaluator> evaluator_;
490 mutable const GVArray *src_data_ =
nullptr;
495 void call(
const IndexMask &
mask, mf::Params params, mf::Context )
const override;
535 attributes, field_context, {name}, domain, selection, {field});
static const CPPType & get()
const Curves * curves_id() const
const CurvesGeometry & curves() const
CurvesFieldContext(const CurvesGeometry &curves, AttrDomain domain)
AttrDomain domain() const
std::optional< AttrDomain > preferred_domain(const GeometryComponent &) const override
NativeFieldDomain native_domain_info(const GeometryComponent &) const override
void hash_unique(UniqueHashBytes &hash, fn::FieldHashDeep &deep_hash_cache) const override
EvaluateOnDomainInput(fn::GField field, AttrDomain domain)
GVArray get_varray_for_context(const bke::GeometryFieldContext &context, const IndexMask &) const final
void foreach_recursive_field(FunctionRef< void(const fn::GField &)> fn) const override
std::optional< AttributeAccessor > attributes() const
AttrDomain domain() const
const Mesh * mesh() const
int grease_pencil_layer_index() const
const Instances * instances() const
const PointCloud * pointcloud() const
GeometryFieldContext(const GeometryFieldContext &other, AttrDomain domain)
const greasepencil::Drawing * grease_pencil_layer_drawing() const
const void * geometry() const
const CurvesGeometry * curves_or_strokes() const
GeometryComponent::Type type() const
const Curves * curves_id() const
const GreasePencil & grease_pencil() const
GreasePencilFieldContext(const GreasePencil &grease_pencil)
const GreasePencil & grease_pencil() const
GreasePencilLayerFieldContext(const GreasePencil &grease_pencil, AttrDomain domain, int layer_index)
AttrDomain domain() const
GVArray get_varray_for_input(const fn::FieldInput &field_input, const IndexMask &mask, ResourceScope &scope) const override
const Instances & instances() const
InstancesFieldContext(const Instances &instances)
const Mesh & mesh() const
AttrDomain domain() const
MeshFieldContext(const Mesh &mesh, AttrDomain domain)
PointCloudFieldContext(const PointCloud &pointcloud)
const PointCloud & pointcloud() const
SampleIndexFunction(GeometrySet geometry, fn::GField src_field, AttrDomain domain)
static const GeometryComponent * find_source_component(const GeometrySet &geometry, AttrDomain domain)
void prepare_for_execution() const override
void hash_unique(UniqueHashBytes &hash) const override
void call(const IndexMask &mask, mf::Params params, mf::Context) const override
static Field from_non_owning_ref(const Field &field)
static GField from_input(Args &&...args)
const Field< T > & typed() const
std::optional< AttrDomain > try_detect_native_field_domain(const GeometryComponent &component, const fn::GField &field)
std::optional< AttrDomain > try_detect_field_domain(const GeometryComponent &component, const fn::GField &field)
bool try_capture_field_on_geometry(MutableAttributeAccessor attributes, const fn::FieldContext &field_context, const StringRef name, AttrDomain domain, const fn::Field< bool > &selection, const fn::GField &field)
bool try_capture_fields_on_geometry(MutableAttributeAccessor attributes, const fn::FieldContext &field_context, Span< StringRef > names, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields)
VArray< float3 > curve_normals_varray(const CurvesGeometry &curves, AttrDomain domain)
VArray< float3 > mesh_normals_varray(const Mesh &mesh, const IndexMask &mask, AttrDomain domain, bool no_corner_normals=false, bool true_normals=false)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
VecBase< float, 3 > float3
NativeFieldDomain(const None &)
NativeFieldDomain(const Domain &domain)
std::variant< None, Domain, Constant > variant
NativeFieldDomain(const Constant &)