16 b.use_custom_socket_order();
17 b.allow_any_socket_order();
20 .description(
"Curves to change the resolution of");
22 .propagate_all_geometry()
23 .align_with_previous();
27 .evaluated_geometry_field();
28 b.add_input<
decl::Int>(
"Resolution"_ustr).
min(1).default_value(12).evaluated_geometry_field();
49 for (
const int layer_index :
grease_pencil.layers().index_range()) {
51 if (drawing ==
nullptr) {
80 params.
set_output(
"Geometry"_ustr, std::move(geometry_set));
89 ntype.
ui_name =
"Set Spline Resolution";
91 "Control how many evaluated points should be generated on every curve segment";
Low-level operations for curves.
Low-level operations for grease pencil.
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_SET_SPLINE_RESOLUTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
bke::CurvesGeometry & strokes_for_write()
void tag_topology_changed()
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
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)
void node_register_type(bNodeType &ntype)
void foreach_real_geometry(bke::GeometrySet &geometry, FunctionRef< void(bke::GeometrySet &geometry_set)> fn)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void set_curve_resolution(bke::CurvesGeometry &curves, const fn::FieldContext &field_context, const Field< bool > &selection, const Field< int > &resolution)
static void node_geo_exec(GeoNodeExecParams params)
static void set_grease_pencil_resolution(GreasePencil &grease_pencil, const Field< bool > &selection, const Field< int > &resolution)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
Curves * get_curves_for_write()
GreasePencil * get_grease_pencil_for_write()
static constexpr int _160
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare