Blender V5.3
node_geo_input_spline_resolution.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
8
10{
11 b.add_output<decl::Int>("Resolution"_ustr).structure_type(StructureType::Field);
12}
13
15{
16 params.set_output("Resolution"_ustr, bke::AttributeFieldInput::from<int>("resolution"));
17}
18
19static void node_register()
20{
21 static bke::bNodeType ntype;
22
24 &ntype, "GeometryNodeInputSplineResolution"_ustr, GEO_NODE_INPUT_SPLINE_RESOLUTION);
25 ntype.ui_name = "Spline Resolution";
26 ntype.ui_description =
27 "Retrieve the number of evaluated points that will be generated for every control point on "
28 "curves";
29 ntype.enum_name_legacy = "INPUT_SPLINE_RESOLUTION";
32 ntype.declare = node_declare;
34}
36
37} // namespace blender::nodes::node_geo_input_spline_resolution_cc
#define NODE_CLASS_INPUT
Definition BKE_node.hh:478
#define GEO_NODE_INPUT_SPLINE_RESOLUTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static fn::GField from(std::string name, const CPPType &type, std::optional< std::string > socket_inspection_name=std::nullopt)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
Definition node.cc:2920
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
Defines a node type.
Definition BKE_node.hh:265
std::string ui_description
Definition BKE_node.hh:271
NodeGeometryExecFunction geometry_node_execute
Definition BKE_node.hh:385
const char * enum_name_legacy
Definition BKE_node.hh:274
NodeDeclareFunction declare
Definition BKE_node.hh:393