Blender V5.3
node_geo_nurbs_weight.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
6
8
10
12{
13 b.add_output<decl::Float>("Weight"_ustr).structure_type(StructureType::Field);
14}
15
17{
18 Field<float> nurbs_weight = AttributeFieldInput::get_field<float, "nurbs_weight">();
19 params.set_output("Weight"_ustr, std::move(nurbs_weight));
20}
21
22static void node_register()
23{
24 static bke::bNodeType ntype;
25
26 geo_node_type_base(&ntype, "GeometryNodeNURBSWeight"_ustr);
27 ntype.ui_name = "NURBS Weight";
28 ntype.ui_description = "Retrieve the influence of each NURBS control point on the curve";
30 ntype.declare = node_declare;
33}
35
36} // namespace blender::nodes::node_geo_nurbs_weight__cc
#define NODE_CLASS_INPUT
Definition BKE_node.hh:478
#define NOD_REGISTER_NODE(REGISTER_FUNC)
static const fn::Field< T > & get_field()
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
Definition node.cc:2920
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
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
NodeDeclareFunction declare
Definition BKE_node.hh:393