26 static const auto fn = mf::build::SI2_SO<float3, float3, float3>(
29 mf::build::exec_presets::AllSpanOrSingle());
35 static const auto fn = mf::build::SI2_SO<float3, float3, float3>(
38 mf::build::exec_presets::AllSpanOrSingle());
61 if (attributes.
contains(
"handle_right") && attributes.
contains(
"handle_left")) {
64 for (
const StringRef name : {
"handle_left",
"handle_right"}) {
84 for (
const int layer_index : grease_pencil.layers().index_range()) {
85 Drawing *drawing = grease_pencil.get_eval_drawing(grease_pencil.layer(layer_index));
117 [&](
const int i) { transforms[i].location() =
result[i]; });
Low-level operations for curves.
Low-level operations for grease pencil.
#define GEO_NODE_SET_POSITION
#define NODE_CLASS_GEOMETRY
General operations for point clouds.
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bool contains(const StringRef attribute_id) const
MutableAttributeAccessor attributes_for_write()
void calculate_bezier_auto_handles()
int instances_num() const
MutableSpan< float4x4 > transforms_for_write()
bke::CurvesGeometry & strokes_for_write()
const bke::CurvesGeometry & strokes() const
void tag_positions_changed()
void set_selection(Field< bool > selection)
IndexMask get_evaluated_selection_as_mask() const
int add_with_destination(GField field, GVMutableArray dst)
static std::shared_ptr< FieldOperation > Create(std::shared_ptr< const mf::MultiFunction > function, Vector< GField > inputs={})
local_group_size(16, 16) .push_constant(Type b
bool try_capture_field_on_geometry(MutableAttributeAccessor attributes, const fn::FieldContext &field_context, const StringRef attribute_id, AttrDomain domain, const fn::Field< bool > &selection, const fn::GField &field)
void node_register_type(bNodeType *ntype)
static void set_position_in_grease_pencil(GreasePencil &grease_pencil, const Field< bool > &selection_field, const Field< float3 > &position_field)
static void node_geo_exec(GeoNodeExecParams params)
static const auto & get_add_fn()
static void node_declare(NodeDeclarationBuilder &b)
static void set_curves_position(bke::CurvesGeometry &curves, const fn::FieldContext &field_context, const Field< bool > &selection_field, const Field< float3 > &position_field)
static void node_register()
static void set_instances_position(bke::Instances &instances, const Field< bool > &selection_field, const Field< float3 > &position_field)
static const auto & get_sub_fn()
static void set_points_position(bke::MutableAttributeAccessor attributes, const fn::FieldContext &field_context, const Field< bool > &selection_field, const Field< float3 > &position_field)
VecBase< float, 3 > float3
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
GPU_SHADER_INTERFACE_INFO(overlay_edit_curve_handle_iface, "vert").flat(Type pos vertex_in(1, Type::UINT, "data") .vertex_out(overlay_edit_curve_handle_iface) .geometry_layout(PrimitiveIn Frequency::GEOMETRY storage_buf(1, Qualifier::READ, "uint", "data[]", Frequency::GEOMETRY) .push_constant(Type Frequency::GEOMETRY selection[]
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare