Blender  V3.3
node_geo_input_shade_smooth.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #include "node_geometry_util.hh"
4 
6 
8 {
9  b.add_output<decl::Bool>(N_("Smooth")).field_source();
10 }
11 
13 {
14  Field<bool> shade_smooth_field = AttributeFieldInput::Create<bool>("shade_smooth");
15  params.set_output("Smooth", std::move(shade_smooth_field));
16 }
17 
18 } // namespace blender::nodes::node_geo_input_shade_smooth_cc
19 
21 {
23 
24  static bNodeType ntype;
25 
29  nodeRegisterType(&ntype);
30 }
#define GEO_NODE_INPUT_SHADE_SMOOTH
Definition: BKE_node.h:1450
#define NODE_CLASS_INPUT
Definition: BKE_node.h:345
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_input_shade_smooth()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
Defines a node type.
Definition: BKE_node.h:226
NodeGeometryExecFunction geometry_node_execute
Definition: BKE_node.h:316
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)